!--------------------------------------------------------------------
!
!      CAT_ACM 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
! -------- ------  --------- -------------------------------------
! 04/23/04 50432   MSwam     Initial version
! 05/03/04 50955   Goldst    Changed to trigger hkp_sci process
! 06/24/04 51412   Sherbert  For PR 50437 Remove DISPLAY_ORDER
! 09/03/10 65747   Sherbert  Change data_id, add KR_CLASSES
! 09/18/12 72255   Sherbert  get rid of DSQUERY
!--------------------------------------------------------------------

PROCESS_NAME = catalog          ! Short name for process id
TASK = <catalog -p $PATH_FILE -r cat_acm>
CLASS = ACS
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 = acm      ! 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    = ACS             !
MEMBER_DATA_ID = none           ! SILLY: needed, but not used
ASSOCIATION_ID = none           ! SILLY: needed, but not used
KR_CLASSES     = ACS            ! 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
