EDPS FOF Conversion Pipeline Reference Manual


Contents


FOF Pipeline Overview

The need for a FOF Pipeline

The FOF Pipeline is the Pipeline within the EDPS that extracts telemetry parameters of interest from FOF files received from CCS and packages the parameters into intermediary telemetry files that are subsequently used by the EDPS FGS and Astrometry pipelines to produce their associated output products. In addition, the FOF pipeline SAVENG process extracts Save file and Breathing file related telemetry parameters and packages them into the Save and Breathing files that get copied to the STScI Engineering Team.

Intended Audience and Scope

This Reference Manual is intended primarily to give OPUS Operations Personnel information needed to understand the operation of the EDPS FOF Conversion Pipeline. This includes information on the FOF Pipeline Input and Output products, the directories and files used, and the processes involved. Hopefully, as envisioned, this manual will be a dynamic document that is updated when FOF Pipeline changes are made.

FOF Pipeline Dependencies

Being one of five pipelines that compose the EDPS, The FOF pipeline is not a stand-alone pipeline in and of itself. In order for the FOF Pipeline to function, processes contained in other EDPS pipelines must first execute correctly. In regards to how they provide for the FOF pipeline, and for the FOF pipeline processing to be successful, the following EDPS pipelines must execute in the following sequence:
  1. PASS Data Receipt(PDR) This pipeline receives Science Mission Schedule (SMS) information from the PASS system and uses the information to populate database relations that processes in the FOF pipeline rely on. The relations provide information such as whether or not any observations or guide star acquisitions occur within the time span of a given engineering telemetry (FOF) file. Processes in the FOF pipeline use this information to determine if they have work to do; i.e., if they have to extract telemetry parameters of interest from the FOF files and package the parameters for input to the FGS and AST EDPS pipelines.
  2. Engineering Data Receipt(EDR) This pipeline receives compressed engineering telemetry (FOF) files from CCS and uncompresses them so they can be read by processes in the FOF Conversion pipeline.
  3. FOF Conversion(FOF) If it is determined that telemetry parameters of interest are contained in the uncompressed engineering telemetry files produced by the EDR pipeline, processes in the FOF pipeline extract the telemetry parameters of interest and store them into intermediary files (tyyyydddhhmm.ast), and (tyyyydddhhmm.fgs). These files are subsequently used as input for the EDPS Astrometry and FGS pipelines respectively. In addition, telemetry parameters of interest to the STScI Engineering team are packaged into Save/Breathing files (eng_save_yydddhhmm.fof) and (breathing_yydddhhmm.fof) and copied to the Engineering Team.
Also, the FOF Pipeline and the OPUS EDPS in general for that matter are highly dependent upon database interaction; see FOF Pipeline Database Usage. In order for the FOF pipeline database interaction to occur correctly, the processes in the pipeline should be executed in a pipeline mode as opposed to an interactive mode. Typically, as specified by the OK_TO_UPDATE_DATABASE mnemonic in process resource files, processes that run in interactive mode are prohibited from performing database updates. Therefore, to ensure correct operation of the pipeline, !!! ALL FOF PIPELINE PROCESSES SHOULD BE RUN ONLY IN THE PIPELINE MODE !!!.

FOF Pipeline Nominal Operational Description

After the EDPS PDR and EDR pipelines have successfully executed for the time period covering a specific SMS, the FOF Pipeline is ready to extract telemetry parameters of interest from input FOF files covering the same time period. FOF pipeline processing is triggered by the appearance of uncompressed FOF telemetry files in the FOF_INPUT_DIR directory. Then, the pipeline FGSENG, ASTENG, and SAVENG process are triggered to extract from the input FOF files telemetry parameters that they have specific interest in. Telemetry parameters extracted by the FGSENG and SAVENG processes are packaged into intermediary telemetry files in the FOF_FGS_DIR and FOF_AST_DIR directories respectively. The intermediary telemetry files are used as input to the EDPS FGS and Astrometry pipelines. Telemetry parameters extracted by the SAVENG process are packaged into Save files and Breathing files in the FOF_SAV_DIR directory. SAVENG also copies the files to the STScI Engineering Team. Once all telemetry parameters of interest are extracted from an input FOF file, pipeline clean-up occurs. This clean-up involves deleting the copies of the Save and Breathing files, and deleting the input FOF files along with their corresponding OSFs.

