!-------------------------------------------------------------------------------
!
!      MD_ACS 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
! -------- ------ --------- ----------------------------------------------------
! 10/12/04 51801  Sherbert  Initial version (rm MD from calacs.resource)
! 05/11/05 50546  Slowinski split into md_aca, md_acs resource 
! 02/22/06 54699  MSwam     Parameterize to for tufnel,smalls,sthubbins
! 07/19/06 52625  Sherbert  Remove extraneous OSF_RANK entry
!
!-------------------------------------------------------------------------------

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

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

OSF_TRIGGER2.CA = m               ! wait for [Multi]Drizzle 
OSF_TRIGGER2.DATA_ID = aca        ! ACS 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        = ACS_CAL_DIR   ! Where the cal files files are found
ENV.OUTPATH       = ACS_CAL_DIR   ! Directory where output files are written

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

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
