OMA/GMA


OMA

After determining the name of the detector and the date of the exposure, the OMA process will see if there is an OSF for the daily. If not one will be immediately created. Thus operations will see an OSF (mama_xuv_yyyymmdd) after the first exposure for that date has been encountered. The OSF for the grand_mama (life_xuv_yyyymmdd) will be created at the same time if one doesn't exist. The date of that OSF (yyyymmdd) will be the Sunday at the end of the week.

After an exposure is successfully added to a daily summary, the number of expected exposures will be determined (OMA_count_exp). If there are no more exposures to be acquired, then the OSF for the daily will be set to 'c'omplete, and the OSF for the lifetime image will be set to 'w'.

GMA

The GMA (Grand MAMA) process which creates the LIFE image by adding the dailys to a lifetime summary will now be an OSF triggered process. The name of the event will contain not only the xUV mode, but the end date to be added: eg: LIFE_FUV_20001102.

1.First dads_archive will be queried to determine the last LIFE file archived for that xUV mode.

2.From this filename the next Monday will be determined. (The last LIFE may not have ended on a Sunday due to no xUV exposures being scheduled for that day.) If the current name of the LIFE image (from the OSF trigger) is not in the same week, terminate with a message, resetting the OSF back to 'g'.

3.For exposures expected during that week, a query will be made of grand_mama, qobservations, and qolink_sms to determine which, if any, exposures are still missing from that daily. If some exposures are missing, processing will cease with appropriate messages. The LIFE OSF will be reset to 'g' in the CA column.

[ To determine which exposures the gma process needs to continue processing, use the missing_files command (see opus 12.0 release notes for proper usage).]

4.If all files which are supposed to be there are there, and are complete, then for each day in the week:

       1.Add the image to the LIFE image, 
       2.set the daily OSF to 'w' for archiving. 

5.When all dailys have been added then:

       1.copy the static LIFE file to LIFE_xUV_yyyymmdd_oma.fits (where
         yyyymmdd is the last day of the SMS week. 
       2.update the LIFE OSF to 'c' for calibration and 'w' for archiving. 

The calibration column for the STIS gets some heavy use:


          class   CA      description
          -----   --      -------------------------------
          STI     G       Waiting for the OMAMA process
          STI     O       Processing (adding to the daily)
          STI     W       Waiting for calibration

          OMA     O       Daily waiting for more exposures
          OMA     C       Daily complete, ready for GMA

          OMA     G       GMA process should expect dailys 
          OMA     W       Waiting for GMA to process the dailys
          OMA     C       Lifetime complete, ready for archiving