get_obs_date

Data_Reduction.DSN.old_init.get_obs_date(filename)

Parse a filename for the date of observation.

Given a VSR or RAVI data file, return the year, month, day of observation as a tuple. Generally, the data file has the year and DOY in its header but, if not, they are encoded in the file name.

Notes

A raw VSR UNIX file has the form:

vsr1X.CCC.YY-DDD-HHMM.raw

where X = a|b, CCC = 1w1 | 2w1 (and possibly 1N1 or 2N1) and the rest are the date info. The 1 in front of the X could be 2 or 3 but not at DSS-13.

A signal statistics file has the form:

STATS_NP1000_vsr1X.CCC.YY-DDD-HHMM

encoded as above. It may also have the suffix -qlook and -bin, and HHMM may be ‘mars’ for some older files.

FFT file names are:

FFT_vsr1X.CCC.YY-DDD-HHMM.raw_DDD-HH:MM:SS_HH:MM:SS

where the part after ‘raw’ gives the start and end of the data segment processed. The HHMM may be ‘mars’ for some older files, in which case the file name form is FFT_vsr1X.CCC.YY-DDD-mars_097-04:19:45_04:20:00

:param filename : string