UVS ingest data

From Tauwiki

Jump to: navigation, search

[edit] The steps in the module UVS_ingest_data

  1. Get level0 binary file containing science(including fillers) and telemetry data.
  2. Check for the sync (science or telemetry)
    • If science - Start writing a new science o/p file
      1. Check for filler, StartLog, data and EndLog.
      2. Store StartLog, EndLog ( as 1 if present else 0 )
    • StartTime and EndTIme (obtained from time minor frame) into a text file. If not EOF and another StartLog is found then Start writing a new scinece file. Repeat steps a and b.
  3. If telemetry - Start writing a new telemetry o/p file. Only one telemetry file is written for entire input file.
  4. The output text file format will be:
 sci0    STARTLOG = 1    STARTTIME = 5.03316E7    ENDLOG = 0    ENDTIME = 5.0332023E7
 sci1    STARTLOG = 0    STARTTIME = 5.0332086E7  ENDLOG = 0    ENDTIME = 5.0332147E7
 sci2    STARTLOG = 0    STARTTIME = 5.0332148E7  ENDLOG = 1    ENDTIME = 5.0332162E7


[edit] The steps in module UVS_combine_level1

1. Get the text file ( o/p of UVS_ingest_data ) which contains details of science data files which are to be combined.

2. Check for the StartLog (SL) and EndLog (EL) in the first file, if both are present then it is a complete file, so move to next file details.

3. The possible cases handled are,

  i   :  If the SL and data exists and EL is missing then take the ENDTIME(ET) of this file 
  ii  :  if the next file has only data (No SL and EL) OR it may have data and EL then, take STARTTIME(ST) of this 
         file.
  iii :  Once we get ST and ET take the difference and compare the result with TIMESTAMP (taken from a parameter 
         file).
  iv  :  If the result is lesser or equal to TIMESTAMP then both the files are combined else the second file is 
         discarded and seach begins to get another file to combine with the first file.
CSS 2.1 Xhtml 1.0 Last Modified: February 22, 2007 GooglePagerank