l2b - LORAL archive to binary file

Documentation for the MAXIMA archive extraction program:

Usage: l2b infile [outfile]
Files: binout.par (or other file specifying output parameters).
Input information: parameter file name, start time, stop time.


l2b extracts data from the input file and writes it to the output file. If the output file is not specified, the name is taken to be the input file name up to the first period/dot, with the extension ".dat". It begins by reading the input file header to find the descriptions of the stored parameters. It then makes sure that there is a valid frame counter.

Next it asks for the name of the file describing the needed output parameters, and reads that file. The file specifies the size of output record (fixed) in bytes, the number of channels, and then lists the parameters associated with each channel, and what format it should be written in. The output records are composed of the listed channels, a status number (set to 0 for good data), and 0's to fill out the rest of the record. The current formats are,

Finally, l2b asks for the start time and stop time for the extracted data segment. The default day is that of the start time of the file, and the user can give one of three formats:

Days, hours, and minutes are integers. Digital hours and seconds are real numbers.

At this point l2b finds the beginning of the data segment, displays a note that it has found the beginning and extracts data. If there are discontinuties in the frame counter, diagnostic messages are printed. When the frame counter is bad, or if there are missing frames, the data is recorded as all 0's and the status number is set to 2.

Check the source code directory for documentation on the source code. This directory is currently: //garbo.berkeley.edu/lange/users/wilbanks/max/loral/source


author: Thor Wilbanks

Return to MAXIMA top level page.