!-------------------------------------------------------------------------------
!
!      CALACA 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/13/99 38161  Rose      Initial version
! 06/24/99 38324  WMiller   Set ENV vars
! 08/01/00 43165  MSwam     For OTFR
! 06/17/02 45279  Slowinski remove db related entries
! 09/10/04 51801  Sherbert  Add drizzle triggering,rm unused ENV.CAL_OUTFILE_EXT
! 03/29/05 50546  Slowinski Create calaca resource file
! 11/13/06 49671  Hamilton  Changed HT to FT
!
!-------------------------------------------------------------------------------
!
PROCESS_NAME = calaca            ! Short name for process id
TASK = <xpoll -p $PATH_FILE -r calacs>
COMMAND      = calacs.csh        ! Name of the command procedure
DESCRIPTION  = 'ACS Calibration '
SYSTEM       = OPUS
CLASS        = ACS

OSF_RANK = 1                     ! First Trigger
OSF_TRIGGER1.CA = w               ! wait in calibration
OSF_TRIGGER1.DATA_ID = aca        ! ACS association normally

OSF_RANK = 2                     ! Second Trigger
OSF_TRIGGER2.CA = w               ! wait in calibration
OSF_TRIGGER2.DATA_ID = acs        ! ACS singletons too

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

XPOLL_STATE.00  = OSF_NORMAL     ! Normal: Completed calibration successfully
OSF_NORMAL.CA     = m             ! Drizzle (py~ or multi~)

XPOLL_STATE.01  = OSF_ERROR      ! Error during calibration
OSF_ERROR.CA      = e             ! differentiate from Drizzle error

XPOLL_STATE.02  = OSF_NOCAL      ! Bypass calibration
OSF_NOCAL.CA      = n             ! No calibration required.
OSF_NOCAL.AC      = n             ! No calibration required.
OSF_NOCAL.FT      = n             ! No calibration required.
OSF_NOCAL.RQ      = w             ! Wait for archive request generation

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

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

ENV.INPATH        = ACS_SIS_DIR  ! Where the .trx file is found
ENV.OUTPATH       = ACS_CAL_DIR  ! Directory where output files are written
