!--------------------------------------------------------------------
!
!      CALWF2 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
! -------- ------   --------- -------------------------------------
! 07/30/99 39511    Heller    Created for TRUE64
! 01/31/01 43165    MSwam     Add ARCH_SERVER,ARCH_DB for nocal check
! 06/17/02 45279    Slowinski remove db related entries
! 12/11/02 46357_05 Sherbert  Set AC=c so DADS knows CA ok in OTFR
! 02/14/03 46993    Heller    Set trigger to wait for wf2_asn to finish
! 11/13/06 49671    Hamilton  Changed HT to FT
! 01/03/08 59148    MSwam     Trigger drizzle next
! 03/12/08 59148    MSwam     Turn off drizzle until its fixed
! 05/07/08 58998    MSwam     Turn drizzle back on
!
!--------------------------------------------------------------------

PROCESS_NAME = calwf2        ! Short name for process id
TASK = <xpoll -p $PATH_FILE -r calwf2>
COMMAND = calwf2.csh         ! Name of the command procedure
DESCRIPTION = 'WF2 Calibration'
SYSTEM = OPUS
CLASS = WF2

OSF_RANK = 1                 ! First Trigger
OSF_TRIGGER1.CA = w          ! wait in calibration
OSF_TRIGGER1.BC = c          ! Finished before calibration stuff
OSF_TRIGGER1.DATA_ID = wf2   ! for wfpc2s
OSF_TRIGGER2.CA = w          ! wait in calibration
OSF_TRIGGER2.BC = n          ! No before calibration stuff to do
OSF_TRIGGER2.DATA_ID = wf2   ! for wfpc2

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

XPOLL_STATE.00 = OSF_NORMAL  ! Normal: Completed calibration successfully
OSF_NORMAL.CA      = d       ! drizzle

XPOLL_STATE.01 = OSF_ERROR   ! Error during calibration
OSF_ERROR.CA       = e       ! 

XPOLL_STATE.02 = BYPASS_CAL  ! Bypass calibration
BYPASS_CAL.CA      = n       ! 
BYPASS_CAL.AC      = n       ! 
BYPASS_CAL.FT      = w       ! Wait for next stage

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

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