!--------------------------------------------------------------------
!
! Name: g2fxxx.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
!  -------- --------  --------- -------------------------------------
!  09/22/98 36848     MSwam     first version 
!  11/13/98 36860_02  MSwam     fix CLASS entry
!  06/25/99 38324     WMiller   Set ENV vars
!  12/03/01 44598     MSwam     create SI-independent version  
!  07/22/02 45279     Sherbert  remove DATA_ID-based triggering
! 
!--------------------------------------------------------------------
PROCESS_NAME = g2fxxx           ! Short name for process id
TASK         = <xpoll -p $PATH_FILE -r g2fxxx>
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
!! Removing DATA_ID-based triggering by commenting out the following
! OSF_TRIGGER1.DATA_ID = nic      ! OSF data_id field
! OSF_TRIGGER2.2F      = w        ! OSF status column and
! OSF_TRIGGER2.DATA_ID = sti      ! OSF data_id field
! OSF_TRIGGER3.2F      = w        ! OSF status column and
! OSF_TRIGGER3.DATA_ID = wf2      ! OSF data_id field
! OSF_TRIGGER4.2F      = w        ! OSF status column and
! OSF_TRIGGER4.DATA_ID = acs      ! 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    = all_recalib     ! input products found here
MINBLOCKS      = 500000
ENV.FORMAT_DIR = pkg/fitsio/     ! relative path to default format in SDAS tree
