!--------------------------------------------------------------------
!
!      BC_NCB  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
! 06/24/04 51412   Sherbert  For PR 50437 Remove DISPLAY_ORDER
!
!--------------------------------------------------------------------

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

OSF_RANK = 1			! First Trigger
OSF_TRIGGER1.BC = w		! Need a 'Wait for CALNICB' flag in Calibration
OSF_TRIGGER1.DATA_ID = nas	! Also need the Data_id set to NICMOS

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

XPOLL_STATE.01 = OSF_NORMAL	! Normal: Completed the CALNICB step
OSF_NORMAL.BC      = c		! Normal: Completed the CALNICB step
OSF_NORMAL.CA      = w		! Normal: Completed the CALNICB step

XPOLL_STATE.03 = OSF_ERROR	! Return status of 99 indicates error.
OSF_ERROR.BC       = e		! Error:  Set the error flag

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

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

ENV.OPUS_DB = OPUS_DB
ENV.SPSS_DB = SPSS_DB
ENV.DSQUERY = DSQUERY
ENV.ASSIST_DB = ASSIST_DB

