.. meta:: :description: Infrastructure Image Formats .. _raw_metadata: RAW Metadata Files ================== Dragonfly supports loading RAW image files with a sibling metadata file that specifies the geometry, shape and other properties of the image data. While there are several different formats out there (too many to be listed here), and while some of those formats are supported by Dragonfly, Dragonfly supports two "homemade" metadata files for its RAW files: DAT format XML format The DAT format is a legacy feature that should not be the preferred choice. DAT Format ---------- The DAT file format is a straight ASCII text file where each line has a field name and a value, of the form field: value These are the valid fields, their meaning and the expected type of value. +--------------------+-----------------------------------------------------------+------------+ | Name | Meaning | Type | +====================+===========================================================+============+ | ObjectFileName | File name of the RAW data file (only the file name, no | string | | | path). It is implied that the file sits in the same | | | | folder as the metadata file. | | +--------------------+-----------------------------------------------------------+------------+ | Resolution | X Y Z dimensions | 3 int | +--------------------+-----------------------------------------------------------+------------+ | Format | Data type, one of: UCHAR USHORT FLOAT UINT | string | +--------------------+-----------------------------------------------------------+------------+ | SliceThickness | X Y Z pixel sizes | 3 double | +--------------------+-----------------------------------------------------------+------------+ | MeasurementUnit | Data unit, one of: METER MILLIMETER Density | string | +--------------------+-----------------------------------------------------------+------------+ | TimeSteps | T dimension | int | +--------------------+-----------------------------------------------------------+------------+ | ChannelOrientation | 3 vectors of size 3, representing respectively the | 9 double | | | direction, up and normal axis. | | +--------------------+-----------------------------------------------------------+------------+ | ChannelPosition | A position triplet | 3 double | +--------------------+-----------------------------------------------------------+------------+ | DataSlope | The data slope | double | +--------------------+-----------------------------------------------------------+------------+ | DataOffset | The data offset | double | +--------------------+-----------------------------------------------------------+------------+ | SliceData | Slice orientation, position and pixel size. | | | | Each slice should have the form: | | | | SliceData: sliceN N D D D D D D D D D D D D D D D | | +--------------------+------------------------------------------------------------------------+ XML Format ---------- Here is the XML schema (xsd) file.