!-------------------------------------------------------------------------------
!
!      cat_fgs RESOURCE FILE
!
!
!      This file is used to construct the trigger, error, and success status
!      fields in the observation status file.
!
!
!-------------------------------------------------------------------------------
!                          REVISION HISTORY
!-------------------------------------------------------------------------------
!   DATE     PR  Developer  Description
! -------- ----- ---------- ----------------------------------------------------
! 01/27/03 45981 Rose       Initial version
! 11/05/03 49564 Rose       Install in the pipeline
! 11/13/03 49564 Rose       AP is taken by ast_pipeline.  Use SC
! 11/14/03 49564 Rose       Add the ASNPATH and cross-wire the db
! 04/07/04 50879 J.Baum     Add KR_CLASSES, remove parallel_db data
! 04/09/04 50429 Goldst     Removed note regarding PARALLEL_DB etc.
! 04/21/04 50429 Sherbert   Remove SAVE_INSERT_HISTORY for 50823
! 04/30/04 50429 Goldst     Added OSF_SKIP_CATALOG and related keywords
!                            for EPC data
! 05/03/04 50955 Goldst     Changed to trigger hkp_sci process
! 06/24/04 51412 Sherbert   For PR 50437 Remove DISPLAY_ORDER
! 08/09/05 51460 J.Baum     Add PRODUCTS_AND_ORPHANS flag
! 07/19/06 52625 Sherbert   Remove extraneous OSF_RANK entries
! 09/18/12 72255 Sherbert   get rid of DSQUERY
!-------------------------------------------------------------------------------

PROCESS_NAME = catalog          ! Short name for process id
TASK = <catalog -p $PATH_FILE -r cat_fgs>
CLASS = fgs
INSTRUMENT = OMS
DESCRIPTION = 'Archive Catalog Ingest for OMS class'
SYSTEM = FGS
OK_TO_UPDATE_DATABASE = TRUE

OSF_RANK = 1                    ! OSF Triggers
OSF_TRIGGER1.SC = w             ! Waiting for catalog population
OSF_TRIGGER1.DATA_ID = fgs      ! Also need the Data_id set to ACS

OSF_TRIGGER2.SC = w             ! Waiting for catalog population
OSF_TRIGGER2.DATA_ID = fas      ! Data_id for associations
KR_CLASSES = OMS                ! Catalog Keyword Rule classes (optional)

OSF_TRIGGER3.SC = w             !                     "
OSF_TRIGGER3.DATA_ID = epc      !                     "
SKIP_CLASSES = "epc"            !                     "

OSF_PROCESSING.SC  = p          ! Set the processing flag to 'Processing'
OSF_NORMAL.SC = u               ! Normal: Trigger the hkp_fgs process
OSF_SKIP_CATALOG.SC = u         ! Trigger hkp_fgs process

OSF_ERROR.SC  = e               ! Error:  Set the trouble flag

POLLING_TIME  = 10              ! Wait (seconds) before polling for next 
INPATH        = FGS_OUTPUT_DIR  ! Directories where the FITS files are found
ASNPATH       = FGS_ASN_DIR     ! Directory where the _asn.fits files are
LOG_DIR       = FGS_LOG_DIR     ! Location for catalog log files
MEMBER_DATA_ID   = fgs          ! Need this when processing associations
ASSOCIATION_ID   = fas          ! Data_id for the association
PRODUCTS_AND_ORPHANS = TRUE     ! For asn, only catalog products and orphans

MINBLOCKS     = 50000           ! blocks required on output disk
EXTENSION     = .fits           ! This input file extension must exist

! forces values from path to be used (unless overridden in opus_login?)

ENV.OPUS_SERVER = OPUS_SERVER
ENV.OPUS_DB     = OPUS_DB
ENV.KW_SERVER   = KW_SERVER
ENV.KW_DB       = KW_DB
ENV.ARCH_SERVER = ARCH_SERVER
ENV.ARCH_DB     = ARCH_DB
