This website is no longer updated, our new website is at To request content please us send a note here.

Header File Format (hdr)

Example Header File: "volume.hdr"

The header volume file format allows the user to load a raw binary volume file into Mesh Viewer. For example, given a raw volume file called "volume.raw" with resolution 256 x 256 x 256, a corresponding "volume.hdr" file can be made as follows.

# Comment Line
Datafile:      volume.raw
Resolution:    256 256 256
Spacing:       0.01 0.01 0.01
VoxelType:     SCALAR | RGB | RGBA | MULTI N
FieldType:     BYTE | SHORT | INT | FLOAT
MinVal:        Float.MIN_VALUE
MaxVal:        Float.MAX_VALUE
ByteOrder:     MSB | LSB
SkipBytes:     18

Datafile: The name of the raw volume data file.

Resolution: The size of the volume dataset in the X, Y and Z dimensions.

Spacing: The distance between voxels in the X, Y and Z dimensions.

VoxelType: The number of fields associated with each voxel. Voxels typically contain SCALAR, RGB and RGBA fields. Voxels can also store an arbitrary number of fields specified by MULTI.

FieldType: The data type for each field specified as a Byte, Short, Integer and Floating-point value.

MinVal and MaxVal: The expected minimum and maximum field values.

ByteOrder: The byte ordering of each field as MSB or LSB.

CoordSystem: The X-Y-Z coordinate system is LEFT_HANDED or RIGHT_HANDED. RIGHT_HANDED is the default coordinate system.

SkipBytes: The number of bytes to skip at the beginning of the raw volume file.

Warning: include(/projects/vis/www/visservices/template/bottom.php): failed to open stream: No such file or directory in /var/www/html/software/meshviewer/headerformat.php on line 60

Warning: include(): Failed opening '/projects/vis/www/visservices/template/bottom.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/software/meshviewer/headerformat.php on line 60