FOF Pipeline Directories and Files


FOF Pipeline Processes

FOF Pipeline Processes Overview

The FOF Pipeline is composed of the following 9 processes:

  1. FOFPOL - polls the FOF_INPUT_DIR directory for uncompressed Engineering Telemetry Files produced by the EDPS EDR ZIPFOF pipeline process and creates a 'fof' class OSF for each telemetry file found.
  2. FGSENG - queries database to find out if any observations (other than astrometry observations) or guide star acquisitions occur during the time frame of the telemetry files found by the FOFPOL process. If observations or acquisitions do occur, FGS related telemetry parameters are extracted from the FOF files and stored into intermediary files in the FOF_FGS_DIR directory. These intermediary files are subsequently used by the EDPS FGS pipeline.
  3. ASTENG - queries database to find out if any astrometry observations occur during the time frame of the telemetry files found by the FOFPOL process. If astrometry observations do occur, astrometry related telemetry parameters are extracted from the FOF files and stored into intermediary files in the FOF_AST_DIR directory. These intermediary files are subsequently used by the EDPS Astrometry pipeline.
  4. SAVENG - extracts Save/Breathing file related telemetry parameters from the FOF files found by the FOFPOL process and produces Save/Breathing files in the FOF_SAV_DIR directory.
  5. CHKFOF - renames the intermediary telemetry files produced by the FGSENG and ASTENG processes in the FOF_FGS_DIR and FOF_AST_DIR directories respectively. The files are renamed so they can be recognized and processed by the EDPS FGS and Astrometry pipelines.
  6. FTPSAV - copies (via FTP) to the STScI Engineering team, the Save and Breathing files produced by the SAVENG process in the FOF_SAV_DIR directory.
  7. DELSAV - deletes the Save and Breathing files from the FOF_SAV_DIR directory after the files have been successfully copied to the STScI Engineering team.
  8. DL_FOF - deletes FOF files from the FOF_INPUT_DIR directory after the files have been successfully processed by the FGSENG, ASTENG, and SAVENG processes.
  9. FOFDEL - deletes 'fof' class OSFs for the FOF files in the FOF_INPUT_DIR directory after the files have been successfully processed by the FGSENG, ASTENG, and SAVENG processes.

FOF Pipeline Processes Details


FOFPOL Process Details


FGSENG Process Details


ASTENG Process Details


SAVENG Process Details


CHKFOF Process Details


FTPSAV Process Details


DELSAV Process Details


DL_FOF Process Details


FOFDEL Process Details


FOF Pipeline Database usage

Database Relations Accessed

Database Queries Performed


Database Relations accessed

product_eng_map Relation

     This relation is used to identify the FOF engineering telemetry files that need to be converted to provide
     intermediary telemetry files containing telemetry parameters needed for FGS, GSA or AST product generation.
     It is used to simplify creation and collection of telemetry for processing.  When a product has no 
     eng_ready = N flags, then the OSF for the product can be created using the product rootname.
     
     The FOF Pipeline FGSENG and ASTENG processes use this relation
     to determine if they need to extract telemetry parameters of interest from a given FOF file.     


       	Field name           type/size	 description  
        ----------           ---------   -----------
        product_rootname     C14         IPPPSSOOT for jitter or astrometry products;
                                         GYYYYDDDHHMMSS for GS acquisition data
 
        product_type         C3          FGS for jitter, AST for astrometry, or GSA for GS 
                                         acqusition data
 
        eng_rootname         C12         TYYYYDDDHHMM, rootname of the ENG telemetry file

 
        eng_ready            C1          (Y/N), 'N' indicates the telemetry file eng_rootname is not
                                         yet recognized as ready for this product_type. 'Y' indicates
                                         that the processing for this product type has recognized
                                         the presence of eng_rootname. Having separate control for
                                         each product type simplifies initiation of processing. "

