Gwyddion can export data to 16bit greyscale PNG, PNM and TIFF images and to OpenEXR images with half, float and 32bit data types. In case of 16bit images the full data range is always stretched to the full greyscale range; OpenEXR export permits to specify the value scaling factor.
When data are exported to a high-depth image additional information is stored to the file to enable automated loading back to Gwyddion without having to specify the dimensions and scales manually. By storing this additional information to image files you create in other programs, you can also make them directly loadable to Gwyddion with correct dimensions and scales. The information is organised as key-value pairs, stored using individual format-specific means for each format, described in the following table.
Most keys are identical to those used in
Gwyddion Simple Fields, except for the added
Gwy:: prefix, so see also GSF description for more
details. Floating point values are stored directly if the format permits
it (OpenEXR), otherwise a text representation of the number is used (in
the C format). The keys are listed below.
Horizontal size in physical units (given by
Vertical size in physical units (given by
Horizontal offset in physical units (given by
Vertical offset in physical units (given by
Value scaling factor. Image data are to be multiplied by
this factor to obtain physical values. This parameter is
usually used with limited-range floating point formats such as
half. For integer data, |
|floating point||Value in physical units corresponding to the minimum value representable in the image (normally 0).|
|floating point||Value in physical units corresponding to the maximum value representable in the image.|
|string||Lateral units, i.e. units of physical sizes and offsets.|
|string||Value units, i.e. units of data values.|
In case of PNG, the scaling information is also stored in the standard
pCAL chunks (with linear
scaling formula). Conversely, if these chunks are present (and the
Gwyddion-specific are absent) the information from them is used in
import. See the
for the chunk description.