!--------------------------------------------------------------------
!
! Name: wakwf2.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 
!       06/20/01 44084   MSwam  add file copy error status
!
!--------------------------------------------------------------------
PROCESS_NAME = wakwf2           ! Short name for process id
TASK = <xpoll -p $PATH_FILE -r wakwf2>
COMMAND  = no_whk.pl            ! Name of the command procedure
DESCRIPTION = 'Creates one pod file per exposure'
SYSTEM = OTFR
CLASS = otf 

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

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

OSF_NORMAL.WK      = c          ! Normal: Completed
OSF_NORMAL.RV      = w          ! Normal: Waiting for next stage

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

OSF_COPY_ERROR.WK  = o          ! Error: File copy failed

XPOLL_STATE.00 = OSF_NORMAL
XPOLL_STATE.01 = OSF_ERROR
XPOLL_STATE.05 = OSF_COPY_ERROR

XPOLL_ERROR_COUNT = 999         ! only exit after many errors

XPOLL_ERROR.WK = 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
