irig2day - convert irig times to fractional days
irig2day [ options ] < rdb file
Options may be abbreviated.
name of the column which contains the date in IRIG format.
name of the output column for the converted date.
If specified, days are un-wrapped.
day before which days will be considered to be in the next year. defaults to 200.
last day of the year. For 1996, it is 366. The default value is 366.
print this message
print the version and exit
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:
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.
D. Jerius (djerius@cfa.harvard.edu)
M. Tibbetts (mtibbetts@cfa.harvard.edu)