!--------------------------------------------------------------------
!
! Name: mrgcos.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  User  Description
! -------- ------  ------ -------------------------------------
! 08/05/09 63275   MSwam  first version 
!
!--------------------------------------------------------------------
PROCESS_NAME = mrgcos           ! Short name for process id
TASK = <xpoll -p $PATH_FILE -r mrgcos>
COMMAND  = merge_split.pl            ! Name of the command procedure
DESCRIPTION = 'Merges q-s split observations'
SYSTEM = OTFR
CLASS = otf 

OSF_RANK        = 1             ! First Trigger
                                
OSF_TRIGGER1.DP      = q        ! OSF status column and
OSF_TRIGGER1.DATA_ID = cos      ! OSF data_id field

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

OSF_NORMAL.DP      = c          ! This is actually done on top of the OSF
                                ! adjustments made by the merging process.
                                ! The merging process takes care of pushing
                                ! the OSF down the pipe, or deleting it.

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

XPOLL_STATE.00 = OSF_NORMAL
XPOLL_STATE.01 = OSF_ERROR

XPOLL_ERROR_COUNT = 5000        ! the error count is set high since 
                                ! triggering of a q/s split will 
                                ! result in an error if the
                                ! triggering OSF was for the exposure
                                ! that is NOT sent down the pipeline,
                                ! but is instead deleted.

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

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

ENV.OUTPATH      = OPUS_TEMP_DIR ! directory for combining split observations
MINBLOCKS        = 50000         ! minimum free blocks required in OUTPATH

ENV.SIS_DIR       = COS_SIS_DIR        ! directory holding EDT files
ENV.OPUS_TEMP_DIR = OPUS_TEMP_DIR ! temporary work area
ENV.RESOURCE_FILE = dp_cos        ! resource file for obtaining triggering info
ENV.RESOURCE_ITEM = OSF_NORMAL    ! resource item providing triggering info
