!-------------------------------------------------------------------------------
!
!      MD_W3A 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 57556  Sherbert  Initial version (cp from md_acs.resource)
! 11/24/09 63713  Sherbert  Fix -r param; get rid of unneeded keyword
! 09/07/11 69025  Sherbert  changing to astrodrizzle
! 12/15/11 69025  MSwam     back to multidrizzle for now
!
!-------------------------------------------------------------------------------

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

OSF_RANK = 1                      ! OSF Triggers
OSF_TRIGGER1.CA = m               ! wait for [Multi]Drizzle
OSF_TRIGGER1.DATA_ID = w3a        ! WF3 association normally

OSF_TRIGGER2.CA = m               ! wait for [Multi]Drizzle 
OSF_TRIGGER2.DATA_ID = wf3        ! WF3 singletons too

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     = 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        = WF3_CAL_DIR   ! Where the cal files files are found
ENV.OUTPATH       = WF3_CAL_DIR   ! Directory where output files are written

!! MultiDrizzle needs
ENV.DRIZZLE_TYPE     = MULTIDRIZZLE ! set to ASTRODRIZZLE or MULTIDRIZZLE  

!! Do we still need these?  Long time since tried to process w/o them...
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
