!--------------------------------------------------------------------
!
! Name: pshwf2.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/00         MSwam  first version 
!
!--------------------------------------------------------------------
PROCESS_NAME = pushit           ! Short name for process id
TASK = <xpoll -p $PATH_FILE -r pshwf2>
COMMAND  = pushit.pl            ! Name of the command procedure
DESCRIPTION = 'Pushes wf2 observations when no more expected packets'
SYSTEM = OTFR
CLASS = otf 

OSF_RANK        = 1             ! First Trigger
                                
OSF_TRIGGER1.DP      = m        ! OSF status column and
OSF_TRIGGER1.DATA_ID = wf2      !   data id values

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

OSF_NORMAL.DP      = c          ! Normal: Completed
OSF_NORMAL.DE      = w          ! Normal: Waiting for next stage

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

XPOLL_STATE.00 = OSF_NORMAL
XPOLL_STATE.01 = OSF_ERROR

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

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

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

ENV.OUTPATH      = WF2_CAL_DIR        ! root directory for instrument calibration
MINBLOCKS        = 50000          ! enough for several POD files
ENV.DSQUERY      = DSQUERY
ENV.OPUS_DB      = OPUS_DB
