!--------------------------------------------------------------------
!
!      CALNICA 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
! -------- ------  --------- -------------------------------------
! 07/12/96 31813   Rose      Created 
! 06/24/99 38324   WMiller   Set ENV vars
! 11/30/99 39546   Rose      Unix version
! 01/31/01 43165   MSwam     Add ARCH_SERVER,ARCH_DB for nocal check
! 06/17/02 45279   Slowinski remove db related entries
! 06/24/04 51412   Sherbert  For PR 50437 Remove DISPLAY_ORDER
! 11/16/07 55049   MSwam     Trigger saa_clean next
!
!--------------------------------------------------------------------

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

OSF_RANK = 1			! First Trigger
OSF_TRIGGER1.CA = w		! 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      = s		! Normal: trigger the SAA CLEAN step

XPOLL_STATE.03 = OSF_ERROR	!
OSF_ERROR.CA       = e		! 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


