EDPS Astrometry (AST) Pipeline Reference Manual
Contents
Astrometry Pipeline Overview
The need for an Astrometry Pipeline
The Astrometry Pipeline is the Pipeline within the EDPS that produces FITS format
products for each astrometry observation performed by HST. The FITS filers are
used by the Institute FGS instrument team to monitor the operation of the three FGS
and to perform science with the FGS related data.
Intended Audience and Scope
This Reference Manual is intended primarily to give OPUS Operations Personnel
information needed to understand the operation of the EDPS Astrometry Pipeline.
This includes information on the Astrometry 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 Astrometry Pipeline changes are made.
Astrometry Pipeline Dependencies
Being one of five pipelines that compose the EDPS, The Astrometry pipeline is not a stand-alone
pipeline in and of itself. In order for the Astrometry Pipeline to function, processes
contained in other EDPS pipelines must first execute correctly. In fact, the Astrometry
pipeline must be the last to run in the sequence of the five pipelines. In regards to how
they provide for the astrometry pipeline, and for the astrometry pipeline processing to be
successful, the five EDPS pipelines must execute in the following sequence:
- 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 astrometry pipeline rely on. The relations provide information such
as astrometry observation start and stop times.
- Engineering Data Receipt(EDR) This pipeline receives compressed engineering telemetry
files from CCS and uncompresses them so they can be read by the FOF Conversion pipeline. The FOF
pipeline in turn extracts telemetry parameters of interest from the telemetry files and provides the
telemetry of interest to the astrometry pipeline. The astrometry pipeline uses the telemetry to generate
its output FITS file products.
- FOF Conversion(FOF) This pipeline dredges the engineering telemetry files received from CCS
for astrometry related telemetry parameters of interest. The telemetry parameters of interest are
extracted and stored into intermediary files (tyyyydddhhmm.ast) which are read by the astrometry
pipeline and their data used to generate the astrometry FITS file output products.
- Fine Guidance Sensor(FGS) This pipeline produces jitter products for HST observations. In
producing these products however, various values that are also required in the astrometry pipeline are
calculated. These values are provided to the astrometry pipeline in the form of keyword/value pairs
contained in the ast_jitter_kw relation. The keyword/value pairs end up
in the headers of the astrometry FITS file products.
- Astrometry(AST) Pipeline - This pipeline produces Astrometry FITS File products.
Also, the Astrometry Pipeline and the OPUS EDPS in general for that matter are highly dependent upon
database interaction; see Astrometry Pipeline Database Usage. In order for the
astrometry 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 ASTROMETRY PIPELINE PROCESSES SHOULD BE RUN ONLY IN THE PIPELINE MODE !!!.
Astrometry Pipeline Nominal Operational Description
After the PDR, EDR, and FOF pipelines have successfully executed for the time period covering a specific
SMS, the Astrometry Pipeline is ready to generate FITS File output products for all astrometry observation
contained within the SMS. Astrometry pipeline processing is triggerred by the appearance of astrometry
telemetry files in the AST_TELEM_DIR directory. Then, a number of astrometry
processes are triggerred in sequence to extract astrometry related data from the input telemetry
files and from various database relations. This astrometry related data is accumulated in intermediary files
in the AST_RAW_DIR directory. These intermediary files are then used by
the FGSAST process to actually produce the astrometry FITS file products that get
written to the AST_OUTPUT_DIR directory. Requests are then made to archive
the astrometry products. Files that get produced to track the progress of archive requests and responses
are written to the AST_AREQ_DIR, AST_ARSP_DIR, and
AST_LOG_DIR directories. Once the astrometry products have successfully
archived, astrometry "clean-up" processes are triggerred to delete the intermediary files used to produce the
products, to delete the products themselves, and to delete the OSFs that were generated for each
observation processed. In addition, determinations are made with regard to whether any of the input
astrometry telemetry files are needed for processing other astrometry observations. The telemetry files
deemed to be no longer needed will be deleted along with their corresponding OSFs.
Astrometry Pipeline Directories and Files
- OPUS_HOME_DIR
contains Astrometry Process Status Files (PSFs) and Process Log Files
- OPUS_HOME_DIR_LOCK
contains transient Lock Files used to avoid PSF collisions
- OPUS_OBSERVATIONS_DIR
contains Astrometry Observation Status Files (OSFs)
- OPUS_OBSERVATIONS_DIR_LOCK
contains transient Lock Files used to avoid OSF collisions
- OPUS_DEFINITIONS_DIR
contains Path files, Stage Files, Process Resource Files, OPUS Manager Data Files, and other configuration
related files:
ast.path_template - defines directory mnemonics used by the Astrometry Pipeline.
Also defines mnemonics such as OPUS_DB, DSQUERY, and OK_TO_UPDATE_DATABASE for database access
null.path - defines directory mnemonics used by Astrometry processes when they are
being executed in an interactive mode.
ast_pipeline.stage - defines the 9 stages in the Astrometry Pipeline; the processes
that execute within each stage; and the possible status values for each stage
- AP - Astrometry Telemetry File Polling Stage
- RA - Astrometry Raw Data Processing Stage
- AK - Astrometry Keyword Stage
- FA - Astrometry Generic Conversion Stage
- RQ - Astrometry Archive Request Stage
- RS - Astrometry Archive Response Stage
- CL - Astrometry Clean-Up Stage
- FN - Astrometry Finish-Up Stage
- DL - Astrometry Delete Stage
ASTPOL.RESOURCE - defines characteristics of the ASTPOL Process
RAHOLD.RESOURCE - defines characteristics of the RAHOLD Process
RAWAST.RESOURCE - defines characteristics of the RAWAST Process
ASTKWD.RESOURCE - defines characteristics of the ASTKWD Process
SS_AST.RESOURCE - defines characteristics of the SS_AST Process
FGSAST.RESOURCE - defines characteristics of the FGSAST Process
ASTREQ.RESOURCE - defines characteristics of the ASTREQ Process
ASTRSP.RESOURCE - defines characteristics of the ASTRSP Process
ASTCLN.RESOURCE - defines characteristics of the ASTCLN Process
ASTFIN.RESOURCE - defines characteristics of the ASTFIN Process
DL_AST.RESOURCE - defines characteristics of the DL_AST Process
ASTDEL.RESOURCE - defines characteristics of the ASTDEL Process
pmg_restrictions.dat - used to restrict the number of copies of certain processes that
the PMG is allowed to start up
opus.env - contains user-configurable parameters that establish the format of PSTAT and
OSF blackboard entries, which blackboard implementation to use, and the directory in which PSTAT
entries are stored for FILE blackboard implementations
opus_corba_objs - contains information needed when a CORBA Blackboard implementation is
being used for interprocess communication between the OPUS Managers and the processes in a pipeline
AST_TELEM_DIR
contains Astrometry Telemetry files produced by the EDPS FOF Pipeline FGSAST Process
- tyyyydddhhmm.ast - Naming Convention of Astrometry Telemetry files before they have been
found by the Astrometry Polling Process (ASTPOL)
- tyyyydddhhmm.ast_done - Naming Convention of Astrometry Telemetry files after they have
been found by the Astrometry Polling Process (ASTPOL)
AST_RAW_DIR
contains intermediary files needed to produce Astrometry output products
- fpppssoom.akx - astrometry observation ascii keyword file from telemetry. Produced by
the RAWAST process in the (RA) stage of the Astrometry Pipeline.
- fpppssoom.agx - astrometry observation ascii keyword file from database. Produced by
the ASTKWD process in the (AK) stage of the Astrometry Pipeline.
- fpppssoom.dgx - astrometry observation ascii support schedule file from database. Produced
by the SS_AST process in the (AK) stage of the Astrometry Pipeline.
- fpppssoom.arx - astrometry observation telemetry group data file from telemetry. Produced
by the RAWAST process in the (RA) stage of the Astrometry Pipeline.
AST_OUTPUT_DIR
contains Astrometry Observation output FITS File products. All of the products are produced by the FGSAST
process in the (FA) stage of the astrometry pipeline.
- fpppssoom_a1f.fits - astrometry observation FITS file product for FGS 1
- fpppssoom_a2f.fits - astrometry observation FITS file product for FGS 2
- fpppssoom_a3f.fits - astrometry observation FITS file product for FGS 3
- fpppssoom_dmf.fits - astrometry observation FITS file Support Schedule
- fpppssoom.trx - astrometry processing ascii trailer file before being converted to FITS
- fpppssoom_trl.fits - astrometry processing trailer file after being converted to FITS
AST_AREQ_DIR
contains request to archive the Astrometry FITS file products
- YYYYMMDD_HHMMSS_fpppssoom_ast.areq - request to archive astrometry products
AST_ARSP_DIR
contains response to the request to archive the Astrometry FITS file products
- YYYYMMDD_HHMMSS_fpppssoom_ast.arsp - response to request to archive astrometry products
AST_LOG_DIR
contains a log file written to by the ASTREQ and ASTRSP processes to indicate the disposition of an archive
request and its corresponding response
- fpppssoom_ast.log - disposition of astrometry archive request/response
Astrometry Pipeline Processes
Astrometry Pipeline Processes Overview
The Astrometry Pipeline is composed of the following 12 processes:
- ASTPOL - polls the AST_TELEM_DIR directory
for astrometry telemetry files produced by the EDPS FOF Pipeline and creates an 'eng' class osf for
each telemetry file found
- RAHOLD - queries database to find out if any astrometry
observations occured during the time frame of the telemetry files found by the ASTPOL process.
Also determines if any of the observations require telemetry files that have not yet arrived
before processing can proceed. 'ast' class OSF's are created for each observation
that is ready to be processed.
- RAWAST - generates the telemetry derived astrometry keyword file
(fpppssoom.akx) and the telemetry group data file (fpppssoom.arx) file used by the FGSAST
Process to produce the astrometry output FITS file products
- ASTKWD - generates the database derived astrometry keyword file
(fpppssoom.agx) used by the FGSAST Process to produce the astrometry output FITS file products
- SS_AST - generates the database derived astrometry support schedule
file (fpppssoom.dgx) used by the FGSAST Process to produce the astrometry output FITS file products
- FGSAST - produces astrometry FITS file output products
- ASTREQ - generates request to archive astrometry FITS file products
- ASTRSP - processes responses to archive requests
- ASTCLN - deletes the files that were used in producing the astrometry output
products; i.e., the fpppssoom.ark, fpppssoom.akx, fpppssoom.agx, fpppssoom.dgx, and fpppssoom.trx files
and the products themselves; i.e., fpppssoom_a1f.fits, fpppssoom_a2f.fits, fpppssoom_a3f.fits, fpppssoom_dmf.fits, and
fpppssoom_trl.fits after the products have been successfully archived.
- ASTFIN - determines if the astrometry telemetry file currently being processed is
needed to process any other astrometry observations. If the telemetry file is no longer needed, its
'eng' class OSF is set to complete to indicate that the telemetry file can be deleted.
- DL_AST - deletes astrometry telemetry files; i.e., (tyyyydddhhmm.ast_done) files that
are no longer needed for astrometry processing
- ASTDEL - deletes 'eng' and 'ast' class osf's from the astrometry pipeline after
the astrometry processing has completed
Astrometry Pipeline Processes Details
ASTPOL Process details
- ASTPOL Process Description
- This process is resides in the (AP) stage of the Astrometry
Pipeline. Its purpose is to poll the AST_TELEM_DIR directory for astromety
telemetry data files produced by the EDPS FOF Pipeline FGSAST Process. For each astrometry telemetry file
found, ASTPOL creates an 'eng' class OSF in the OPUS_OBSERVATIONS_DIR and
sets the OSF to trigger the RAHOLD Process in the next stage of the pipeline. Also, the name of each
telemetry file found is appended with an "_done" to keep the file from being seen and processed again by
ASTPOL
- ASTPOL Process Triggers
Input Trigger:
ASTPOL is a file poller process that is triggerred by the appearance of astrometry telemetry files in
the AST_TELEM_DIR
Output Trigger:
ASTPOL triggers the RAHOLD Process
AP RA AK FA RQ RS CL FN DL Class
-- -- -- -- -- -- -- -- -- -----
c w n n n n n n w eng
ASTPOL Process I/O - Input to and Output from the ASTPOL process is as follows:
INPUT:
AST_TELEM_DIR:
tyyyydddhhmm.ast - Astrometry Telemetry Files generated by the EDPS FOF Pipeline FGSAST Process
OUTPUT:
AST_TELEM_DIR:
tyyyyddhhmm.ast_done - renamed Astrometry Telemetry files
OPUS_OBSERVATIONS_DIR:
'eng' class OSF's for Astrometry Telemetry files
ASTPOL Process Modes - The ASTPOL process invokes a script to do file polling and it executes in
a Pipeline mode only. The script that is invoked is indicated in the 'COMMAND' mnemonic in the ASTPOL
resource file.
Pipeline Mode:
xpoll -p opus_definitions_dir:your.path -r astpol (in task line of resource file)
where: xpoll = External Poller Process used to invoke a script to do file polling
-p = denotes path file specification follows
-r = denotes resource file for the ASTPOL Process
opus_definitions_dir:your.path = path file to use
ASTPOL Process Resource File
!--------------------------------------------------------------------
!
! astpol.resource
!
! External poller using xpoll
!
! This file is used to construct the trigger, error, and success
! status fields in the observation status file.
!
!--------------------------------------------------------------------
! REVISION HISTORY
!--------------------------------------------------------------------
! MOD PR
! LEVEL DATE NUMBER User Description
! ----- -------- ------ ------ -------------------------------------
! 000 10/24/01 44684 Goldst Created initial version
! 001 02/14/02 45016 Goldst Corrected ENV.SET_STATUS
! 002 07/16/02 43963 jschultz corrected ENV. settings
!--------------------------------------------------------------------
PROCESS_NAME = astpol
TASK = <xpoll -p $PATH_FILE -r astpol>
DESCRIPTION = 'Polls for astrometry telemetry files'
COMMAND = eng_poll.pl
SYSTEM = AST
CLASS = ast
DISPLAY_ORDER = 1
FILE_RANK = 1
FILE_DIRECTORY1 = AST_TELEM_DIR
FILE_OBJECT1 = *.ast
FILE_PROCESSING = _proc
FILE_SUCCESS = _done
FILE_ERROR = _bad
XPOLL_STATE.11 = FILE_SUCCESS
XPOLL_STATE.13 = FILE_ERROR
XPOLL_STATE.15 = FILE_ERROR
XPOLL_ERROR.AP = x ! Undefined exit status
POLLING_TIME = 10 ! Wait (seconds) before polling for next
ENV.PIPELINE = AST
ENV.DATA_ID = eng
ENV.PROC_EXT = .ast_proc
ENV.INPATH = AST_TELEM_DIR
ENV.SET_STATUS = cwnnnnnnw
ENV.DUPLICATE = d
ENV.POLL_STEP = AP
! forces values from path to be used
RAHOLD Process details
- RAHOLD Process Description
- This process is the first of two processes that reside in the
(RA) stage of the Astrometry Pipeline. It is an 'eng' class OSF triggered process and its purpose is to
examine the database product_eng_map and
product_status relations to determine what, if any, astrometry
observations executed during the time interval of the telemetry data file represented by the 'eng' class
OSF that trigerred it. If astrometry observations have occurred, RAHOLD also determines whether any of the
observations require additional astrometry telemetry files that have not yet arrived before the observations
can be processed. In addition, it is also determined if any of the observation that did occur have already
been processed. For each observation that is ready and has not previously been processed, an 'ast' class OSF's
for the observation is created in the OPUS_OBSERVATIONS_DIR directory. If all
observations found have already been processed, 'ast' class OSF's are not created and the 'eng' class osf
that triggerred RAHOLD is set to 'c' in the RA stage.
- RAHOLD Process Triggers
Input Trigger:
RAHOLD is triggerred by the ASTPOL Process
AP RA AK FA RQ RS CL FN DL Class
-- -- -- -- -- -- -- -- -- -----
c w n n n n n n w eng
Output Triggers:
observations ready to be processed:
hold the astrometry telemetry file on reserve and trigger the
observations' RAWAST processing
AP RA AK FA RQ RS CL FN DL Class
-- -- -- -- -- -- -- -- -- -----
c r n n n n n n w eng
n w _ _ _ _ _ _ _ ast
observations waiting for additional telemetry:
hold the astrometry telemetry file on reserve and wait for
additional telemetry needed before processing the observation
AP RA AK FA RQ RS CL FN DL Class
-- -- -- -- -- -- -- -- -- -----
c r n n n n n n w eng
n v _ _ _ _ _ _ _ ast
all observations already processed:
indicate that the observations have already been processed and
the astrometry telemetry file is no longer needed
AP RA AK FA RQ RS CL FN DL Class
-- -- -- -- -- -- -- -- -- -----
c c n n n n n n w eng
RAHOLD Process I/O - Input to and Output from the RAHOLD process is as follows:
INPUT:
OPUS_OBSERVATIONS_DIR:
'eng' class OSF's which trigger RAHOLD processing
OUTPUT:
OPUS_OBSERVATIONS_DIR:
'ast' class OSF's created by RAHOLD processing to trigger RAWAST processing
RAHOLD Process Modes - The RAHOLD process invokes a script to perform its work. The script that
is invoked is indicated in the 'COMMAND' mnemonic in the RAHOLD resource file. The script can be executed in
either an interactive or pipeline mode. However, the interactive mode is used only for testing as it cannot
update or create OSFs. The RAHOLD Process itself should be executed in only a pipeline mode.
Interactive Mode:
eng_hold.pl <eng_rootname> -c <target_class>
where eng_rootname is Tyyyydddhhmm (no extension), and
target_class is FGS, GSA, or AST (for astrometry). In interactive mode
the product_eng_map is updated and tested, and the test results
are logged but no OSFs are updated.
Pipeline Mode:
In pipeline mode, the resource file must set the following ENV variables: OSF_DATASET,
TARGET_CLASS, TARGET_NEW, TARGET_COLUMN, TARGET_READY, and TARGET_WAITING.
xpoll -p opus_definitions_dir:your.path -r rahold (in task line of resource file)
where: xpoll = External Poller Process used to invoke a script to do file polling
-p = denotes path file specification follows
-r = denotes resource file for the RAHOLD Process
opus_definitions_dir:your.path = path file to use
RAHOLD Process Resource File
!--------------------------------------------------------------------
!
!
! External poller using xpoll
!
! This file is used to construct the trigger, error, and success
! status fields in the observation status file.
!
!--------------------------------------------------------------------
! REVISION HISTORY
!--------------------------------------------------------------------
! MOD PR
! LEVEL DATE NUMBER User Description
! ----- -------- ------ ------ -------------------------------------
! 000 10/24/01 44684 Goldst Created initial version
! 001 01/15/02 45016 Goldst Corrected Trigger
! 002 01/30/02 45016 Goldst Added OK_TO_UPDATE_DATABASE
! 003 03/11/02 45016 Goldst Added OSF_TRIGGER1.DATA_ID
!--------------------------------------------------------------------
PROCESS_NAME = rahold
TASK = <xpoll -p $PATH_FILE -r rahold>
DESCRIPTION = 'Database search for acquistion rootnames'
COMMAND = eng_hold.pl
SYSTEM = AST
CLASS = eng
DISPLAY_ORDER = 1
OSF_RANK = 1 ! First Trigger
OSF_TRIGGER1.RA = w ! Trigger
OSF_TRIGGER1.DATA_ID = eng ! Trigger class ID
OSF_PROCESSING.RA = p ! Processing
OSF_NO_PRODUCTS.RA = c ! Completion
OSF_RESERVE.RA = r ! Reserved
OSF_FAILURE.RA = f ! Failure setting
XPOLL_ERROR.RA = x ! Undefined exit status
XPOLL_STATE.01 = OSF_FAILURE
XPOLL_STATE.09 = OSF_NO_PRODUCTS
XPOLL_STATE.11 = OSF_RESERVE
POLLING_TIME = 10 ! Wait (seconds) before polling for next
ENV.TARGET_CLASS = ast
ENV.TARGET_READY = w
ENV.TARGET_WAITING = v
ENV.TARGET_NEW = np
ENV.TARGET_COLUMN = RA
! forces values from path to be used
ENV.OPUS_DB = OPUS_DB
ENV.DSQUERY = DSQUERY
ENV.OK_TO_UPDATE_DATABASE = OK_TO_UPDATE_DATABASE
RAHOLD Process accessed database relations
RAHOLD accessed Relations
RAHOLD Process database querries
RAHOLD Process Querries
RAWAST Process details
- RAWAST Process Description
- This process is the second of two processes that share the
(RA) stage of the astrometry pipeline. It is an 'ast' class OSF triggered process and its purpose is to
dredge telemetry parameters from input astrometry telemetry files and to use the telemetry parameters to
generate telemetry derived astrometry keyword files (fpppssoom.akx) and astrometry group data files
(fpppssoom.arx). The keyword files contain information that eventually gets output to keywords in the
headers of astrometry FITS File Science products by the FGSAST Process. The group data files contain
information that eventually gets output to binary data arays of astrometry Fits File Science products by
the astrometry pipeline FGSAST Process.
- RAWAST Process Triggers
Input Trigger:
RAWAST is triggerred by the RAHOLD Process
AP RA AK FA RQ RS CL FN DL Class
-- -- -- -- -- -- -- -- -- -----
n w _ _ _ _ _ _ _ ast
Output Trigger:
RAWAST triggers the ASTKWD Process
AP RA AK FA RQ RS CL FN DL Class
-- -- -- -- -- -- -- -- -- -----
n C w _ _ _ _ _ _ ast
RAWAST Process I/O - Input to and Output from the RAWAST process is as follows:
INPUT:
AST_TELEM_DIR:
tyyyyddhhmm.ast_done - Astrometry Telemetry files
OUTPUT:
AST_RAW_DIR:
fpppssoom.akx - telemetry derived astrometry ascii keyword file providing information to be
output to astrometry FITS file Science products
fpppssoom.arx - astrometry telemetry group data file providing information to be output to
astrometry FITS file Science products
RAWAST Process Modes - The RAWAST process should be executed in only the Pipeline mode
Pipeline Mode
rawast -p opus_definitions_dir:your.path -r rawast (in task line of resource file)
where:
-p = denotes path file specification follows
-r = denotes resource file for the RAWAST Process
opus_definitions_dir:your.path = path file to use
RAWAST Process Resource File
!--------------------------------------------------------------------
!
! rawast.resource
!
! This file is used to construct the trigger, error, and success
! status fields in the observation status file.
!
!
!--------------------------------------------------------------------
! REVISION HISTORY
!--------------------------------------------------------------------
! MOD PR
! LEVEL DATE NUMBER User Description
! ----- -------- ------ ------ -------------------------------------
! 000 10/24/01 44684 Goldst Created initial version
! 001 01/15/02 45016 Goldst Corrected Trigger
! 002 01/30/02 45016 Goldst Corrected OK_TO_UPDATE_DATABASE
! 003 03/11/02 45016 Goldst Added OSF_TRIGGER1.DATA_ID
! 004 07/23/02 43962 Heller Added jar file location
!--------------------------------------------------------------------
PROCESS_NAME = rawast
TASK = <rawast -p $PATH_FILE -r rawast>
DESCRIPTION = 'Process raw astrometry data'
SYSTEM = AST
CLASS = ast
DISPLAY_ORDER = 1
OK_TO_UPDATE_DATABASE = OK_TO_UPDATE_DATABASE ! Determined by path file
INTERNAL_POLLING_PROCESS = TRUE
OSF_RANK = 1 ! First Trigger
OSF_TRIGGER1.RA = w ! Trigger
OSF_TRIGGER1.DATA_ID = ast ! Trigger class ID
OSF_PROCESSING.RA = p ! Processing
OSF_SUCCESS.RA = c ! Completion
OSF_SUCCESS.AK = w ! Completion
OSF_FAILURE.RA = f ! Failure setting
OSF_ERROR.RA = e ! error
POLLING_TIME = 10 ! Wait (seconds) before polling for next
INPATH = AST_TELEM_DIR ! Contains raw astrometry files
OUTPATH = AST_RAW_DIR ! Contains intermediate astrometry files
ENV.OSF_NO_PROCESS = c
! forces values from path to be used
ENV.OPUS_DB = OPUS_DB
ENV.DSQUERY = DSQUERY
ENV.SPSS_DB = SPSS_DB
JAR_FILE.01 = SOGS_DISK:/bin/java/DB.jar
JAR_FILE.02 = SOGS_DISK:/bin/java/CONVERTFOF.jar
JAR_FILE.03 = SOGS_DISK:/bin/java/FGS.jar
JAR_FILE.04 = SOGS_DISK:/bin/java/JOPUS.jar
JAR_FILE.05 = SOGS_DISK:/bin/java/UTIL.jar
PRODUCT_TYPE = AST
FOF_FILE_MASK = *.ast*
RAWAST Process accessed database relations
RAWAST accessed Relations
RAWAST Process database querries
RAWAST Process Querries
ASTKWD Process details
- ASTKWD Process Description
- This process is the first of two processes that reside in the
(AK) stage of the Astrometry Pipeline. It is an 'ast' class OSF triggered process and its purpose is to
dredge astrometry related keyword values from previously populated database relations and to use the values
to generate the database derived astrometry keyword files (fpppssoom.agx). The keyword files contain information
that eventually gets output to keywords in the headers of astrometry FITS File Science products by the
astrometry pipeline FGSAST Process.
- ASTKWD Process Triggers
Input Trigger:
ASTKWD is triggerred by the RAWAST Process
AP RA AK FA RQ RS CL FN DL Class
-- -- -- -- -- -- -- -- -- -----
n c w _ _ _ _ _ _ ast
Output Triggers:
database relations have not yet been updated by the EDPS FGS Pipeline JITTER process;
hold for astrometry related JITTER database updates
AP RA AK FA RQ RS CL FN DL Class
-- -- -- -- -- -- -- -- -- -----
n c h _ _ _ _ _ _ ast
ASTKWD triggers the SS_AST Process
AP RA AK FA RQ RS CL FN DL Class
-- -- -- -- -- -- -- -- -- -----
n c a _ _ _ _ _ _ ast
ASTKWD Process I/O - Input to and Output from the ASTKWD process is as follows:
INPUT:
information from various database relations
OUTPUT:
AST_RAW_DIR:
fpppssoom.agx - database derived astrometry ascii keyword file providing information to be
output to astrometry FITS file Science products
ASTKWD Process Modes - The ASTKWD process invokes a script to perform its work. The script that
is invoked is indicated in the 'COMMAND' mnemonic in the ASTKWD resource file. The script can be executed in
either an interactive or pipeline mode. Interactive mode however is typically used only for testing. The
ASTKWD Process itself should be executed in only a pipeline mode.
Interactive Mode:
ast_keyword.pl <ast_rootname>
where:
ast_rootname is and observation ipppssoot (fpppssoom)
Pipeline Mode:
In pipeline mode, the resource file must set the 'OUTPATH' variable:
xpoll -p opus_definitions_dir:your.path -r astkwd (in task line of resource file)
where: xpoll = External Poller Process used to invoke a script to do file polling
-p = denotes path file specification follows
-r = denotes resource file for the ASTKWD Process
opus_definitions_dir:your.path = path file to use
ASTKWD Process Resource File
!--------------------------------------------------------------------
!
! astkwd.resource
!
! External poller using xpoll
!
! This file is used to construct the trigger, error, and success
! status fields in the observation status file.
!
!--------------------------------------------------------------------
! REVISION HISTORY
!--------------------------------------------------------------------
! MOD PR
! LEVEL DATE NUMBER User Description
! ----- -------- ------ ------ -------------------------------------
! 000 10/24/01 44684 Goldst Created initial version
! 001 01/15/02 45016 Goldst Corrected Trigger
! 002 01/30/02 45016 Goldst Corrected OK_TO_UPDATE_DATABASE
! 003 03/11/02 45016 Goldst Added OSF_TRIGGER1.DATA_ID
! 004 07/15/02 43963 jschultz corrected values for XPOLL_STATE and
! add outpath mnemonic
!--------------------------------------------------------------------
PROCESS_NAME = astkwd
TASK = <xpoll -p $PATH_FILE -r astkwd>
DESCRIPTION = 'Queries databases for keyword data'
COMMAND = ast_keyword.pl
SYSTEM = AST
CLASS = ast
DISPLAY_ORDER = 1
OSF_RANK = 1 ! First Trigger
OSF_TRIGGER1.AK = w !
OSF_TRIGGER1.DATA_ID = ast ! Trigger class ID
OSF_PROCESSING.AK = p !
OSF_SUCCESS.AK = c !
OSF_SUCCESS.AK = a ! Trigger for ss_ast
OSF_HOLD.AK = h !
OSF_FAILURE.AK = f !
XPOLL_ERROR.AK = x ! Undefined exit status
XPOLL_STATE.11 = OSF_SUCCESS
XPOLL_STATE.55 = OSF_HOLD
XPOLL_STATE.99 = OSF_FAILURE
POLLING_TIME = 10 ! Wait (seconds) before polling for next
! forces values from path to be used
ENV.OUTPATH = AST_RAW_DIR
ENV.OPUS_DB = OPUS_DB
ENV.DSQUERY = DSQUERY
ENV.OK_TO_UPDATE_DATABASE = OK_TO_UPDATE_DATABASE ! Determined by PATH
ASTKWD Process accessed database relations
ASTKWD accessed Relations
ASTKWD Process database querries
ASTKWD Process Querries
SS_AST Process details
- SS_AST Process Description
- This process is the second of two processes that share the
(AK) stage of the astrometry pipeline. It is an 'ast' class OSF triggered process and its purpose is to
dredge astrometry Support Schedule related keyword values from previously populated database relations and
to use the values to generate the database derived astrometry Support Schedule keyword files
(fpppssoom.dgx). The keyword files contain information that eventually gets output to keywords in
the headers of astrometry FITS Support Schedule products by the astrometry pipeline FGSAST Process.
- SS_AST Process Triggers
Input Trigger:
SS_AST is triggerred by the ASTKWD Process
AP RA AK FA RQ RS CL FN DL Class
-- -- -- -- -- -- -- -- -- -----
n c a _ _ _ _ _ _ ast
Output Trigger:
SS_AST triggers the FGSAST Process
AP RA AK FA RQ RS CL FN DL Class
-- -- -- -- -- -- -- -- -- -----
n c c w _ _ _ _ _ ast
SS_AST Process I/O - Input to and Output from the SS_AST process is as follows:
INPUT:
information from various database relations
OUTPUT:
AST_RAW_DIR:
fpppssoom.dgx - database derived astrometry ascii keyword file providing information to
be output to astrometry FITS file Support Schedule products
SS_AST Process Modes - The SS_AST process should be executed in only the Pipeline mode
Pipeline Mode
sskey -p opus_definitions_dir:your.path -r ss_ast (in task line of resource file)
where:
-p = denotes path file specification follows
-r = denotes resource file for the SS_AST Process
opus_definitions_dir:your.path = path file to use
SS_AST Process Resource File
!--------------------------------------------------------------------
!
! ss_ast RESOURCE FILE
!
!
! This file is used to construct the trigger, error, and success status
! fields in the observation status file for the astrometry pipeline
! invocation of the SSKEY process.
!
!
!--------------------------------------------------------------------
! REVISION HISTORY
!--------------------------------------------------------------------
! MOD PR
! LEVEL DATE NUMBER User Description
! ----- -------- ------ ------ -------------------------------------
! 000 07/19/97 34074 JSCHULTZ Initial file for SS_AST process
! 001 05/10/00 36852 MARose Add SPSS_DB
! 002 10/24/01 44684 Goldst Updated for OPUS AST pipeline
! 003 01/15/02 45016 Goldst Corrected Trigger
! 004 01/30/02 45016 Goldst Corrected OK_TO_UPDATE_DATABASE
! 005 07/18/02 43963 jschultz corrected OUTPATH mnemonic and deleted
! the INPATH mnemonic
!--------------------------------------------------------------------
PROCESS_NAME = ss_ast
TASK = <sskey -p $PATH_FILE -r ss_ast>
DESCRIPTION = 'Acquire astrometry support schedule data'
SYSTEM = AST
CLASS = ast
DISPLAY_ORDER = 1
INSTRUMENT = FGS
INST_CODE = F
OK_TO_UPDATE_DATABASE = OK_TO_UPDATE_DATABASE ! Determined by path file
INTERNAL_POLLING_PROCESS = TRUE
OSF_RANK = 1 ! First Trigger
OSF_TRIGGER1.AK = a ! Trigger for SS_AST process
OSF_PROCESSING.AK = p ! Set the processing flag to 'Processing'
OSF_NORMAL.AK = c ! Completed SS_AST processing
OSF_NORMAL.FA = w ! Completed
OSF_ERROR.AK = f ! Error: Set the trouble flag
POLLING_TIME = 10 ! Wait (seconds) before polling for next
MINBLOCKS = 50000 ! blocks required on output disk
! forces values from path to be used
ENV.OUTPATH = AST_RAW_DIR ! Output directory for the ast .dgx file
ENV.OPUS_DB = OPUS_DB
ENV.SPSS_DB = SPSS_DB
ENV.DSQUERY = DSQUERY
SS_AST Process accessed database relations
SS_AST accessed Relations
SS_AST Process database querries
SS_AST Process Querries
FGSAST Process details
- FGSAST Process Description
- This process resides in the (FA) stage of the Astrometry Pipeline.
It is an 'ast' class OSF triggered process and its purpose is to generate the astrometry Science and
Support Schedule FITS file products that are subsequently put into the HST archive. FGSAST is also
responsible for inserting records into the qbastr_archv
Relation and for updating the "executed_flg" field of the executed Relation.
- FGSAST Process Triggers
Input Trigger:
FGSAST is triggerred by the SS_AST Process
AP RA AK FA RQ RS CL FN DL Class
-- -- -- -- -- -- -- -- -- -----
n c c w _ _ _ _ _ ast
Output Trigger:
FGSAST triggers the ASTREQ Process
AP RA AK FA RQ RS CL FN DL Class
-- -- -- -- -- -- -- -- -- -----
n c c c w _ _ _ _ ast
FGSAST Process I/O - Input to and Output from the FGSAST process is as follows:
INPUT:
AST_RAW_DIR:
fpppssoom.akx - astrometry observation ascii science keyword file derived from telemetry.
Produced by the RAWAST process in the (RA) stage of the Astrometry Pipeline.
fpppssoom.agx - astrometry observation ascii science keyword file derived from the database.
Produced by the ASTKWD process in the (AK) stage of the Astrometry Pipeline.
fpppssoom.dgx - astrometry observation ascii support schedule keyword file derived from the
database. Produced by the SS_AST process in the (AK) stage of the Astrometry Pipeline.
fpppssoom.arx - astrometry observation telemetry group data file derived from telemetry.
Produced by the RAWAST process in the (RA) stage of the Astrometry Pipeline.
OUTPUT:
AST_OUTPUT_DIR:
fpppssoom_a1f.fits - astrometry observation FITS file Science product for FGS 1
fpppssoom_a2f.fits - astrometry observation FITS file Science product for FGS 2
fpppssoom_a3f.fits - astrometry observation FITS file Science product for FGS 3
fpppssoom_dmf.fits - astrometry observation FITS file Support Schedule product
fpppssoom.trx - astrometry processing ascii trailer file before being converted to FITS
fpppssoom_trl.fits - astrometry processing trailer file after being converted to FITS
inserts records into the qbastr_archv Relation
updates the "executed_flg" field of the executed Relation
FGSAST Process Modes - The FGSAST process should be executed in only the Pipeline mode
Pipeline Mode
fgsast -p opus_definitions_dir:your.path -r fgsast (in task line of resource file)
where:
-p = denotes path file specification follows
-r = denotes resource file for the FGSAST Process
opus_definitions_dir:your.path = path file to use
FGSAST Process Resource File
!--------------------------------------------------------------------
!
! fgsast RESOURCE FILE
!
!
! This file is used to construct the trigger, error, and success status
! fields in the observation status file for the OMSAST process.
!
!
!--------------------------------------------------------------------
! REVISION HISTORY
!--------------------------------------------------------------------
! MOD PR
! LEVEL DATE NUMBER User Description
! ----- -------- ------ ------ -------------------------------------
! 000 10/24/01 44684 Goldst Created initial version
! 001 01/30/02 45016 Goldst Corrected OK_TO_UPDATE_DATABASE
! 002 03/11/02 45016 Goldst Added OSF_TRIGGER1.DATA_ID
! 003 07/18/02 43963 jschultz corrected 'INPATH' and 'OUTPATH mnemonics
! and deleted the 'PDBPATH' mnemonic
!--------------------------------------------------------------------
PROCESS_NAME = fgsast
TASK = <fgsast -p $PATH_FILE -r fgsast>
DESCRIPTION = 'Generate astrometry products'
SYSTEM = AST
CLASS = ast
DISPLAY_ORDER = 1
OK_TO_UPDATE_DATABASE = OK_TO_UPDATE_DATABASE ! Determined by path file
INTERNAL_POLLING_PROCESS = TRUE
OSF_RANK = 1 ! First Trigger
OSF_TRIGGER1.FA = w ! Need a 'wait' flag for astrometry
OSF_TRIGGER1.DATA_ID = ast ! Trigger class ID
OSF_PROCESSING.FA = p ! Set the processing flag to 'Processing'
OSF_COMPLETE.FA = c ! Complete: completed astrometry products
OSF_FAILURE.FA = f ! Error: set the trouble flag
OSF_COMPLETE.RQ = w ! Complete: trigger next step
POLLING_TIME = 10 ! Wait (seconds) before polling for next
LOOKBACK_TIME = 10 ! time (days) to look back in WIEPHEMERIS
! relation from obs start time to find
! ephemeris data that was in effect during
! observation (max 6 chars)
MINBLOCKS = 50000 ! blocks required on output disk
! forces values from path to be used
ENV.INPATH = AST_RAW_DIR ! Directory of input files
ENV.OUTPATH = AST_OUTPUT_DIR ! Directory of output files
ENV.OPUS_DB = OPUS_DB
ENV.SPSS_DB = SPSS_DB
ENV.DSQUERY = DSQUERY
FGSAST Process accessed database relations
FGSAST accessed Relations
FGSAST Process database querries
FGSAST Process Querries
ASTREQ Process details
- ASTREQ Process Description
- This process resides in the (RQ) stage of the Astrometry Pipeline.
It is an 'ast' class OSF triggered process and its purpose is to generate requests to the HST archive to
archive the astrometry products produced in the previous pipeline stage (FA) by the FGSAST Process. The
requests that are generated provide information such as the date and time of the request, the name of the
dataset to be archived, the archive class for the dataset, the location of the files to be archived, and
the number of files to be archived.
- ASTREQ Process Triggers
Input Trigger:
ASTREQ is triggerred by the FGSAST Process
AP RA AK FA RQ RS CL FN DL Class
-- -- -- -- -- -- -- -- -- -----
n c c c w _ _ _ _ ast
Output Trigger:
ASTREQ triggers the ASTRSP Process
AP RA AK FA RQ RS CL FN DL Class
-- -- -- -- -- -- -- -- -- -----
n c c c c w _ _ _ ast
ASTREQ Process I/O - Input to and Output from the ASTREQ process is as follows:
INPUT:
AST_OUTPUT_DIR:
fpppssoom_a1f.fits - astrometry observation FITS file Science product for FGS 1
fpppssoom_a2f.fits - astrometry observation FITS file Science product for FGS 2
fpppssoom_a3f.fits - astrometry observation FITS file Science product for FGS 3
fpppssoom_dmf.fits - astrometry observation FITS file Support Schedule product
fpppssoom.trx - astrometry processing ascii trailer file before being converted to FITS
fpppssoom_trl.fits - astrometry processing trailer file after being converted to FITS
OUTPUT:
AST_AREQ_DIR:
YYYYMMDD_HHMMSS_fpppssoom_ast.areq - request to archive astrometry products. Request includes
the date and time of the request, the name of the dataset to be archived, the archive class
for the dataset, and the location and number of files in the dtatset.
AST_LOG_DIR:
fpppssoom_ast.log - log file written to by the ASTREQ and ASTRSP processes to indicate the
disposition of an archive request and its corresponding response
ASTREQ Process Modes - The ASTREQ process should be executed in only the Pipeline mode
Pipeline Mode
genreq -p opus_definitions_dir:your.path -r astreq (in task line of resource file)
where:
-p = denotes path file specification follows
-r = denotes resource file for the ASTREQ Process
opus_definitions_dir:your.path = path file to use
ASTREQ Process Resource File
!--------------------------------------------------------------------
!
! ASTREQ RESOURCE FILE
!
!
! This file is used to construct the trigger, error, and success status
! fields in the observation status file.
!
!
!--------------------------------------------------------------------
! REVISION HISTORY
!--------------------------------------------------------------------
! MOD PR
! LEVEL DATE NUMBER User Description
! ----- -------- ------ ------ -------------------------------------
! 000 10/24/01 44684 Goldst Created initial version
! 001 01/30/02 45016 Goldst Corrected OK_TO_UPDATE_DATABASE
! 002 03/11/02 45016 Goldst Added OSF_TRIGGER1.DATA_ID
! 003 07/23/02 43963 jschultz set AST.DATASET_DIR = AST_OUTPUT_DIR
!---------------------------------------------------------------------------
PROCESS_NAME = astreq
TASK = <genreq -p $PATH_FILE -r astreq>
DESCRIPTION = 'Generate astrometry archive request'
SYSTEM = AST
CLASS = ast
DISPLAY_ORDER = 1
!---------------------------------------------------------------------------
! EVNT resource.
!---------------------------------------------------------------------------
POLLING_TIME = 5 ! Response time of the application
OSF_RANK = 1 ! OSF event ordering.
OSF_TRIGGER1.RQ = w ! ARCREQ is triggered by AR = W
OSF_TRIGGER1.DATA_ID = ast ! Trigger class ID
!---------------------------------------------------------------------------
! Application Specific resource
!---------------------------------------------------------------------------
POLLING_TIME = 1
OSF_PROCESSING.RQ = p ! letter to be used when an OSF is processed.
OSF_ERROR.RQ = e ! letter to be used when there is an error.
OSF_SUCCESS1.RQ = c ! Letters to be used when it is successful
OSF_SUCCESS1.RS = w ! completion.
OSF_SUCCESS2.RQ = c
OSF_SUCCESS2.RS = w
OK_TO_UPDATE_DATABASE = OK_TO_UPDATE_DATABASE ! Determined by path file
MAX_ERROR = 10 ! Maximun number unexpected errors before
! ARCREQ quits
! Archive class and OSF map to be used.
ARCHIVE_MAP = OPUS_DEFINITIONS_DIR:archclass_osf.map
!---------------------------------------------------------------------------
! Archive groups that are recognized. The archive group name (the name
! before the ".", must be one of the archive group name specified in
! ARCHIVE_MAP.
!
! For each archive group, the following resource must be present.
! .AREQ_DIR - The pointer to the areq directory
! .LOG_DIR = The pointer to the directory where the log file is kept.
! .DATASET_DIR = The data set direcotry.
! .TRACK_EXT = (Y/N) When it is Y, every extension is saved in
! archive_files relation.
! .DATA_TYPE = DATA_TYPE value for the archive request.
! .DATASET_FILTER = <DATASET_NAME>.* The filter to be used to find
! all the dataset. <DATASET_NAME> will be replaced
! by the actual OSF dataset name at run time.
!
! .OSF_STATE = This resource allows different archive group to have
! different successfull completion status.
!
! For Generic data class,
! DATASET_FILTER must be set to <DATASET_NAME>.*, since archive is not
! capable
!
! For SM 97 orphan and unassociated fits files, the following
! additional keywords must be specified.
! .TRL_DIR = The directory where the .TRA files will be saved until
! they are deleted by ARCCLEAN.
! .DATASET_FILTER = <DATASET_NAME>.* The filter used to find
! the dataset. <DATASET_NAME> will be replaced
! by the actual OSF dataset name at run time.
!
! FOR SM 97 ASN data, the following addition keywords must be specified.
! .ASN_INGEST_DIR = The directory where archive picks up the ASN table
!
!---------------------------------------------------------------------------
AST.AREQ_DIR = AST_AREQ_DIR
AST.LOG_DIR = AST_LOG_DIR
AST.DATASET_DIR = AST_OUTPUT_DIR
AST.DATA_TYPE = FITS
AST.TRACK_EXT = N
AST.DATASET_FILTER = <DATASET_NAME>*.*
AST.OSF_STATE = OSF_SUCCESS2
! forces values from path to be used
ENV.OPUS_DB = OPUS_DB
ENV.DSQUERY = DSQUERY
ASTREQ Process accessed database relations
ASTREQ accessed Relations
ASTREQ Process database querries
ASTREQ Process Querries
ASTRSP Process details
- ASTRSP Process Description
- This process resides in the (RS) stage of the Astrometry Pipeline.
It is an 'ast' class OSF triggered process and its purpose is to generate responses to requests made to the
HST archive to archive astrometry products. The responses that are generated provide the same information
as their corresponding archive request files with the following additional information:
the status of the archive request
date and time the products were archived
error message that result if an archive request can not be satisfied
- ASTRSP Process Triggers
Input Trigger:
ASTRSP is triggerred by the ASTREQ Process
AP RA AK FA RQ RS CL FN DL Class
-- -- -- -- -- -- -- -- -- -----
n c c c c w _ _ _ ast
Output Trigger:
ASTRSP triggers the ASTCLN Process
AP RA AK FA RQ RS CL FN DL Class
-- -- -- -- -- -- -- -- -- -----
n c c c c c w _ _ ast
ASTRSP Process I/O - Input to and Output from the ASTRSP process is as follows:
INPUT:
N/A
OUTPUT:
AST_ARSP_DIR:
YYYYMMDD_HHMMSS_fpppssoom_ast.arsp - response to request to archive astrometry products
AST_LOG_DIR:
fpppssoom_ast.log - log file written to by the ASTREQ and ASTRSP processes to indicate the
disposition of an archive request and its corresponding response
ASTRSP Process Modes - The ASTRSP process should be executed in only the Pipeline mode
Pipeline Mode
ingrsp -p opus_definitions_dir:your.path -r astrsp (in task line of resource file)
where:
-p = denotes path file specification follows
-r = denotes resource file for the ASTRSP Process
opus_definitions_dir:your.path = path file to use
ASTRSP Process Resource File
!--------------------------------------------------------------------
!
! astrsp RESOURCE FILE
!
!
! This file is used to construct the trigger, error, and success status
! fields in the observation status file.
!
!
!--------------------------------------------------------------------
! REVISION HISTORY
!--------------------------------------------------------------------
! MOD PR
! LEVEL DATE NUMBER User Description
! ----- -------- ------ ------ -------------------------------------
! 000 10/24/01 44684 Goldst Created initial version
! 001 01/30/02 45016 Goldst Corrected OK_TO_UPDATE_DATABASE
!---------------------------------------------------------------------------
PROCESS_NAME = astrsp
TASK = <ingrsp -p $PATH_FILE -r astrsp>
DESCRIPTION = 'Process astrometry archive response'
SYSTEM = AST
CLASS = ast ! all
DISPLAY_ORDER = 1
!---------------------------------------------------------------------------
! EVNT resource.
!---------------------------------------------------------------------------
POLLING_TIME = 30 ! Response time of the application.
TIME_RANK = 1 ! Time event ordering.
START_TIME = 1970.001:00:00:00 ! The base reference time
DELTA_TIME = 000:00:00:30 ! The time interval to check for presence of
! archive response.
OK_TO_UPDATE_DATABASE = OK_TO_UPDATE_DATABASE ! Determined by path file
!---------------------------------------------------------------------------
! Application Specific resource
!---------------------------------------------------------------------------
MAX_ERROR = 10 ! Maximun number unexpected errors before
! INGRSP quits
OSF_WAITING.RS = w ! OSF is waiting to be processed.
OSF_PROCESSING.RS = p ! INGRSP is processing the response file.
OSF_SUCCESS.RS = c ! ARCRSP process the OSF successfully.
OSF_SUCCESS.CL = w ! ARCRSP successfull clean off data.
OSF_FAIL.RS = f ! INGRSP fails to process the response file.
OSF_ERROR.RS = e ! archive response status not equal to "OK"
OSF_CORRUPT.RS = z ! archive response is corrupt
! The following keywords specify the extension to be added to the response
! file extension.
RSP_FAIL = _FAIL ! When ARCRSP fails to process the response
RSP_ERROR = _ERROR ! When the response's STATUS value is not OK.
RSP_CORRUPT = _CORRUPT ! When the response is corrupted.
! Missing keywords etc.
RSP_FDUPLICATE = _FDUP ! When the duplicate response has been
! processed with fail status.
RSP_CDUPLICATE = _CDUP ! When the duplicated response has been
! successfully processed previously.
! Archive class and OSF map to be used.
ARCHIVE_MAP = OPUS_DEFINITIONS_DIR:archclass_osf.map
!----------------------------------------------------------------------------
! To specify an archive group add two resources, the .ARSP_DIR directory and
! .LOG_DIR directory. Entries are only necessary if you want to use values
! other than the defaults listed here:
!
! FOR SM 97 ASN data, the following addition keywords must be specified.
! .OMS_DIR = The directory where OPUS will be the table for OMS.
!
AST.ARSP_DIR = AST_ARSP_DIR
AST.LOG_DIR = AST_LOG_DIR
DEFAULT.ARSP_DIR = AST_ARSP_DIR
DEFAULT.LOG_DIR = AST_LOG_DIR
! forces values from path to be used
ENV.OPUS_DB = OPUS_DB
ENV.DSQUERY = DSQUERY
ASTRSP Process accessed database relations
ASTRSP accessed Relations
ASTRSP Process database querries
ASTRSP Process Querries
ASTCLN Process details
- ASTCLN Process Description
- This process resides in the (CL) stage of the Astrometry Pipeline.
It is an 'ast' class OSF triggered process and its purpose is to delete the files that were used in producing
astrometry output products; i.e., the fpppssoom.ark, fpppssoom.akx, fpppssoom.agx, fpppssoom.dgx, and
fpppssoom.trx files and the astrometry products themselves; i.e., fpppssoom_a1f.fits, fpppssoom_a2f.fits,
fpppssoom_a3f.fits, fpppssoom_dmf.fits, and fpppssoom_trl.fits.
ASTCLN finds the files it needs to delete by doing the following:
- find all the resource files in the current path that have their "CLASS" mnemonic set to the same class
as the OSF that triggerred ASTCLN; i.e., the 'ast' class.
- get the directories where the files to be deleted reside by getting the values of the 'OUTPATH' mnemonic
from the resource files found in step 1
- get the names of the files to be deleted by getting the "DEFAULT_FILTER" mnemonic value from the ASTCLN
resource file which gets the file rootname from the OSF that triggerred ASTCLN
- delete files that reside in all directories found in step 2 that match the file name found in step 3
- ASTCLN Process Triggers
Input Trigger:
ASTCLN is triggerred by the ASTRSP Process
AP RA AK FA RQ RS CL FN DL Class
-- -- -- -- -- -- -- -- -- -----
n c c c c c w _ _ ast
Output Trigger:
ASTCLN triggers the ASTFIN Process
AP RA AK FA RQ RS CL FN DL Class
-- -- -- -- -- -- -- -- -- -----
n c c c c c c w _ ast
ASTCLN Process I/O - Input to and Output from the ASTCLN process is as follows:
INPUT:
AST_RAW_DIR: - files to be deleted
fpppssoom.akx - astrometry observation ascii keyword file from telemetry
fpppssoom.agx - astrometry observation ascii keyword file from database
fpppssoom.dgx - astrometry observation ascii support schedule file from database
fpppssoom.arx - astrometry observation telemetry group data file from telemetry
AST_OUTPUT_DIR: - files to be deleted
fpppssoom_a1f.fits - astrometry observation FITS file Science product for FGS 1
fpppssoom_a2f.fits - astrometry observation FITS file Science product for FGS 2
fpppssoom_a3f.fits - astrometry observation FITS file Science product for FGS 3
fpppssoom_dmf.fits - astrometry observation FITS file Support Schedule product
fpppssoom.trx - astrometry processing ascii trailer file before being converted to FITS
fpppssoom_trl.fits - astrometry processing trailer file after being converted to FITS
OUTPUT:
N/A
ASTCLN Process Modes - The ASTCLN process invokes an OPUS pipeline generic executable to perform
its work; i.e., the 'cleandata' executable. This executable can be executed in either an interactive or
pipeline mode. Interactive mode however is typically used only for testing. The ASTCLN Process itself should
be executed in only a pipeline mode.
Interactive Mode:
Again, the interactive mode is probably only useful for testing. It does not
require the existence of an OSF but the OSF status values must be supplied
by the user on the command line:
cleandata -p path.path -r process -d rootname -i dataid -o status
where:
process is a resource file that contains the optional keywords:
CLASS_GROUPING.nn where nn starts at 01. If CLASS_GROUPING is absent, then
the process CLASS keyword is used. To use all class, set CLASS_GROUPING.01
to '*'.The status should have a c in every stage that has an OUTPATH that
is to be tested.
Pipeline Mode:
cleandata -p opus_definitions_dir:your.path -r astcln (in task line of resource file)
where:
-p = denotes path file specification follows
-r = denotes resource file for the ASTCLN Process
opus_definitions_dir:your.path = path file to use
ASTCLN Process Resource File
!--------------------------------------------------------------------
!
! astcln.resource
!
!
! This file is used to construct the trigger, error, and success
! status fields in the observation status file.
!
!
!--------------------------------------------------------------------
! REVISION HISTORY
!--------------------------------------------------------------------
! MOD PR
! LEVEL DATE NUMBER User Description
! ----- -------- ------ ------ -------------------------------------
! 000 10/24/01 44684 Goldst Created initial version
! 001 01/15/02 45016 Goldst Corrected Trigger
! 002 01/25/02 45016 Goldst Removed OK_TO_UPDATE_DATABASE
! 003 03/11/02 45016 Goldst Added OSF_TRIGGER1.DATA_ID
! 004 03/13/02 45016 Goldst Changed COMPLETE to SUCCESS, FAIL1 to ERROR
! 005 08/08/02 43963 jschultz added DEFAULT_FILTER mnemonic
!--------------------------------------------------------------------
PROCESS_NAME = astcln
TASK = <cleandata -p $PATH_FILE -r astcln>
DESCRIPTION = 'Clean-up astrometry telemetry data after archiving'
SYSTEM = AST
CLASS = ast
DISPLAY_ORDER = 1
INTERNAL_POLLING_PROCESS = TRUE
OSF_RANK = 1 ! First Trigger
OSF_TRIGGER1.CL = w ! Trigger
OSF_TRIGGER1.DATA_ID = ast ! Trigger class ID
OSF_PROCESSING.CL = p ! Processing
OSF_SUCCESS.CL = c ! OSF completion
OSF_SUCCESS.FN = w ! Sets FN process trigger
OSF_ERROR.CL = f ! Failure setting
POLLING_TIME = 10 ! Wait (seconds) before polling for next
DEFAULT_FILTER = <OSF_DATASET>*.*
! forces values from path to be used
ASTFIN Process details
- ASTFIN Process Description
- This process resides in the (FN) stage of the Astrometry Pipeline.
It is an 'ast' class OSF triggered process and its purpose is to determine if the astrometry telemetry file
(tyyyyddhhmm.ast_done) currently being processed is needed to process any other astrometry observations.
If the telemetry file is no longer needed, its 'eng' class OSF is set to complete in the (RA) stage to indicate
that the telemetry file is no longer needed to be held in reserve and can be deleted by the DL_AST process in
the (DL) stage of the pipeline. Also, the 'ast' class OSF for the observation being processed is set to complete
in the (FN) and (DL) stages to indicate that the OSF is no longer needed and can be deleted by the ASTDEL process
in the (DL) stage of the pipeline. In addition, the product_status relation is
updated for the observation being processed to indicate that the observation has been completely processed.
- ASTFIN Process Triggers
Input Trigger:
ASTFIN is triggerred by the ASTCLN Process
AP RA AK FA RQ RS CL FN DL Class
-- -- -- -- -- -- -- -- -- -----
n c c c c c c w _ ast
Output Triggers:
ASTFIN triggers the DL_AST Process
AP RA AK FA RQ RS CL FN DL Class
-- -- -- -- -- -- -- -- -- -----
c c n n n n n n w eng
ASTFIN triggers the ASTDEL Process
AP RA AK FA RQ RS CL FN DL Class
-- -- -- -- -- -- -- -- -- -----
n c c c c c c c c ast
ASTFIN Process I/O - Input to and Output from the ASTFIN process is as follows:
INPUT:
N/A
OUTPUT:
N/A
ASTFIN Process Modes - The ASTFIN process invokes a script to perform its work. The script that
is invoked is indicated in the 'COMMAND' mnemonic in the ASTFIN resource file. The script can be executed in
either an interactive or pipeline mode. However, the interactive mode is used only for testing as it cannot
update OSFs. The ASTFIN Process itself should be executed in only a pipeline mode.
Interactive Mode:
eng_finish.pl <product_rootname> -t <data_id>
where:
product_rootname is gyyyydddhhmmss for GSA class or
ipppssoot for FGS and AST class. In interactive mode the
product_status relation is updated and tested, and the test
results are logged but no OSFs are updated.
Pipeline Mode:
In the pipeline the resource file must set the following ENV variables: OSF_DATASET,
OSF_DATA_ID, ENG_DATA_ID, ENG_STEP, ENG_COMPLETE, and TELEM_PATH.
xpoll -p opus_definitions_dir:your.path -r astfin (in task line of resource file)
where: xpoll = External Poller Process used to invoke a script to do file polling
-p = denotes path file specification follows
-r = denotes resource file for the ASTFIN Process
opus_definitions_dir:your.path = path file to use
ASTFIN Process Resource File
!--------------------------------------------------------------------
!
! astfin.resource
!
! External poller using xpoll
!
! This file is used to construct the trigger, error, and success
! status fields in the observation status file.
!
!
!--------------------------------------------------------------------
! REVISION HISTORY
!--------------------------------------------------------------------
! MOD PR
! LEVEL DATE NUMBER User Description
! ----- -------- ------ ------ -------------------------------------
! 000 10/24/01 44684 Goldst Created initial version
! 001 01/15/02 45016 Goldst Corrected Trigger
! 002 01/30/02 45016 Goldst Corrected OK_TO_UPDATE_DATABASE
! 003 03/11/02 45016 Goldst Added OSF_TRIGGER1.DATA_ID
! 004 04/18/02 45016.1 Goldst Change ENV.DATA_ID to ENV.ENG_DATA_ID
! 005 07/30/02 46276 J.Baum Add ENV.TELEM_PATH
!--------------------------------------------------------------------
PROCESS_NAME = astfin
TASK = <xpoll -p $PATH_FILE -r astfin>
DESCRIPTION = 'Mark fgs data for deletion or keep telemetry'
COMMAND = eng_finish.pl
SYSTEM = AST
CLASS = ast
OSF_RANK = 1 ! First Trigger
OSF_TRIGGER1.FN = w ! Trigger
OSF_TRIGGER1.DATA_ID = ast ! Trigger class ID
OSF_PROCESSING.FN = p !
OSF_SUCCESS.FN = c !
OSF_SUCCESS.DL = c ! Trigger for dl_ast
OSF_FAILURE.FN = f !
XPOLL_ERROR.FN = x ! Undefined exit status
POLLING_TIME = 10 ! Wait (seconds) before polling for next
XPOLL_STATE.01 = OSF_SUCCESS
XPOLL_STATE.02 = OSF_FAILURE
! forces values from path to be used
ENV.OPUS_DB = OPUS_DB
ENV.DSQUERY = DSQUERY
ENV.OK_TO_UPDATE_DATABASE = OK_TO_UPDATE_DATABASE
! eng class
ENV.ENG_DATA_ID = eng ! Sets eng class OSF to complete
ENV.ENG_STEP = RA !
ENV.ENG_COMPLETE = c !
ENV.TELEM_PATH = AST_TELEM_DIR ! directory for eng data
ASTFIN Process accessed database relations
ASTFIN accessed Relations
ASTFIN Process database querries
ASTFIN Process Querries
DL_AST Process details
- DL_AST Process Description
- This process is the first of two processes that reside in the
(DL) stage of the Astrometry Pipeline. It is an 'eng' class OSF triggered process and its purpose is to
delete astrometry telemetry files (tyyyydddhhmm.ast_done) that are no longer needed for astrometry
processing.
- DL_AST Process Triggers
DL_AST is indirectly triggerred by the ASTFIN Process by
ASTFIN setting the 'eng' class OSF to 'c' in the RA stage
AP RA AK FA RQ RS CL FN DL Class
-- -- -- -- -- -- -- -- -- -----
c c n n n n n n w eng
DL_AST triggers the ASTDEL Process
AP RA AK FA RQ RS CL FN DL Class
-- -- -- -- -- -- -- -- -- -----
c c n n n n n n c eng
DL_AST Process I/O - Input to and Output from the DL_AST process is as follows:
INPUT:
N/A
OUTPUT:
N/A
DL_AST Process Modes - The DL_AST process invokes a script to perform its work. The script that
is invoked is indicated in the 'COMMAND' mnemonic in the DL_AST resource file. The script can be executed in
only a pipeline mode.
Pipeline Mode:
xpoll -p opus_definitions_dir:your.path -r dl_ast (in task line of resource file)
where: xpoll = External Poller Process used to invoke a script to do file polling
-p = denotes path file specification follows
-r = denotes resource file for the DL_AST Process
opus_definitions_dir:your.path = path file to use
DL_AST Process Resource File
!--------------------------------------------------------------------
!
! dl_ast.resource
!
! External poller using xpoll
!
! This file is used to construct the trigger, error, and success
! status fields in the observation status file.
!
!
!--------------------------------------------------------------------
! REVISION HISTORY
!--------------------------------------------------------------------
! MOD PR
! LEVEL DATE NUMBER User Description
! ----- -------- ------ ------ -------------------------------------
! 000 10/24/01 44684 Goldst Created initial version
! 001 01/15/02 45016 Goldst Corrected Trigger
! 002 02/14/02 45016 Goldst Add DL trigger, remove unneeded SUCCESS
! 003 03/06/02 45016 Goldst Change XPOLL states and ENV.
! 004 03/11/02 45016 Goldst Added OSF_TRIGGER1.DATA_ID
!--------------------------------------------------------------------
PROCESS_NAME = dl_ast
TASK = <xpoll -p $PATH_FILE -r dl_ast>
DESCRIPTION = 'Deletes telemetry files'
COMMAND = eng_delete.csh
SYSTEM = AST
CLASS = eng
OSF_RANK = 1 ! First Trigger
OSF_TRIGGER1.RA = c ! Trigger (rahold has completed)
OSF_TRIGGER1.DATA_ID = eng ! Trigger class ID
OSF_TRIGGER1.DL = w ! Trigger
OSF_PROCESSING.DL = p ! Processing
OSF_SUCCESS.DL = c ! Completion
OSF_FAILURE.DL = f ! Failure setting
XPOLL_ERROR.DL = x ! Undefined exit status
ENV.INPATH = AST_TELEM_DIR !
ENV.EXTENSION = .ast_done !
POLLING_TIME = 10 ! Wait (seconds) before polling for next
XPOLL_STATE.00 = OSF_SUCCESS
XPOLL_STATE.01 = OSF_FAILURE
! forces values from path to be used
ASTDEL Process details
- ASTDEL Process Description
- This is the second of the two processes which reside in the
(DL) stage of the Astrometry Pipeline. It is an OSF triggered process and its purpose is to delete 'eng'
and 'ast' class OSFs from the pipeline after their associated astrometry processing has completed. ASTDEL
is triggerred by a 'c' in the (DL) stage of an OSF. When ASTDEL is triggerred, its looks in its resource
file to determine which OSFs to delete. The following resource file mnemonics are used in making the
determination:
OSF_TRIGGER1.DL = c - value of (DL) stage that triggers ASTDEL
OSF_TRIGGER1.DATA_ID = eng - class of OSF to delete
OSF_TRIGGER2.DL = c - value of (DL) stage that triggers ASTDEL
OSF_TRIGGER2.DATA_ID = ast - class of OSF to delete
ASTDEL Process Triggers
ASTDEL is triggerred by the DL_AST Process for 'eng' class OSFs
AP RA AK FA RQ RS CL FN DL Class
-- -- -- -- -- -- -- -- -- -----
c c n n n n n n c eng
ASTDEL is triggerred by the ASTFIN Process for 'ast' class OSFs
AP RA AK FA RQ RS CL FN DL Class
-- -- -- -- -- -- -- -- -- -----
n c c c c c c c c ast
ASTDEL Process I/O - Input to and Output from the ASTDEL process is as follows:
INPUT:
N/A
OUTPUT:
N/A
ASTDEL Process Modes - The ASTDEL process invokes an OPUS pipeline generic executable to perform
its work; i.e., the 'osfdelete' executable. This executable can only be executed in a pipeline mode.
Pipeline Mode:
osfdelete -p opus_definitions_dir:your.path -r astdel (in task line of resource file)
where:
-p = denotes path file specification follows
-r = denotes resource file for the ASTDEL Process
opus_definitions_dir:your.path = path file to use
ASTDEL Process Resource File
!--------------------------------------------------------------------
!
! astdel.resource
!
!
! This file is used to construct the trigger, error, and success
! status fields in the observation status file.
!
!
!--------------------------------------------------------------------
! REVISION HISTORY
!--------------------------------------------------------------------
! MOD PR
! LEVEL DATE NUMBER User Description
! ----- -------- ------ ------ -------------------------------------
! 000 10/24/01 44684 Goldst Created initial version
! 001 01/15/02 45016 Goldst Corrected Trigger
! 002 03/11/02 45016 Goldst Added OSF_TRIGGER1.DATA_ID
! 003 07/23/02 43963 jschultz added trigger for ast class osf's
!--------------------------------------------------------------------
PROCESS_NAME = astdel
TASK = <osfdelete -p $PATH_FILE -r astdel>
DESCRIPTION = 'Deletes OSFs in the class that triggered the process'
SYSTEM = AST
CLASS = eng
DISPLAY_ORDER = 1
OSF_RANK = 1 ! First Trigger
OSF_TRIGGER1.DL = c ! Trigger
OSF_TRIGGER1.DATA_ID = eng ! Trigger class ID
OSF_TRIGGER2.DL = c ! Trigger
OSF_TRIGGER2.DATA_ID = ast ! Trigger class ID
OSF_PROCESSING.DL = p ! Processing
OSF_ERROR.DL = e ! Letter to be used when there is an error
POLLING_TIME = 5 ! Wait (seconds) before polling for next
! forces values from path to be used
Astrometry Pipeline Database usage
Database Relations Accessed
RAHOLD Process accessed relations
RAWAST Process accessed relations
ASTKWD Process accessed relations
SS_AST Process accessed relations
FGSAST Process accessed relations
ASTREQ Process accessed relations
ASTRSP Process accessed relations
ASTFIN Process accessed relations
Database Querries Performed
Database Relations accessed
product_eng_map Relation
This relation is used to identify the engineering telemetry files that may be required 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 astrometry Pipeline RAHOLD and ASTFIN processes use this relation.
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. "
product_status Relation
This relation is used to identify the completion status of all FGS, AST, and GSA products in order to
control telemetry file cleanup. The records are created with N for complete_flag. This relation is
designed to be joined to product_eng_map to determined when all the products, identified in
product_eng_map by product_type and product_rootname, have been marked completed.
For reprocessing, all the products to be reprocessed should have the complete_flag interactively reset
to N. For replans, any records for dataset no longer present in qolink. must be deleted. Only one record
for each product and type is allowed. "
The astrometry Pipeline RAHOLD and ASTFIN processes use this relation.
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
complete_flag C1 (Y/N) set to Y by cleanup software indicating this dataset has been
processed and no longer prevents cleanup of telemetry files
qolink_sms Relation
This relation is used to provide DADS and OPUS with the SMS_ID for any observation in
the support schedule. It can be used to list all observations and association
products for a particular SMS_ID. It contains a status field to identify observation
or product archive success or unavailability.
The astrometry Pipeline RAWAST and ASTRSP processes use this relation.
Field name type/size description
---------- --------- -----------
program_id C3 When a proposal is accepted into the PMDB by SPSS it must
be assigned a unique 3 character base 36 program identifier.
Is is used for identification of proposals by spacecraft
and OPUS software. It is also used in the OPUS and DADS
rootname for all archived science data files.
obset_id C2 An observation set is a collection of one or more alignments
that are grouped together based on FGS pointing requirements.
That is, if multiple alignments can all be executed using the
same guide star pair, they are grouped into the same observation set.
ob_number C3 Observations are numbered sequentially throughout an observation set.
An ob_number is _NOT_ the same as an obset_ID. The third character is
only used for association products
sms_id C9 The C&C list is a major data structure within SPSS that
contains information on 'candidates' and the 'calendar'.
The candidate data, often referred to as the candidate pool, are
scheduling units and their associated observation set, alignment, and
target data. The calendar is a timeline of activities that are laid
down by the SPSS scheduling utilities. When a C&C List is saved in
SPSS it receives an identifier (sms_id)
status C1 The condition or availability for archiving is indicated
by a status code with the following definition:
U - Unexecuted - the initial condition for exposures or
products that will be archived independently of
associations
M - Member - the initial condition for exposures that
are only archived within an association product
N - Not available - set by operations to indicate
exposures or products that cannot be generated
E - Executed and archived successfully
inst C1 One character identifier for the instrument used for the science
observation. The relation between this value and the names in
qobservation.si_id are:
1 = 1 2 = 2 3 = 3 J = ACS N = NIC O = STIS
U = WFII V = HSP W = WFPC X = FOC Y = FOS Z = HRS
tag C1 Flags observation as a target acquisition.
Y - The qobservation.target_acqmode field is 01 or 02.
This observation is a target acquisition
ocx_expected C1 Flags this observation as real time (mode 1) target acq.
Y - The qobservation.target_acqmode field is 01.
This observation is a mode 1 (real time) target acquisition
image
pdq_created C1 indicates if the OPUS pipeline has created a PDQ file for this
observation. The value of this column is an alphanumeric code that
indicates the status, real or inferred, of the PDQ file for the
observation
oms_archived C1 indicates if the OMS pipeline has successfully achived an
observation log for this observation.
X - The data assessment software has validated existence of the
OMS observation log for this observation in DADS
rti_checked C1 indicates if OPUS staff has checked for existence of real time
information for this observation.
X - OPUS staff has run RTI_CHECK software for this observation
ocx_appended C1 indicates if an OCX file has been appended to the PDQ file.
The value of this field is an alphanumeric code that indicates
that the data assessment software has located an OCX file (and
the type of file) for this observation and has appended it to
the PDQ file
assessed C1 indictaes if this observation has been assessed for procedural
quality. The value of this column is an alphanumeric code that
summarizes the essentials of the assessment process."
dq_archived C1 indicates the archive status of the procedural data quality
file(s). The value of this column is an alphanumeric code that
indicates the archive status of the PDQ (and optionally
the OCX) file of this observation
start_time C17 This field (format: yyyy.ddd:hh:mm:ss) contains either the
planned or actual start time of the observation. The time_type
field indicates the source of the time.
end_time C17 This field (format: yyyy.ddd:hh:mm:ss) contains either the
planned or actual end time of the observation. The time_type
field indicates the source of the time.
time_type C1 (P/A) When this field is P for planned, start_time and end_time
are generated from SPSS planning data and the accuracy is
questionable. When this field is A for actual, start_time and
end_time have been updated by the OPUS pipeline using science
data.
msc_ast_obset Relation
This relation is used to contain the obset level data for astrometry. The event time is taken from the time found in
the MSC file but there is no msc_events record for this event. The fields are used to set
astrometry keywords.
The astrometry Pipeline RAWAST and ASTKWD processes use
this relation.
Field name type/size description
---------- --------- -----------
event_time C20 the time within a hundreth of a second for each obset
(YYYY.DDD.HH.MM.SS.CC)
program_id C3 When a proposal is accepted into the PMDB by SPSS it must
be assigned a unique 3 character base 36 program identifier.
Is is used for identification of proposals by spacecraft
and OPUS software. It is also used in the OPUS and DADS
rootname for all archived science data files.
obset_id C2 An observation set is a collection of one or more alignments
that are grouped together based on FGS pointing requirements.
That is, if multiple alignments can all be executed using the
same guide star pair, they are grouped into the same observation set.
fgs C1 FGS number, 1 2 or 3, or 0 for all
param_name C8 Keyword name or keyword related parameter name
param_value C20 Formatted value of parameter
eng_trigger Relation
This relation is used to name the trigger codes so that reports can use a name rather than a
number and to provide standardized names for constants used in header files for software
processing GS acquisition telemetry. These triggers are also used in astrometry processing.
The astrometry Pipeline RAWAST process uses this relation.
Field name type/size description
---------- --------- -----------
eng_trigger I4 A numeric code indicating the processing to be performed when
a change in telemetry value has been detected. A zero value is
not a trigger but that entry is used to indicated that the
telemetry value should be saved
eng_trigger_name C30 A name for a trigger that implies the purpose of the
processing of the telemetry item
eng_telem_name Relation
This relation is used to identify the engineering telemetry items in engineering files by a name
that is descriptive. The name has a four character prefix that indicates the shuttle mnemonic
that corresponds to the telemetry definition. The mnemonic may be assigned to more than one
CCS telemetry item because of the use in different telemetry formats. In general when two
telemetry items have the same meaning and raw values, the lower numerical value is used.
The astrometry Pipeline RAWAST process uses this relation.
Field name type/size description
---------- --------- -----------
eng_number I4 A small positive value used only in FGS or AST eng files
telem_name C30 A name having the short_mnemonic as a prefix but including a
description useful for validation
eng_telem_use Relation
This relation is used to identify the telemetry used to generate various products, and to indicate
trigger codes to be used when a changed value has been detected. A trigger code of zero indicates
that the latest value must be saved but no immediate processing is required. If there is no entry
in this table for a particular class then that telemetry item should be ignored. The names of the
telemetry items are found in the eng_telem_name table. The names of the trigger codes are found
in the eng_trigger table.
The astrometry Pipeline RAWAST process uses this relation.
Field name type/size description
---------- --------- -----------
product_type C3 FGS for jitter, AST for astrometry, GSA for GS acqusition
data, or OTM for STIS temperatures
eng_number I4 A small positive value used only in FGS or AST engineering
telemetry files
eng_trigger I4 A numeric code indicating the processing to be performed when
a change in telemetry value has been detected. A zero value is
not a trigger but that entry is used to indicated that the
telemetry value should be saved
ast_jitter_kw Relation
This relation is used to provide data calculted by the EDPS FGS Pipeline JITTER process to the AST
pipeline. The data is in the form of named keyword values. For flexibility, this table allows an
arbitrary number of keywords to be accessed by the programmatic IDs of the astrometry dataset.
The astrometry Pipeline ASTKWD process uses this relation.
Field name type/size description
---------- --------- -----------
program_id C3 When a proposal is accepted into the PMDB by SPSS it must
be assigned a unique 3 character base 36 program identifier.
Is is used for identification of proposals by spacecraft
and OPUS software. It is also used in the OPUS and DADS
rootname for all archived science data files.
obset_id C2 An observation set is a collection of one or more alignments
that are grouped together based on FGS pointing requirements.
That is, if multiple alignments can all be executed using the
same guide star pair, they are grouped into the same observation set.
ob_number C3 Observations are numbered sequentially throughout an observation set.
An ob_number is _NOT_ the same as an obset_ID. The third character is
only used for association products
keyword_name C8 The name of the keyword which has the keyword_value
keyword_value C68 The value of the keyword_name. The longest string allowed by
FITS is 68 characters. Most keywords have values that are
less than 20 characters
dataset_link Relation
This relation is used to link the dataset rootname to programmatic ids with keys to facilitate
joins to other relations.
The astrometry Pipeline ASTKWD process uses this relation.
Field name type/size description
---------- --------- -----------
dataset_rootname C9 IPPPSSOOT for jitter or astrometry datasets
dataset_type C3 Either FGS or AST, for FGS obslogs or astrometry, respectively
program_id C3 When a proposal is accepted into the PMDB by SPSS it must
be assigned a unique 3 character base 36 program identifier.
Is is used for identification of proposals by spacecraft
and OPUS software. It is also used in the OPUS and DADS
rootname for all archived science data files.
obset_id C2 An observation set is a collection of one or more alignments
that are grouped together based on FGS pointing requirements.
That is, if multiple alignments can all be executed using the
same guide star pair, they are grouped into the same observation set.
ob_number C3 Observations are numbered sequentially throughout an observation set.
An ob_number is _NOT_ the same as an obset_ID. The third character is
only used for association products
qobservation Relation
This relation contains Support Schedule observation records from Science Mission Schedules. The
relation is an SPSS maintained relation with a lot of fields. Since only the target_id is needed
for astrometry processing; only that file will be described.
The astrometry Pipeline ASTKWD and SS_AST processes uses
this relation.
Field name type/size description
---------- --------- -----------
target_id C15 id of target for astrometry observation
msc_ast_observe Relation
This relation is used to contain the observation data for astrometry. The event time is taken
from the time found in the MSC file but there is no msc_events record for this event. The fields
are used to set astrometry keywords.
The astrometry Pipeline ASTKWD process uses this relation.
Field name type/size description
---------- --------- -----------
event_time C20 YYYY.DDD.HH.MM.SS.CC the time within a hundreth of a second
for each obset
program_id C3 When a proposal is accepted into the PMDB by SPSS it must
be assigned a unique 3 character base 36 program identifier.
Is is used for identification of proposals by spacecraft
and OPUS software. It is also used in the OPUS and DADS
rootname for all archived science data files.
obset_id C2 An observation set is a collection of one or more alignments
that are grouped together based on FGS pointing requirements.
That is, if multiple alignments can all be executed using the
same guide star pair, they are grouped into the same observation set.
ob_number C3 Observations are numbered sequentially throughout an observation set.
An ob_number is _NOT_ the same as an obset_ID. The third character is
only used for association products
fgs C1 FGS number, 1 2 or 3, or 0 for all
param_name C8 Keyword name or keyword related parameter name
param_value C20 Formatted value of parameter
aperture_def Relation
This relation defines the size, shape, and location of the science instrument apertures.
Three fundamental cartesian coordinate systems are used. The first of these systems is
the V1-V2-V3 system. It is the three dimensional 'vehicle' coordinate system. The V2-V3
plane defines the 'aperture' plane. The other two fundamental coordinate systems are defined
in the aperture plane relative to the V1,V2,V3 frame.
The Science Instrument Coordinate System (SICS) is actually a set of coordinate
systems; one or more for each science instrument. Coordinates are expressed
in arcseconds. Generally there is one SICS defined for each aperture.
The Science Aperture Coordinate System (SIAS) is similar to the SICS except the
coordinates are expressed in units appropriate for the instrument (i.e. pixels).
SIAS is not used in SPSS.
This relation does NOT defines the conversion factors needed to transform
coordinates expressed in one coordinate system to another. See the SPSS
Algorithms document (SE-06-02 Appendix B) for a complete discussion of these
transformations and see relation sics_sias_coef for the conversion coefficients.
The astrometry Pipeline SS_AST process uses this relation.
Field name type/size description
---------- --------- -----------
due to the large number of fields, they will not be specified here. The OPUS "sddl"
directory provides descriptions of this relation and all of its fields and can be
referenced if so desired.
kw_source Relation
This relation specifies the source of selected keywords. The source may be specified in three
ways, from the PDB (Project Database), from the PMDB (Proposal management Database), or as a
difference calculation.
In the first case (PDB) the source of the keyword will be the name of a mnemonic as
specified in the EUDL.DAT file of the PDB. The OPUS software will look up the location
of that mnemonic in the yurintab relation. If it is desired to convert the value of the
mnemonic to a string (discrete conversion) or to engineering units (linear or polynomial
conversion), then the second field (subsource) specifies the 8 character mnemonic of a
conversion. See the description of conv_discrete, conv_linear, and conv_polynomial.
In the second case (PMDB) the source field is the name of a database relation in the PMDB.
The subsource specifies the name of the field in that relation. Only relations which can
be joined with the relation qolink on the basis of program_id, obset_id and ob_number can
be used. There is a special case of deep relations like qesiparm. In this case there is
only a field for si_par_name and si_par_value, both of which are string fields. To obtain a
value from such a deep relation, specify the name of the parameter in a form (usually uppercase)
that will match the value in the database.
Finally, for keywords which are simply differences between two already dredged keywords, only the
names of the subtrahend and minuend mnemonics are required for the source and subsource fields.
The astrometry Pipeline SS_AST process uses this relation.
Field name type/size description
---------- --------- -----------
instrument C3 short instrument name
keyword C8 Name of the keyword
sourcetype C8 which kind of source applies (PDB, PMDB, DELTA)
source C30 source name: mnemonic, relation, subtrahend
subsource C30 specify: conversion mnemonic, fieldname or parameter name,
minuend mnemonic
cgg1_keyword Relation
This relation provides keywords to be written to FITS file products during various pipeline
'Generic Conversion' processing.
The astrometry Pipeline SS_AST and FGSAST
processes use this relation.
Field name type/size description
---------- --------- -----------
instrument C3 instrument to which the keyword is associated:
hsp, wfc, foc, fos, hrs, wfII, fgs, acs, nic, sti
file_type C3 generic file type. values are:
shp (standard header packet),
udl (unique data log);
dsk (digital sky), dst (digital star),
ask (analog sky), ast (analog star),
asd (area scan/digital), asa (area scan/analog);
ext (extracted data), sci (science data);
shl (science header line), stl (science trailer line);
img (image)
order_index I4 an index defining the keyword order in the relation;
it is used to order the appearance of keywords in the header
file to which it will be written
fixed_index I4 this item should be thought of as a map of a fixed index
for a keyword into a value in the sequence 1,2,...,n. the
fixed index is used to indicate a particular keyword
keyword_str C8 keyword character string
keyword_typ C3 data type of the keyword value
keyword_val C20 keyword value
comment_str C72 comment character string
cnv_flag C1 flag stating whether to automatically convert keyword
optional C1 indicates whether this keyword is an optional one. If an
optional keyword has a blank value (restricted to strings),
then that keyword will be omitted from the header
cgg4_order Relation
This relation provides information on the groupings and ordering of keywords to be written to the FITS file
produced by the FGSAST process.
Field name type/size description
---------- --------- -----------
instrument C3 instrument to which the keyword is associated:
hsp, wfc, foc, fos, hrs, wfII, fgs, acs, nic, sti
header_type C36 The name of the FITS header. eg: NIC_SPT_PRIMARY
ftype_order I2 The order in which to put the following section
cgg1_instr C3 The cgg1_keyword relation instrument name. This
can be the same as 'instrument' above, or another
name such as SSY or GEN."
cgg1_ftype C3 The cgg1_keyword relation 'file_type' specification
for this section of keywords
si_aperture Relation
This relation provides data values to be used in computing the aperture position and orientation
for EDPS jitter files or OPUS target acquistion software, where the use-date refers to the start
time of the first SMS which used these values.
The astrometry Pipeline SS_AST process uses this relation.
Field name type/size description
---------- --------- -----------
si_aper_id C10 si aperture identifier: si_name + si_aperture the relation is
indexed by the si identifier
use_date C17 usage date (yyyy.ddd:hh:mm:ss) at SMS start, before which the
data for this aperture must not be used
parity I2 +1/-1... parity value used in the transformation from the sics
to the v2v3 syste
v2_of_ref R8 v2 coordinate of aperture reference point in arc seconds
v3_of_ref R8 v3 coordinate of aperture reference point in arc seconds
pixel_incr R8 pixel increment in arc seconds
line_incr R8 line increment in arc seconds
ang_inc_pix R8 angle, in degrees, from v3 to the line of increasing pixels,
positive counterclockwise viewed along positive v1 axis
ang_inc_line R8 angle, in degrees, from v3 to the line of increasing lines,
positive counterclockwise viewed along positive v1 axis
sics_sias_coeff Relation
This relation defines the coefficients that are used to transform data from between the Science
Instrument Coordinate System (SICS) and the Science Aperture Coordinate System (SIAS). The
command that primarily performs this transformation is PMDB/UPDATE, as transformations between
the V1-V2-V3, SICS, and SIAS are commonly required.
The astrometry Pipeline SS_AST process uses this relation.
Field name type/size description
---------- --------- -----------
coord_id C10 This field specifies the aperture coordinate system ID. It
is the ID of the aperture coordinate system used to specify
the location of the target within the aperture. It is the
aperture id concatenated with the aperture coordinate system
id. Defined in ST-ICD-26 part III appendix A. Field 1 of
the first aj record if assigned by IMTOOL.
valid_date C17 effective date (YYYY.DDD:HH:MM:SS) before which the data for
this aperture must not be used
record_index I2 This field is the index of the record for the aperture
coord. ID. The max. value is 21 because of the max. poly.
degree n (qaapol) is 5. These coeff. are subscripted jk
(j = 0 to n, k = 0 to j) for a 5th degree poly. jk are
ordered as: 00, 10, 11, 20, 21, 22, 30, 31, 32, 33, 40, 41,
42, 43, 44, 50, 51, 52, 53, 54, and 55. This id is 1 for
jk = 00, ... 21 for jk = 55. It is the record number of the
ak type record when assigned by IMTOOL
x_sias_sics R8 This field is the coefficient ajk for transforming the x
coordinate from SIAS to SICS. The value of jk is determined
by record_index. Field 1 of the ith ak record if assigned by
IMTOOL
y_sias_sics R8 This field is the coefficient bjk for transforming the y
coordinate from SIAS to SICS. The value of jk is determined
by record_index. Field 2 of the ith ak record if assigned by
IMTOOL
x_sics_sias R8 This field is the coefficient cjk for transforming the x
coordinate from SICS to SIAS. The value of jk is determined
by record_index. Field 3 of the ith ak record if assigned by
IMTOOL
y_sics_sias R8 This field is the coefficient djk for transforming the y
coordinate from SICS to SIAS. It is the value of jk is
determined by record_index. Field 4 of the ith ak record
if assigned by IMTOOL
qtmchebychev Relation
This relation contains piecewise chebychev polynomial approximations representing the ephemerides
of moving targets. The relation is an SPSS maintained relation with a lot of fields. This
relation is used by astrometry processing to get the position and velocity of the sun and moon
at the astrometry observation time.
The astrometry Pipeline FGSAST process uses this relation.
Field name type/size description
---------- --------- -----------
the numerous fileds of this relation will not be specified here. Links off of the SPSS web
page can be followed to obtain detailed information for this relation.
executed Relation
This relation provides a replacement for the "executed_flg" field in the "qobservation"
relation since "qobservation" is replicated from SPSS and can not be updated by EDPS.
Some additional fields are also supplied but only the "executed_flg" is updated by EDPS
software. The additional fields can be used to distinguish dumps from science observations.
The astrometry Pipeline FGSAST process updates the "executed_flg" field
in this relation.
Field name type/size description
---------- --------- -----------
program_id C3 When a proposal is accepted into the PMDB by SPSS it must
be assigned a unique 3 character base 36 program identifier.
This is done by the PMDB/ACCEPT_PROP command. This program
identifier is tagged as 'program_id' in most PMDB relations.
Is is used for identification of proposals by spacecraft
and OPUS software. It is also used in the OPUS and DADS
rootname for all archived science data files. Because of
flight design software, program_id must be three characters."
obset_id C2 An observation set is a collection of one or more
alignments that are grouped together based on FGS pointing
requirements. That is, if multiple alignments can all be
executed using the same guide star pair, they are grouped
into the same observation set.
An observation set is identified by a 2 character base 36
string. This field, typically called 'obset_id', will
often contribute to the index on relation together with a
proposal_id, version_num, and possibly other fields.
ob_number C2 For exposures, observations are numbered sequentially
throughout an observation set and are assigned by
SMS/Gen. The connection between ob_number and the
PMDB alignment and exposure ids is in the table qolink."
proposal_id C5 A proposal consists of many individual observations
submitted as a package by a proposer. When a proposal is
processed by the proposal entry system (RPS2),
it is assigned a proposal identifier. That identifier is
an integer that is converted into a 5 character base 36
string.
si_id C4 This is the identifier type for a Science Instrument (SI).
The SI list includes the following:
FOC - Faint Object Camera
FOS - Faint Object Spectrograph
WFPC - Wide Field Planetary Camera 1
WFII - Wide Field Planetary Camera 2
WF3 - Wide Field Camera 3
HRS - High Resloution Spectrograph
CSTR - COSTAR
1 - Fine Guidance Sensor 1
2 - Fine Guidance Sensor 2
3 - Fine Guidance Sensor 3
NIC - NICMOS
STIS - Space Telescope Infrared Spectrograph
ACS - Advanced Camera for Surveys
COS - Cosmic Origins Spectrometer"
control_id C5 This is information on how OPUS is supposed to
process the data. The data is stored in five bytes:
H/Y/N : Calibration data flag
F/P : Output product type (film/plot) - unused
2 bytes: Output format spec - unused
Y/N : Output product holding tank flag"
coord_id C10 This is the SI aperture and coordinate system
identifier; it specifies the aperture and
coordinate system of the instrument to be used for the
observation of the target. It is the aperture identifier
concatenated with the aperture coordinate system identifier.
They specify the default location of the target within
the aperture.
executed_flg C1 When the record is created this value is blank. When
the observation has been executed on board HST, OPUS
receives a science POD file or EDPS generates an
astrometry file from engineering data, and this field is
updated to the Type (ninth) character of the dataset
rootname.
qbastr_archv Relation
This relation provides information on archived Astrometry datasets.
The astrometry Pipeline FGSAST process inserts records into this
relation.
Field name type/size description
---------- --------- -----------
program_id C*3 A base 36 program id assigned to the proposal by pm
when a proposal has been accepted.
obset_id C*2 The observation set id. these are numbered sequentially
throughout the proposal but may appear in only one
scheduling unit.
ob_number C*2 The observation id. these are numbered sequentially
throughout the proposal but may appear in only one
scheduling unit.
astromy_file C*9 The name given to describe a group of files.
archdate C*20 The latest file date associated with the dataset.
window_start C*11 Corrected spacecraft time for first minor frame in the
file. (UTC rounded to the nearest second, in the format
YYDDDHHMMSS).
window_stop C*11 Corrected spacecraft time for last minor frame in the file.
(UTC rounded to the nearest second, in the format
YYDDDHHMMSS).
format_id C*2 Telemetry format ID.
perc_complet I*2 Percentage of expected minor frames for the time interval
that were actually received.
percent_bad I*2 Percent of minor frames received with bad quality to minor
frames received.
pdb_version C*8 PDB tape ID number.
environment C*8 AEDP environment tape name.
ast_success C*2 Success of failure of extracting the astrometry observation,
where: SS---success (5 total files)
FF---Failure
file_cnt I*2 Information set file count when it becomes available for
archiving.
schdunit C*23 Scheduling Unit name that was used to process the observation.
It is of the form YYDDDHHMMSS_YYDDDHHMMSS for the start and
stop times of the scheduling unit. When scheduling units
become obselete with the replacement of the OMS system by
the EDPS system, this field will have the value "N/A".
dads_archive Relation
This relation tracks requests made by applications to archive files and responses made by the on-line
dads archive system. Entries are retained in this table after processing is completed for historical
purposes.
The astrometry Pipeline ASTREQ and ASTRSP processes use
this relation.
Field name type/size description
---------- --------- -----------
dataset_name C23 The name given to describe a group of files
archclass C3 The classification used to archive the data
archdate C20 The latest file date associated with the dataset
reqdate C23 The date when the archive insertion request was generated
reqtype C4 either a TAPE or DISK archive insertion requests
response C10 Response status returned by DADS
disk_date C23 The optical disk date assigned by DADS
file_cnt I2 The file count as determined by DADS
path C10 The path from which the request is made
tape_date C20 The date when a tape is made
saveset C17 The saveset name
archv_tape C6 Tape label
qoarchives Relation
This relation holds records that have been inserted when the OPUS data partitioning processes
determine the name of the ipppssoots from the science POD files. Any pipeline process that
subsequently has trouble processing science data will update the trouble_flag and trbl_process
fields. In addition, OPUS/EDPS archive processes update a number of fields in this relation.
The astrometry Pipeline ASTREQ process uses this relation.
Field name type/size description
---------- --------- -----------
program_id C3 Unique 3 character base 36 program identifier for the proposal for
which this observation is a part. Used with the obset_id,
ob_number, and data_class fields to form the observation rootname,
which uniquely identifies an observation
obset_id C2 A collection of one or more alignments that are grouped together
based on FGS pointing requirements. That is, if multiple alignments
can all be executed using the same guide star pair, they are grouped
into the same observation set. Part of the OPUS rootname.
ob_number C2 Observations are numbered sequentially throughout an observation set
and are assigned by sms (base 36 number max. 1295 observations per
obset). Part of the OPUS rootname.
data_class C1 Type of data (R real-time, T tape-recorded, etc
obs_root C9 The ipppssoot, where
i = instrument code (N - NICMOS, O - STIS, U - WFPC2
V - HSP, W - WFPC1, X - FOC, Y - FOS, Z - HRS)
ppp = program_id
ss = obset_id
oo = ob_number
t = data_clas
proc_strt_tm C16 Time pipeline processing for this dataset. Format is
yyyydddHHMMSSsss
proc_stop_tm C16 Time pipeline processing completed for this dataset. Format is
yyyydddHHMMSSsss
data_eval I4 obsolete field??
flg_mismatch C1 archive flag for file count mismatches
geis_only C1 obsolete field??
calib_indic I2 obsolete field??
trouble_flag C1 Set to 'T' if observation sent to 'trouble'
trbl_process C6 Name of process that sent observation to 'trouble'
edsci_file C9 obsolete field??
edt_archdate C20 DADS ARCHDATE for EDT archive class. Format is yyyydddHHMMSSss
edt_fcnt I2 File count for EDT archive class
calib_file C9 obsolete field??
cal_archdate C20 DADS ARCHDATE for CAL archive class. Format is yyyydddHHMMSSsss
cal_fcnt I2 File count for CAL archive class
cdbs_data C15 obsolete field??
repro_flg C10 obselete field??
archive_files Relation
This relation is used to track a dataset's file extensions. The file extension are written to
this relation when the ARCHIVE_CLASS.TRACK_EXT is set to "Y" in a processes resource file.
The astrometry Pipeline ASTREQ process uses this relation.
Field name type/size description
---------- --------- -----------
dataset_name C23 The name given to describe a group of files
archclass C3 The classification used to archive the data
archdate C20 The latest file date associated with a dataset
file_ext C3 The files' extension
Database Querries Performed
RAHOLD Process Querries
- The RAHOLD process performs the following query on the product_eng_map relation
relation to determine if the specified telemetry file is needed to process any astrometry observations. If the
telemetry file is needed, it will be marked as being ready to be processed.
UPDATE product_eng_map
SET eng_ready = "Y"
WHERE eng_rootname="$eng_root"
AND product_type="$target_class"
The RAHOLD process performs the following query on the product_eng_map
and product_status relations to determine how many astrometry observations
that have not yet been processed need the specified telemetry file for processing:
SELECT COUNT(m.product_rootname)
FROM product_eng_map m, product_status s
WHERE m.eng_rootname="$eng_root"
AND m.product_type="$target_class"
AND m.product_rootname = s.product_rootname
AND m.product_type = s.product_type
ANDs.complete_flag = "N"
The RAHOLD process performs the following query on the product_eng_map
and product_status relations to determine if the specified astrometry
observation has all the astrometry telemetry files it needs to be processed and that the telemetry files are
ready to be processed.
SELECT m.product_rootname, s.complete_flag, MIN(m2.eng_ready)
FROM product_eng_map m, product_status s, product_eng_map m2
WHERE m.eng_rootname="$eng_root"
AND m.product_type="$target_class"
AND s.product_rootname = m.product_rootname
AND s.product_type = m.product_type
AND m2.product_type = s.product_type
AND m2.product_rootname = s.product_rootname
GROUP BY m.product_rootname, s.complete_flag
RAWAST Process Querries
- The RAWAST process performs the following query on the qolink_sms relation
relation to get the start and end times for the specified astrometry observation or to determine if
OPUS operations personnel had inserted a 'N' in the status field to indicate that the specified
astrometry observation is not processable due to a lack of telemetry; perhaps due to a safing:
SELECT start_time, end_time, status
FROM qolink_sms
WHERE program_id = _ipppssoot.substr(1,3)
AND obset_id = _ipppssoot.substr(4,2)
AND ob_number= _ipppssoot.substr(6,2)
The RAWAST process performs the following query on the msc_ast_obset relation
relation to get the id of the FGS that was used to do the astrometry for the observation:
SELECT param_value
FROM msc_ast_obset
WHERE program_id = _ipppssoot.substr(1,3)
AND obset_id = _ipppssoot.substr(4,2)
AND param_name= 'FGSID'
AND fgs = '0'
The RAWAST process performs the following query on the eng_trigger relation
relation to get the numeric trigger numbers and corresponding ascii trigger names to be used when
processing astrometry related telemetry data:
SELECT eng_trigger, eng_trigger_name
FROM eng_trigger
The RAWAST process performs the following query on the eng_telem_use
and eng_telem_name relations to link telemetry items with their
engineering numbers and their mnemonic names:
SELECT e1.eng_number, telem_name
FROM eng_telem_name e1, eng_telem_use e2
WHERE product_type= _source
AND e1.eng_number = e2.eng_number
The RAWAST process performs the following query on the eng_telem_use relation to
link telemetry items with their mnemonic names and triggers:
SELECT eng_number, eng_trigger
FROM eng_telem_use
WHERE product_type = product_type
ASTKWD Process Querries
- The ASTKWD process performs the following query on the ast_jitter_kw and
dataset_link relations to determine if keywords needed for astrometry
processing have been provided by the EDPS FGS pipeline:
SELECT COUNT(*)
FROM ast_jitter_kw a, dataset_link l
WHERE l.dataset_rootname="$uc_root"
AND l.dataset_type="AST"
AND a.program_id = l.program_id
AND a.obset_id = l.obset_id
AND a.ob_number = l.ob_number
The ASTKWD process performs the following query on the qobservation
and dataset_link relations to get the id of the target for the
specified astrometry observation:
SELECT target_id
FROM $SPSS_DB..qobservation o, dataset_link l
WHERE l.dataset_rootname = "$uc_root"
AND l.dataset_type="AST"
AND o.program_id = l.program_id
AND o.obset_id = l.obset_id
AND o.ob_number = l.ob_number
The ASTKWD process performs the following query on the msc_ast_obset
and dataset_link relations to get astrometry related keyword/value
pairs that have been gleaned from the mission schedule:
SELECT param_name, param_value
FROM msc_ast_obset a, dataset_link l
WHERE l.dataset_rootname = "$uc_root"
AND a.program_id = l.program_id
AND a.obset_id = l.obset_id
AND (a.fgs="0" or a.fgs="$frame")
The ASTKWD process performs the following query on the ast_jitter_kw
and dataset_link relations to get astrometry related keyword/value
pairs computed by the EDPS FGS Pipeline:
SELECT keyword_name, keyword_value
FROM ast_jitter_kw a, dataset_link l
WHERE l.dataset_rootname = "$uc_root"
AND a.program_id = l.program_id
AND a.obset_id = l.obset_id
AND a.ob_number = l.ob_number
The ASTKWD process performs the following query on the msc_ast_observe
and dataset_link relations to get astrometry related keyword/value
pairs that have been gleaned from the mission schedule:
SELECT param_name, param_value
FROM msc_ast_observe a, dataset_link l
WHERE l.dataset_rootname = "$uc_root"
AND a.program_id = l.program_id
AND a.obset_id = l.obset_id
AND a.ob_number = l.ob_number
AND (a.fgs="0" or a.fgs="$frame")
SS_AST Process Querries
- The SS_AST process uses generic code (SSKEY) common to a lot of OPUS/EDPS Pipelines. It performs
a multitude of queries on a multitude of relations. The specific queries it performs will not be documented
here. The purpose of each query performed by SS_AST is to obtain information that will appear in the astrometry
'.dgx' file and ultimately in the astrometry support schedule fits file (fpppssoom_dmf.fits).
FGSAST Process Querries
- The FGSAST process performs the following query on the cgg1_keyword
relation to get the keywords it is to output to its produced FITS files.
SELECT DISTINCT g1.keyword_str, g1.keyword_val, g1.keyword_typ, g1.comment_str, g1.optional
FROM cgg1_keyword g1
WHERE g1.instrument = instrument
AND g1.file_type !='AST' AND g1.file_type !='VFI'
AND g1.file_type !='WF2' AND g1.file_type !='WFI'
AND g1.file_type !='YFI' AND g1.file_type !='ZFI'
ORDER by g1.keyword_str
The FGSAST process performs the following query on the cgg1_keyword and
cgg4_order relations to get the groupings and ordering of the keywords it is to
output to its produced FITS files.
SELECT g1.keyword_str, g1.keyword_type, g1.keyword_val, g1.comment_str, g1.optional, g4.header_type,
g4.ftype_order, g1.order_index,
FROM cgg1_keyword g1, cgg4_order g4
WHERE g4.instrument = instrument
AND g1.instrument = g4.cgg1_instr
AND g1.file_type = g4.cgg1_ftype
ORDER by g4.header_type, g4.ftype_order, g1.order_index
The FGSAST process performs the following query on the qtmchebychev
relation to get the position and velocity of the sun and moon at the time of the desired astrometry
observation:
SELECT q.start_time, q.end_time, q.create_date, q.degree, q.xc_01 x01, q.yc_01 y01, q.zc_01 z01,
q.xc_02 x02, q.yc_02 y02, q.zc_02 z02, q.xc_03 x03, q.yc_03 y03, q.zc_03 z03,
q.xc_04 x04, q.yc_04 y04, q.zc_04 z04, q.xc_05 x05, q.yc_05 y05, q.zc_05 z05,
q.xc_06 x06, q.yc_06 y06, q.zc_06 z06, q.xc_07 x07, q.yc_07 y07, q.zc_07 z07,
q.xc_08 x08, q.yc_08 y08, q.zc_08 z08, q.xc_09 x09, q.yc_09 y09, q.zc_09 z09,
q.xc_10 x10, q.yc_10 y10, q.zc_10 z10, q.xc_11 x11, q.yc_11 y11, q.zc_11 z11,
q.xc_12 x12, q.yc_12 y12, q.zc_12 z12, q.xc_13 x13, q.yc_13 y13, q.zc_13 z13,
q.xc_14 x14, q.yc_14 y14, q.zc_14 z14, q.xc_15 x15, q.yc_15 y15, q.zc_15 z15,
q.xc_16 x16, q.yc_16 y16, q.zc_16 z16, q.xc_17 x17, q.yc_17 y17, q.zc_17 z17,
q.xc_18 x18, q.yc_18 y18, q.zc_18 z18, q.xc_19 x19, q.yc_19 y19, q.zc_19 z19,
q.xc_20 x20, q.yc_20 y20, q.zc_20 z20, q.xc_21 x21, q.yc_21 y21, q.zc_21 z21,
q.xc_22 x22, q.yc_22 y22, q.zc_22 z22, q.xc_23 x23, q.yc_23 y23, q.zc_23 z23,
q.xc_24 x24, q.yc_24 y24, q.zc_24 z24, q.xc_25 x25, q.yc_25 y25, q.zc_25 z25,
q.xc_26 x26, q.yc_26 y26, q.zc_26 z26
FROM qtmchebychev q
WHERE q.target_id = @target_name
AND q.start_time <= @req_time
AND q.end_time >= @req_time
The FGSAST process performs the following query on the executed
relation to set the "executed_flg" field to the last character of the specified Astrometry
ipppssoot; i.e., the letter "M".
UPDATE executed
SET executed_flg = flag
WHERE program_id = prg_id
AND obset_id = ob_id
AND ob_number = ob_num
where: flg = 'M'
prg_id = program id from specified ipppssoot
ob_id = obset id from specified ipppssoot
ob_num = obs number from specified ipppssoot
The FGSAST process performs the following query on the qbastr_archv
relation to insert records into the relation.
INSERT qbastr_archv
(program_id,obset_id,ob_number,astromy_file,archdate,window_start,window_stop,format_id,
perc_complet,percent_bad,pdb_version,environment,ast_success,file_cnt,schdunit)
VALUES (@program_id,@obset_id,@ob_number,@ipppssoot, @date,@win_strt,@win_stop,@tlm_fmt,
@proc_mf,@missing_mf,@pdb_ver,@environ,@success,@file_cnt,@schdunit)
where: the values to be inserted are specified in the VALUES claause of the query.
ASTREQ Process Querries
- The ASTREQ process uses generic code (GENREQ) common to a lot of OPUS/EDPS Pipelines. It performs
a multitude of queries on a multitude of relations. The specific queries it performs will not be documented
here. The primary function of the querries performed by ASTREQ is to keep track of and to keep a history
of the requests that were made of the DADS Archive System to archive files.
ASTRSP Process Querries
- The ASTRSP process uses generic code (INGRSP) common to a lot of OPUS/EDPS Pipelines. It performs
a multitude of queries on a multitude of relations. The specific queries it performs will not be documented here.
The primary function of the querries performed by ASTRSP is to keep track of and to keep a history of the responses
that were generated by the DADS Archive System in response to requests to archive files.
ASTFIN Process Querries
- The ASTFIN process performs the following query on the product_status Relation
relation to mark the specified observation as completing its processing:
UPDATE product_status
SET complete_flag = "Y"
WHERE product_rootname="$uc_root"
AND product_type="$class"
The ASTFIN process performs the following query on the product_eng_map
and product_status relations to determine if all observations
that need a particular telemetry file have been completed; in which case the telemtry file can be
marked for deletion:
SELECT m.eng_rootname, MIN(s.complete_flag)
FROM product_eng_map m, product_status s, product_eng_map m2
WHERE m.product_rootname="$uc_root"
AND m.product_type="$class"
AND m2.product_type = m.product_type
AND m2.eng_rootname = m.eng_rootname
AND s.product_rootname = m2.product_rootname
AND s.product_type = m2.product_type
GROUP BY m.eng_rootname