!--------------------------------------------------------------------
!
! Name: colwf2.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/03/00           MSwam     first version 
! 03/12/01 43165_05  MSwam     move indirection to path
! 11/26/01 44598_01  MSwam     parameterize calibration stage name
! 04/03/02 45563     MSwam     new 2G stage
!
!-------------------------------------------------------------------------------
PROCESS_NAME = colwf2           ! Short name for process id
TASK = <xpoll -p $PATH_FILE -r colwf2>
COMMAND  = reqcst.pl            ! Name of the command procedure
DESCRIPTION = 'Collects calibration for return to DADS'
SYSTEM = OTFR
CLASS = otf 

OSF_RANK             = 1        ! First Trigger
                                
OSF_TRIGGER1.DC      = w        ! OSF status column and
OSF_TRIGGER1.DATA_ID = wf2      ! OSF data_id field

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

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

OSF_NOT_READY.DC     = z        ! Not ready: sleep and try later

OSF_ERROR.DC         = e        ! Error:  Set the error flag

FLUSHING.DC          = f        ! Timeout occurred: flushing this request
FLUSHING.2G          = w        !         Waiting for next stage

XPOLL_STATE.00       = OSF_NORMAL
XPOLL_STATE.01       = OSF_ERROR
XPOLL_STATE.03       = OSF_NOT_READY
XPOLL_STATE.04       = FLUSHING

XPOLL_ERROR_COUNT    = 1            ! exit if any error occurs (for now)

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

POLLING_TIME         = 10           ! Wait (seconds) before polling for next 

ENV.OUTPATH          = wf2_recalib  ! root directory for instrument calibration
MINBLOCKS            = 500000       ! enough for several POD files

ENV.CAL_DIR              = wf2_cal_dir         ! location of cal products
ENV.DATA_REDUCTION_PATH  = data_reduction_path ! path for data reduction pipeline
ENV.TIMEOUT_INTERVAL     = max_time_for_otfsci
ENV.ARCH_SERVER          = ARCH_SERVER
ENV.ARCH_DB              = ARCH_DB
ENV.CAL_STAGE_NAME       = cal_stage_name
