!--------------------------------------------------------------------
!
!      CAT_WF2 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
! 02/04/04 45981   MSwam     Add SKIP_CLASSES and OSF_SKIP_CATALOG
! 04/09/04 50429   Goldst    Corrected ARCH* keyword values and removed note
! 04/21/04 50429   Sherbert  Change ASNPATH to use *_CAL_DIR 
! 04/21/04 50429   Sherbert  Remove SAVE_INSERT_HISTORY for 50823
! 04/23/04 50432   MSwam     Remove overrides for acc,oma
! 05/03/04 50955   Goldst    Changed to trigger hkp_sci process
! 06/24/04 51412   Sherbert  For PR 50437 Remove DISPLAY_ORDER
! 08/03/04 51692   J.Baum    Remove "pod" trigger and skip_class,
!                            and renumber triggers
! 12/21/04 51692   Sherbert  Remove confusing extra OSF_RANKs
! 07/14/09 59924   Sherbert  Remove non-WF2 data_ids
! 10/06/09 59924   Sherbert  Fix OSF_TRIGGER number
! 09/18/12 72255   Sherbert  get rid of DSQUERY
! 
!--------------------------------------------------------------------

PROCESS_NAME = catalog  ! Short name for process id
TASK = <catalog -p $PATH_FILE -r cat_wf2>
CLASS = WF2
INSTRUMENT = WFPC2
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 = wf2  ! Also need the Data_id set to ACS

! These data ids all get the SKIP treatment (no cataloguing)
! They are in this resource file to allow ops to save bringing up
! a separate process to handle them.
!
SKIP_CLASSES = "edu"        ! Data ids that skip cataloging

OSF_TRIGGER2.SC = w         ! Waiting for catalog population
OSF_TRIGGER2.DATA_ID = edu  ! Data_id for associations

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

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

POLLING_TIME  = 10          ! Wait (seconds) before polling for next 
INPATH        = WF2_CAL_DIR ! Directories where the FITS files are found
ASNPATH       = WF2_CAL_DIR ! Directory where the _asn.fits files are
LOG_DIR       = LOG_DIR     ! Location for catalog log files
MEMBER_DATA_ID   = wf2      ! Need this when processing associations
ASSOCIATION_ID   = was      ! 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 (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
