!-------------------------------------------------------------------------------
!
!      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
! 09/07/11 69025  Sherbert  changing to astrodrizzle
! 12/15/11 69025  MSwam     back to multidrizzle for now
!
!-------------------------------------------------------------------------------
!
PROCESS_NAME = md_aca            ! Short name for process id
TASK = <xpoll -p $PATH_FILE -r md_aca>
COMMAND      = md_acs.csh        ! Name of the command procedure
DESCRIPTION  = 'ACS Drizzle'
SYSTEM       = OPUS
CLASS        = ACS

OSF_RANK = 1                     ! First Trigger
OSF_TRIGGER1.CA = m               ! wait for [Multi]Drizzle
OSF_TRIGGER1.DATA_ID = aca        ! ACS association normally

OSF_RANK = 2                     ! Second Trigger
OSF_TRIGGER2.CA = m               ! wait for [Multi]Drizzle 
OSF_TRIGGER2.DATA_ID = acs        ! 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 ASTRODRIZZLE or 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
