!-------------------------------------------------------------------------------
!
!      CAT_MISC RESOURCE FILE
!
!      This file is used to construct the trigger, error, and success status
!      fields in the observation status file for DATA_IDs that are not 
!      directly related to the science instruments and are likely to skip
!      the catalog step.
!
!--------------------------------------------------------------------
!                          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   Move non-SI SKIP classes from cat_wf2 to here
! 09/18/12 72255  Sherbert   get rid of DSQUERY
! 04/26/13 69727  LThompson  add CRDS cdb (fits) & ref (map) IDs to SKIP_CLASSES
!-------------------------------------------------------------------------------

PROCESS_NAME = catalog                           ! Short name for process id
TASK = <catalog -p $PATH_FILE -r cat_misc>
CLASS = ALL
INSTRUMENT = NONE
DESCRIPTION = 'Archive Catalog Skippers (generic)'
SYSTEM = OPUS
OK_TO_UPDATE_DATABASE = TRUE

OSF_RANK = 1                ! First Trigger

! These data ids all get the SKIP treatment (no cataloging)
! 01/30/2013  added pod so that it can pass through catalog under OWL
!              (there won't be a free_cat_lock stage in OWL to pass it on)
SKIP_CLASSES = "dmp,anc,prb,pod,cdb,ref"         ! Data IDs that skip cataloging

OSF_TRIGGER1.SC = w         ! Waiting for catalog population
OSF_TRIGGER1.DATA_ID = dmp  ! Data_id for associations

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

OSF_TRIGGER3.SC = w         ! Waiting for catalog population
OSF_TRIGGER3.DATA_ID = prb  ! Data_id for associations

OSF_PROCESSING.SC  = p      ! Set the processing flag to 'Processing'
OSF_NORMAL.SC = e           ! Normal would be wrong here
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        = N/A         ! Directories where the FITS files are found
ASNPATH       = N/A         ! Directory where the _asn.fits files are
LOG_DIR       = LOG_DIR     ! Location for catalog log files
MEMBER_DATA_ID   = n/a      ! Need this when processing associations
ASSOCIATION_ID   = n/a      ! Data_id for the association

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

! force 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
