get_scans

Data_Reduction.DSN.Tid_ASCII_data.get_scans(path, groups, group_index)

Build up a dictionary of Tid scans for an observing session

This processes all the files for an observing session to create a Python dictionary of Tid scans, indexed by scan number. Sometimes, scan numbers were re-used if scans had invalid data. In case a scan already exists in a dictionary, the one with the latest date/time is retained.

Notes

Some of the scans in the ASCII data files are incomplete. This can be detected by the number of numbers in the scan. SpectraData files have 64+320 numbers. DAVOS files have 65+16384 numbers. Anything else is invalid and rejected.

scantable() does not reject bad scans (e.g. all data values the same) but makes them invisible to get_scan(), summary() and getscannos(). The bad scans will show up, for example, in get_sourcename() as “” and get_direction() as (0.0,0.0). This is also causes scans to be lumped together in mini-scantables. This function rejects bad scans by checking that the data values are not all the same.

:param pathstr::

Path to the original data files

:param groupslist of lists of strings::

files grouped by DOY (observing session)

:param group_indexint::

index of the group to process

Returns

dictionary of Tid_scan instances:: indexed by scan number