NAME

parse-hsihdr - parse hsi fits files and write output to an rdb table


SYNOPSIS

parse-hsihdr [options] path1 [ path2 ... ]


OPTIONS

-help

Print this

-hdr

Specify the name of the rdb table with rows `field' and `col'. Like the defs_file parameter used in rdb2pg.

-fix

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.

-output

Specify the name of the output rdb table.

-getkeyword

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.


DESCRIPTION

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:

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.