!-------------------------------------------------------------------------------
!
!  BC_WF3 RESOURCE FILE
!
!
!  This file is used to construct the trigger, error, and success status
!  fields in the observation status file.
!
!
!-------------------------------------------------------------------------------
!                          REVISION HISTORY
!-------------------------------------------------------------------------------
!   DATE    PR   Developer  Description
! -------- ----- ---------- ----------------------------------------------------
! 10/18/02 46823 Rose       Template for BC_WF3
! 10/23/03 49468 MSwam      Trigger CA
! 12/18/03 49468 MSwam      Don't trigger calibration now (thervac)
! 02/01/07 56870 Sherbert   Non-thervac pipeline
! 02/13/07 49671 Sherbert   Use FT now instead of holding tank
! 02/19/08 57556 Sherbert   Favor ASNs over singletons; add FGS_PATH info
! 09/18/12 72255  Sherbert   get rid of DSQUERY
! 05/05/13 70908 Sherbert   remove FGS dependencies
!
!-------------------------------------------------------------------------------

PROCESS_NAME = bc_wf3       ! Short name for process id
TASK = <xpoll -p $PATH_FILE -r bc_wf3>
COMMAND = bc_acs.csh        ! Name of the command procedure
DESCRIPTION = 'WF3 Pre-calibration (same as ACS)'
SYSTEM = OPUS
CLASS = WF3

OSF_RANK = 1                ! First Trigger
OSF_TRIGGER1.BC    = w      ! wait in pre calibration
OSF_TRIGGER1.DATA_ID = w3a  ! WF3 Associations

OSF_TRIGGER2.BC    = w      ! wait in pre calibration
OSF_TRIGGER2.DATA_ID = wf3  ! WF3 singletons

OSF_PROCESSING.BC  = p      ! Set flag while 'Processing'

XPOLL_STATE.00 = OSF_NORMAL ! Normal: Completed pre calibration successfully
OSF_NORMAL.BC      = c      ! 
OSF_NORMAL.CA      = w      ! Wait for next stage

XPOLL_STATE.01 = OSF_ERROR  ! Error during pre calibration
OSF_ERROR.BC       = e      ! 

XPOLL_STATE.02 = OSF_NOCAL  ! Bypass calibration
OSF_NOCAL.BC       = c      ! nothing done in before calibration
OSF_NOCAL.CA       = n      ! skip calibration
OSF_NOCAL.AC       = n      ! skip after calibration
OSF_NOCAL.FT       = w      ! wait for holding tank

XPOLL_ERROR.BC     = x      ! Set osf to this if exit state is undefined.

POLLING_TIME       = 10     ! Wait (seconds) before polling for next 
MINBLOCKS          = 100000 ! blocks required on output disk
ENV.INPATH         = WF3_SIS_DIR ! Where the .trx file is found
ENV.OUTPATH        = WF3_CAL_DIR ! Directory where output files are written

!! check_cal_stat.pl requires nothing.
!! exposure_times.pl requires these:
ENV.UPDATE_EXPOSURE_TIMES = update_exposure_times ! determined by path file 
ENV.OK_TO_UPDATE_DATABASE = OK_TO_UPDATE_DATABASE ! determined by path file 
!
ENV.OPUS_SERVER = OPUS_SERVER
ENV.OPUS_DB               = OPUS_DB 
