Gwyddion uses its internal data format (.gwy) to store data. The main advantage of this format is fact, that it stores complete state of processing of concrete data, including selections and other tool and processing function settings. It can also store more channels and graphs that have any relation in one single file. Therefore we recommned to use this format for saving processed files. If you open our example files, you can see that each one is plotted in different false color palette. This is direct consequence of the fact that Gwyddion stores full state of the data window including its palette.
Other data file formats can be handled with appropriate loading and saving modules or plugins. Beside several file formats used in microscopy, graphical file types (JPEG, PNG, PPM, TIFF, BMP) and raw binary and ASCII data can be imported too.
We expect that more file IO modules and plugins will be written, depending on demands and file format specifications available. We encourage you to write IO module or plugin for your instrument-specific data file format, or, at least, to send us your format specifications.
Table 3.1. Supported file formats
| File Format | Extensions | Supported By | Read | Write |
|---|---|---|---|---|
| APE Research | .dat | apefile module | Yes | No |
| ASCII data (raw) | rawfile, asciiexport modules | Yes | Yes [a] | |
| Assing AFM | .afm | assing-afm module | Yes | Yes |
| Image Metrology BCR, BCRF | .bcr, .bcrf | bcrfile module | Yes | No |
| Binary data (raw) | rawfile module | Yes | No | |
| Burleigh v2.1 | .img | burleigh module | Yes | No |
| Createc | .dat | createc module | Yes | No |
| DME Rasterscope | .img | dmefile module | Yes | No |
| ECS | .img | ecsfile module | Yes | No |
| FRT MicroProf | .txt | microprof module | Yes | No |
| Gwyddion native | .gwy | gwyfile module | Yes | Yes |
| PSI HDF4 | .hdf | hdf4file module | Yes | No |
| Hitachi AFM | .afm | hitachi-afm module | Yes | No |
| Intematix SDF | .sdf | intematix module | Yes | No |
| JEOL SPM | .tif | jeol module | Yes | No |
| JPK Instruments | .jpk | jpkscan module | Yes | No |
| Zygo binary MetroPro | .dat | metropro module | Yes | No |
| Molecular Imaging MI | .mi | mifile module | Yes | No |
| Molecular Imaging STP | .stp | stpfile module | Yes | No |
| Nanonis | .sxm | nanonis module | Yes | No |
| Nanoscope | nanoscope, nanoscope-ii modules [b] | Yes | No | |
| Nanosurf | .ezd, .nid | ezdfile module | Yes | No |
| Nanotop | .spm | nanotop module | Yes | No |
| GXSM netCDF | .nc | netcdf module | Yes | No |
| NT-MDT | .mdt | nt-mdt module | Yes | No |
| Omicron Scala | .par + data | omicron module | Yes | No |
| Pacific Nanotechnology PNI | .pni | pnifile module | Yes | No |
| Pixmap images | .png, .jpeg, .ppm, .tga, .bmp [c] | pixmap module | Yes | Yes [d] |
| PSIA | .tiff | psia module | Yes | No |
| RHK Technology SPM32 | .sm2 | rhk-spm32 module | Yes | No |
| RHK Technology SM3 | .sm3 | rhk-sm3 module | Yes | No |
| Seiko | .xqd | seiko module | Yes | No |
| Scanning Probe Microscopy Markup Langugae | .xml | spml module | Yes | No |
| Surfstand Surface Data File | .sdf | sdfile module | Yes | Yes [e] |
| CSM Surf | .sur | surffile module | Yes | No |
| Surface Imaging Systems | .sis | sis module | Yes | No |
| Veeco Instruments | .zfr, .tfr, .zfp, … | spmlab module | Yes | No |
| STMPRG | stmprg module | Yes | No | |
| Unisoku | .hdr + .dat | unisoku module | Yes | No |
| WITec | .wit | witfile module | Yes | No |
| WSxM (Nanotec) | .tom, .stp | wsxmfile module | Yes | No |
[a] Only a simple data-matrix format si currently supported. [b] Nanoscope II and Nanoscope III (and newer) are two distinct file formats, nanoscope loads the newer files while nanoscope-ii loads the old version II files. [c] And others, namely for import. The exact list depends on formats supported by libraries on the particular platform. [d] Alhough this is usually lossy. Export to pixmap graphics is intended for presentational purpose mainly. [e] Only the text variant can be exported at present. | ||||
By default, Gwyddion detects the file format automatically based on file contents (i.e. file names and extensions are irrelevant). This usually works well and you will hopefully never need to change it. See Raw Data File Import for details of import of data from unsupported formats and from pixmap images.
If the automatic detection fails it is possible to enforce an attempt to load the file as a particular format by expanding the File type selector and choosing a file type. However, if the file format is not detected automatically it is very unlikely the file can be loaded at all.
By enabling Show only loadable files of selected type the file list can be limited only to the selected type. The file type label then indicates the filtering by appending (filtered) to the end. In the case of Automatically detected file type this means the list to files is limited to those Gwyddion thinks it can load. This can be very convenient, on the other hand it can slow down listing of directories with many files.
Once a file type is selected it remains selected even in subsequent file open dialog invocations. If you seem to be suddenly unable to load a file, check the file type is set to the corresponding type, or to Automatically detected.
File merging is similar to normal file loading, except that the selected file (or files) is merged into the current open file. In other words, channels, graphs and spectra, together with all their settings and properties are added to those already present in the current file.
Much of the previous paragraphs applies to file saving too. One of the
differences is the reliability of automatic file type determination.
While loading can and does examine the file contents, saving depends
on file name and extension. Combined with the large number of
different file types using the same extension such as
.img, .afm or
.dat it leads to ambiguities. Select the file
type explicitly before saving if you are unsure.
Since the only file type able to fully represent Gwyddion data
structures is its native data format, saving to
a .gwy file is the only actual saving. Saving to
other file formats essentially consists of exporting of a limited
subset of the data, typically only the active channel (without masks
and presentations). Therefore it does not
change the file name of the current file to the just saved file name.
The history of recently opened files can be accessed with → . The submenu contains the last 10 recently used files for quick recalling, extensive recent file history is accessed with the last item .
Document history lists the files sorted by the last access time (the most recently accessed at the top), with previews and some additional information about a selected channel. The function of the bottom row of buttons is following:
The history can be searched/filtered by file name using the filter controls above the buttons. The filter is activated by pressing Enter in the filter pattern entry. To display all history entries, clear the entry and activate it. The filter pattern is interpreted in two ways:
* or
?, it is interpreted as file glob. This means
? represents a signle arbitrary character,
* represents an arbitrary sequence of zero or
more characters, and the file name has to precisely match the
pattern. Note directory separators (/ or
\) are not treated specially, therefore in the
pattern *.sis the initial *
matches all leading directory components. The pattern syntax is
described in
GPatternSpec
documentation.
Search case sensitivity, controlled by option Case sensitive, is useful mainly on systems distinguishing letter case in file names, such as Unix. On systems that do not distinguish the case themselves it is recommended to keep the setting on case insensitive.