eng_telemetry Relation

     This relation is used to identify the engineering telemetry parameters received from CCS that must be 
     extracted from FOF files and packaged into intermediary telemetry files to be used by EDPS FGS and 
     Astrometry pipelines.
     
     The FOF Pipeline FGSENG and ASTENG processes use this relation
     to determine what telemetry parameters are of interest and thus should be extracted from a given FOF file.     

       	Field name           type/size	 description  
        ----------           ---------   -----------
        eng_type             C3          identifies which EDPS pipeline this parameter is of interest to; 
	                                 "FGS" = FGS pipeline, "AST" = Astrometry pipeline

        ccs_number           I4          A positive value less than 64K defined by CCS for every unique 
	                                 telemetry parameter in the engineering warehouse. It is the Numeric ID
					 described in the definition of FOF elements (see Appendix A of HST-ICD-T2)

        eng_number           I4          A small positive value used in the FGS or Astrometry intermediary
	                                 telemetry files to identify individual telemetry parameters.  In the
					 intermediary files the eng_number value is used in place of the
					 ccs_number value

        raw_flag             C1          indicates if to use the raw or EU converted value of a telemetry
	                                 parameter; "Y = only use raw value, N = use engineering value."

        change_only          C1          indicates to use the value of a telemetry parameter only if the value
	                                 had changed since its last occurrence; "Y = change-only item, 
					 N = all-points item."

save_telemetry Relation

     This relation is used to identify the engineering telemetry parameters received from CCS that must be 
     extracted from FOF files and packaged into the Save and Breathing files that get copied to the STScI 
     Engineering Team.
     
     The FOF Pipeline SAVENG process uses this relation to determine what telemetry 
     parameters are of interest and thus should be extracted from a given FOF file.     

       	Field name           type/size	 description  
        ----------           ---------   -----------
        save_type            C6          identifies which destination file this parameter is output to; 
	                                 "ENG" = Save File, "BREATH" = Breathing file

        ccs_number           I4          A positive value less than 64K defined by CCS for every unique 
	                                 telemetry parameter in the engineering warehouse. It is the Numeric ID
					 described in the definition of FOF elements (see Appendix A of HST-ICD-T2)

        short_mnemonic       C4          the short mnemonic for the telemetry parameter.  It is always of the 
	                                 form of an uppercase character and a three digit number. The first 
					 character always matches the first character of the CCS mnemonic. 
                                         Usually thie short mnemonic is the same as that used in shuttle 
					 software (called the MS_ID).

        raw_flag             C1          indicates if to use the raw or EU converted value of a telemetry
	                                 parameter; "Y" = only use raw value, "N" = use engineering value

breathing_coeff Relation

     This relation is used to specify the components of the average temperatures output to Breathing files
     produced by the EDPS FOF pipeline SAVENG process. The temperatures in the averages are weighted by a 
     coefficient supplied in this table. The telemetry items are identified by their CCS number. The long and 
     short names of these engineering telemetry temperatures can be found by joining to the save_telemetry 
     table with save_type set to BREATH and matching ccs_number.
     
     The FOF Pipeline SAVENG process uses this relation to get temperature coefficients
     that are used in computing values output to Breathing files.
     
       	Field name           type/size	 description  
        ----------           ---------   -----------
        temp_num             I4          A numeric ID for the average temperature in a Breathing file. 
					 
        ccs_number           I4          A positive value less than 64K defined by CCS for every unique 
	                                 telemetry parameter in the engineering warehouse. It is the Numeric ID
					 described in the definition of FOF elements (see Appendix A of HST-ICD-T2)

        temp_coeff           R8          The normalized coefficient used to weight the average for the telemetry
	                                 parameter identified by the ccs_number. The average is the accumulation
					 of the product of the telemetry temperature times the coefficient.

        temp_name            C17         The name of the temperature average
 

Database Queries Performed

FGSENG Process Queries

ASTENG Process Queries

SAVENG Process Queries