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
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
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.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
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
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
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
!-------------------------------------------------------------------- ! ! ! 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
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
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
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.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*
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
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
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.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
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
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
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 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
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
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
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 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
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
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
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 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
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
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
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 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
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
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
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.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
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
INPUT: N/A OUTPUT: N/A
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.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
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
INPUT: N/A OUTPUT: N/A
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.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
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 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
INPUT: N/A OUTPUT: N/A
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.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
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. "
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
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.
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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.
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.
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".
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
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??
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
UPDATE product_eng_map SET eng_ready = "Y" WHERE eng_rootname="$eng_root" AND product_type="$target_class"
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"
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
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)
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'
SELECT eng_trigger, eng_trigger_name FROM eng_trigger
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
SELECT eng_number, eng_trigger FROM eng_telem_use WHERE product_type = product_type
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
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
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")
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
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")
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
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
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
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
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.
UPDATE product_status SET complete_flag = "Y" WHERE product_rootname="$uc_root" AND product_type="$class"
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