parse-log - parse HXDS stage log files and write output to an rdb table
parse-log [options] path1 [ path2 ... ]
Print this
Print the name of the log file to STDERR.
Specify the name of the rdb table with rows `field' and `col'. Like the defs_file parameter used in rdb2pg.
The prefix for the log files of interest. Aperture logs are found in aperlog.* files, so -prefix should be set to `aper'.
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.
Split the output up into one file per directory, using the name of the directory as the rdb file name.
parse-pha parses stage log 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 stage log 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 pha file name.
A file containing file or directory names. The file name should be preceded
by the
@ character.
When parse-log searches directories, it looks for files matching the Perl regular
expression /{$prefix}log.\d+$/.
The date column is re-written as an ISO compliant date.