!--------------------------------------------------------------------
!
!      SAACLN 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
! -------- ------  --------- -------------------------------------
! 11/16/07 55049   MSwam     First version
! 06/01/10 64909  Sherbert   Do not set AC
!
!--------------------------------------------------------------------

PROCESS_NAME = saacln            ! Short name for process id
TASK = <xpoll -p $PATH_FILE -r saacln>
CLASS = NIC
DESCRIPTION = 'Nicmos SAA clean'
SYSTEM = OPUS
COMMAND = saa_clean.csh          ! Name of the command procedure

OSF_RANK = 1                     ! First Trigger
OSF_TRIGGER1.CA = s              ! Need a 'Wait for CALNICA' flag in Calibration
OSF_TRIGGER1.DATA_ID = nic       ! Also need the Data_id set to NICMOS

OSF_PROCESSING.CA  = p           ! Set the processing flag to 'Processing'

XPOLL_STATE.01 = OSF_NORMAL      ! Normal: Completed the CALNICA step
OSF_NORMAL.CA      = c           ! Normal: 'Vait' for the Data collector
OSF_NORMAL.DC      = v           ! Normal: 'Vait' for the Data collector

XPOLL_STATE.03 = OSF_ERROR       !
OSF_ERROR.CA       = f           ! Error:  Set the error flag

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

POLLING_TIME       = 10          ! Wait (seconds) before polling for next 
ENV.OUTPATH        = NIC_CAL_DIR ! Directory where output files are written
MINBLOCKS          = 500000      ! blocks required on output disk
EXTENSION          = _raw.fits   ! This input file extension must exist
