sort_Tid_ASCII_files

Data_Reduction.DSN.Tid_ASCII_data.sort_Tid_ASCII_files(files, dss)

Sort ASCII data files from Tidbinbilla, written with HP9825 controller.

The HP9825 controller optionally wrote ASCII data files named for the year and day-of-year of observation. This takes a list of filenames, typically generated by globbing a CD-ROM, and sorts them by time.

:param files : Full path and name of each file to be included in the sorting. :type files : list of str

:param dss : Nominal dss number :type dss : int

Returns

(tuple of lists of lists)

For example:

([['1989-05-28T09:47:30', '1989-05-28T16:19:19', '89_148.tid']
  ['1989-05-28T16:26:07', '1989-05-30T08:27:51', '89_148a.tid']
  ['1989-05-30T08:34:13', '1989-06-03T09:01:10', '89_150.tid']
  ...
  ['1995-05-05T02:43:45', '1995-05-05T09:58:51', '95_125.tid']
  ['1995-05-06T01:01:44', '1995-05-06T09:46:46', '95_126.tid']
  ['1995-05-08T02:43:08', '1995-05-08T09:48:05', '95_128.tid']],
 [])
 The first list has the sorted file names.  The second list has
 files with bad scans