!--------------------------------------------------------------------
!
! Name: g2fnic.resource
!
! Purpose: This file is used to construct the trigger, error, and 
!          success status fields in the observation status file.
!
!	This resource file uses a file trigger.
!
!--------------------------------------------------------------------
!                          REVISION HISTORY
!--------------------------------------------------------------------
!  MOD             PR
! LEVEL   DATE   NUMBER  User  Description
! ----- -------- ------  ------ -------------------------------------
!  000  09/22/98 36848   MSwam  first version 
!  001  11/13/98  36860_02 MSwam fix CLASS entry
!  002  06/25/99 38324   WMiller Set ENV vars
!
!--------------------------------------------------------------------
PROCESS_NAME = g2fnic           ! Short name for process id
TASK         = <xpoll -p $PATH_FILE -r g2fnic>
COMMAND      = g2fxxx.csh           ! Name of the command procedure
DESCRIPTION  = 'Performs GEIS to FITS conversion on a dataset'
SYSTEM = OTFR
CLASS = otf 

OSF_RANK             = 1        ! First Trigger
OSF_TRIGGER1.2F      = w        ! OSF status column and
OSF_TRIGGER1.DATA_ID = nic      ! OSF data_id field

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

OSF_NORMAL.2F      = c          ! Normal: Completed
OSF_NORMAL.RE      = w          ! Normal: Waiting for next stage

OSF_ERROR.2F       = e          ! Error:  Set the error flag

NO_FITS_FILES.2F   = n          ! No FITS files found; Send back empty response
NO_FITS_FILES.RE   = n
NO_FITS_FILES.RS   = w

XPOLL_STATE.00 = OSF_NORMAL
XPOLL_STATE.01 = OSF_ERROR
XPOLL_STATE.02 = NO_FITS_FILES

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

POLLING_TIME   = 10              ! Wait (seconds) before polling for next 
ENV.OUTPATH    = nic_recalib     ! input products found here
MINBLOCKS      = 500000
ENV.FORMAT_DIR = pkg/fitsio/     ! relative path to default format in SDAS tree
