!--------------------------------------------------------------------
!
! Name: g2fwf3.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
!--------------------------------------------------------------------
!            PR
!   DATE   NUMBER Developer  Description
! -------- ------ ---------- ----------------------------------------
! 04/01/08 59478  Sherbert   Add COS, WFC3 to OTFR
!--------------------------------------------------------------------

PROCESS_NAME = g2fwf3           ! Short name for process id
TASK         = <xpoll -p $PATH_FILE -r g2fwf3>
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 = wf3      ! 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    = wf3_recalib     ! input products found here
MINBLOCKS      = 1000000
ENV.FORMAT_DIR = pkg/fitsio/     ! relative path to default format in SDAS tree
