next up previous contents index
Next: The fit- background- and Up: File formats Previous: Definition of mfile

File formats

  Table C.1 lists all file formats from the mfile.h header file.


 
Table C.1: File formats from the mfile header file.
Element format Compression format
lc line compressed
le2 2 byte low endian (VAX, DEC (mips), Intel)
le4 4 byte low endian (VAX, DEC (mips), Intel)
he2 2 byte high endian (HP, Motorola)
he4 4 byte high endian (HP, Motorola)
lf4 low endian 4 byte IEEE float
lf8 low endian 8 byte IEEE float
hf4 high endian 4 byte IEEE float
hf8 high endian 8 byte IEEE float
le2s signed LE2
he2s signed HE2 matrix file
vaxf VAX F format 4 byte float
vaxg VAX G format 8 byte float
mate PC-Mate spectra format
txt ASCII spectra, Integer or Double
trixi trixi save_matrix format
le2t triagonal LE2
le4t triagonal LE4
he2t triagonal HE2
he4t triagonal HE4
 


The order of bytes in a data word is described by its endianess. With high (big) endian byte order the bytes are numbered consecutively from left to right in a word. With little endian byte order the byte numbering is reversed as you go from right to left. The format of a spectrum is given in the following manner:

< levels > . < lines > . < columns > . < element format > :[ < version > ]

like for example

1k.2k.4k.he4

which characterizes a cube with 1024 levels, 2048 lines and 4096 columns with 4-byte elements (total size = 35 GB) coded in high endian format.

Allowed abbreviations in the sizes of levels, lines and columns are:

k = kilo
m = mega
 



next up previous contents index
Next: The fit- background- and Up: File formats Previous: Definition of mfile
Andreas Fitzler
7/13/2000