NAME

irig2day - convert irig times to fractional days


SYNOPSIS

irig2day [ options ] < rdb file


OPTIONS

Options may be abbreviated.

-irig column name

name of the column which contains the date in IRIG format.

-day column name

name of the output column for the converted date.

-wrap

If specified, days are un-wrapped.

-wrap_s integer

day before which days will be considered to be in the next year. defaults to 200.

-wrap_e integer

last day of the year. For 1996, it is 366. The default value is 366.

-help

print this message

-version

print the version and exit


DESCRIPTION

irig2day reads an rdb file and converts a column of dates in IRIG format to fractional days. It outputs an rdb table. The fractional days are placed in a new column. The IRIG time column is name is specified by the -irig option; it defaults to irig. The output column name is specified by the -day option; it defaults to day.

Since the IRIG time day field has 3 digits, it'll wrap eventually, causing degeneracy in times. At the XRCF, the day field is used to specify the cardinal index of the day in the year. irig2day provides the -wrap option, which will cause it to treat any day less than that specified with the -wrap_s option as if it were a year later. It adds the value specified by the -wrap_e option to such days. If -wrap_s is not specified, it defaults to 200. -wrap_e defaults to 366, as 1996 was a leap year.

irig2day automatically will recognize two IRIG formats:

dddhhmmssfff
ddd/hh:mm:ss[.fff]

It ignores empty fields, and prints 'ERROR' for fields that do not conform to any of the aforementioned formats.

Please bring the existance of other formats to the author's attention.


AUTHOR

D. Jerius (djerius@cfa.harvard.edu)

M. Tibbetts (mtibbetts@cfa.harvard.edu)