!-------------------------------------------------------------------------------
!
!      DRZWF2 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
! -------- ------ --------- ----------------------------------------------------
! 01/03/08 59148  MSwam     first version
!
!-------------------------------------------------------------------------------

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

OSF_RANK = 1                      ! OSF Triggers
OSF_TRIGGER1.CA = d               ! wait for Drizzle
OSF_TRIGGER1.DATA_ID = wf2        ! ACS association normally

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

XPOLL_STATE.00  = OSF_NORMAL      ! Normal: Completed Drizzle successfully
OSF_NORMAL.CA     = c             ! Completed Drizzle successfully
OSF_NORMAL.AC     = n             ! OTFR knows AC=n is done
OSF_NORMAL.FT     = w             ! Wait for next stage

XPOLL_STATE.01  = OSF_ERROR       ! Error during Drizzle
OSF_ERROR.CA      = f             ! differentiate from Cal error

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

POLLING_TIME      = 10            ! Wait (seconds) before polling for next 
MINBLOCKS         = big_MINBLOCKS ! blocks required on output disk

ENV.INPATH        = WF2_CAL_DIR   ! Where the cal files files are found
ENV.OUTPATH       = WF2_CAL_DIR   ! Directory where output files are written

ENV.TERM    = vt100  ! PyRAF doesn't seem to get this correctly from environment
ENV.DISPLAY = ""     ! PyRAF fails with XWindows exception if it cannot open DISPLAY
