!--------------------------------------------------------------------
!
! Name: f2gxxx.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   04/03/02 45563   MSwam     first version 
! 001   11/18/03 49769   jschultz  add mnemonics that are used to specify 
!                                  command line options when the fitsverify 
!                                  tool is invoked by the f2gxxx.csh shell 
!                                  script
! 03/17/04 49769    Sherbert   Make fitsverify reporting less verbose
! 07/24/08 60382    Hamilton   Added WF2_REPING_DIR and REPRO_ACCOUNT
!--------------------------------------------------------------------
PROCESS_NAME = f2gxxx           ! Short name for process id
TASK         = <xpoll -p $PATH_FILE -r f2gxxx>
COMMAND      = f2gxxx.csh           ! Name of the command procedure
DESCRIPTION  = 'Performs FITS to GEIS conversion on a dataset'
SYSTEM = OTFR
CLASS = otf 

OSF_RANK             = 1        ! First Trigger
OSF_TRIGGER1.2G      = w        ! OSF status column and
OSF_TRIGGER1.DATA_ID = sti      ! OSF data_id field
OSF_TRIGGER2.2G      = w        ! OSF status column and
OSF_TRIGGER2.DATA_ID = wf2      ! OSF data_id field

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

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

NOT_NEEDED.2G      = n          ! Not needed for some instruments
NOT_NEEDED.2F      = w          ! Normal: Waiting for next stage

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

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

XPOLL_ERROR.2G = 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
ENV.FITS_VERIFY = TRUE          ! indicates whether to perform a fits verification
                                ! on the fits files prior to geis conversion;
                                ! allowable values are: TRUE or FALSE   

ENV.FITS_VERIFY_LEVEL = s       ! indicates what level of verification to perform;
                                ! allowable values are: w, e, or s  
                                !   w = check for all warnings and all errors
                                !   e = only check for all errors; i.e., check for
                                !       regular and severe errors but ignore 
                                !       warnings
                                !   s = only check for severe errors; i.e., 
                                !       ignore warnings and regular errors

ENV.FITS_VERIFY_REPORT = q      ! indicates the amount of information to be
                                ! included in the verification report;
                                ! allowable values: q or v
                                !   q = generate a quiet verification report; i.e.,
                                !       generate a report indicating only if the
                                !       verification passed or failed
                                !   v = generate a verbose verification report;  
                                !       i.e., generate a detailed report about 
                                !       the verification including whether it
                                !       passed or failed
                                ! The FITS verification reports that are generated
                                ! are written to the process log file

ENV.WF2_REPING_DIR = wf2_repro_ing_dir
ENV.REPRO_ACCOUNT = reprocessing_account

MINBLOCKS      = 500000
