Madrigal file format
Physical records:
At MHO physical records are 6720 16-bit words long
WORD(0) = Total number of significant words in a physical record,
including the Checksum.
WORD(1) = Pointer to the first word of the first logical
record contained in physical record.
- set to zero if the physical record doesn't contain
any complete logical records i.e. it just contains
the last part of a logical record.)
WORD(2) = Pointer to the first word of the last logical
record contained in physical record.
WORD(3->WORD(0)-2) = Logical records
WORD(WORD(0)-1) = Checksum.
Logical Records:
WORD(0->15) = Same as NCAR binary logical records.
WORD(16) = Pointer to word 1 of previous logical record.
- could be contained in previous physical record.
- set to zero in the first logical record of the file.
WORD(17->20) = 32-bit Start and end times of the logical record.