parse-hsihdr - parse hsi fits files and write output to an rdb table
parse-hsihdr [options] path1 [ path2 ... ]
Print this
Specify the name of the rdb table with rows `field' and `col'. Like the defs_file parameter used in rdb2pg.
A hash where the keys are the original column names and the values are the column names in the output file. -fix 5fpc=_5fpc means that the input table contains a column named 5fpc and you would like the output table to call the same column _5fpc. Useful for altering column names to PostgreSQL friendly names.
Specify the name of the output rdb table.
A boolean switch. If true, then parse-pha just searches the pathes given for keywords in the headers. If false, it actually writes out the values of keywords. Default is false.
parse-pha parses hsi fits file headers and outputs an rdb table suitable for ingestion into Postgres. It's main claim to fame is that it re-writes the IRIG time as UT. It also knows how to search directories for hsi fits files.
The files to be parsed are specified on the command line. They may be specified as:
A directory. Any sub-directories are added to the list if their names are
composed solely of digits (e.g. 961201).
The hsi file name.
A file containing file or directory names. The file name should be preceded
by the
@ character.
When parse-hsihdr searches directories, it looks for files matching the Perl regular
expression /^hsi\d+i\d+\.fits$/.
irigtime is the input IRIG time, re-written as an ISO compliant date.