!--------------------------------------------------------------------
!
!      CAT_AST RESOURCE FILE
!
!
!      This file is used to construct the trigger, error, and success status
!      fields in the observation status file.
!
!
!--------------------------------------------------------------------
!                          REVISION HISTORY
!--------------------------------------------------------------------
!            PR
!   DATE   NUMBER  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
! 12/19/03 49564   MSwam     Remove ASNPATH (Phil says its not needed)
! 04/09/04 50429   Goldst    Corrected ARCH* keyword values and removed note
! 04/21/04 50429   Sherbert  Remove SAVE_INSERT_HISTORY for 50823
! 05/03/04 50955   Goldst    Changed to trigger hkp_sci process
! 06/24/04 51412   Sherbert  For PR 50437 Remove DISPLAY_ORDER
!--------------------------------------------------------------------

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

OSF_RANK = 1            ! First Trigger
OSF_TRIGGER1.SC = w     ! Waiting for catalog population
OSF_TRIGGER1.DATA_ID = ast      ! Also need the Data_id set to ACS

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

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

POLLING_TIME  = 10      ! Wait (seconds) before polling for next 
INPATH        = AST_OUTPUT_DIR  ! Directories where the FITS files are found
LOG_DIR       = AST_LOG_DIR     ! Location for catalog log files
MEMBER_DATA_ID   = ast          ! Need this when processing associations
ASSOCIATION_ID   = none         ! Data_id for the association

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

! forces values from path to be used

 ENV.DSQUERY     = DSQUERY
 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
