!--------------------------------------------------------------------
!
!      CAT_CSI 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  User      Description
! -------- ------  --------- -------------------------------------
! 09/03/10 65745   Sherbert  Initial version
! 09/08/10 65747   Sherbert  add KR_CLASSES
! 11/11/10 65747   Sherbert  fix typos
! 09/18/12 72255   Sherbert  get rid of DSQUERY
!--------------------------------------------------------------------

PROCESS_NAME = catalog          ! Short name for process id
TASK = <catalog -p $PATH_FILE -r cat_csi>
CLASS = COS
DESCRIPTION = 'Archive Catalog Ingest'
SYSTEM = OPUS
OK_TO_UPDATE_DATABASE = TRUE

OSF_RANK = 1                    ! First Trigger
OSF_TRIGGER1.SC = w             ! Waiting for catalog population
OSF_TRIGGER1.DATA_ID = csi      ! 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_sci process

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

POLLING_TIME  = 10              ! Wait (seconds) before polling for next 
INPATH        = MAMA_DIR        ! Directories where the FITS files are found
LOG_DIR       = LOG_DIR         ! Location for catalog log files
INSTRUMENT    = COS             !
MEMBER_DATA_ID = none           ! SILLY: needed, but not used
ASSOCIATION_ID = none           ! SILLY: needed, but not used
KR_CLASSES     = COS            ! limit the rules attempted to only necessary ones, but still too much!

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
