!--------------------------------------------------------------------
!
! Name: movcos.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/01/08 59478  Sherbert   Add COS, WFC3 to OTFR
!--------------------------------------------------------------------

PROCESS_NAME = movcos           ! Short name for process id
TASK = <xpoll -p $PATH_FILE -r movcos>
COMMAND  = podmov.pl            ! Name of the command procedure
DESCRIPTION = 'Moves pod files to pipeline'
SYSTEM = OTFR
CLASS = otf 

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

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

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

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

OSF_TRY_AGAIN.MV   = z          ! Sleep and wait for retriggering

XPOLL_STATE.00 = OSF_NORMAL
XPOLL_STATE.01 = OSF_ERROR
XPOLL_STATE.03 = OSF_TRY_AGAIN

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

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

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

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

ENV.POD_RENAME_DIRECTORY = pod_in_dir      ! podfile input dir for DP
ENV.EDT_RENAME_DIRECTORY = cos_sis_dir     ! data reduction directory for EDT files
ENV.EPC_RENAME_DIRECTORY = cos_cal_dir     ! data reduction directory for EPC files (not used)
ENV.DATA_REDUCTION_PATH  = data_reduction_path  ! pathname 
ENV.EDT_EXT_MASK         = edt_ext_mask    ! file extension mask to pick up EDT files
ENV.OSF_EDT_STATUS       = osf_edt_status  ! value for EDT set OSF status columns
ENV.ARCH_SERVER          = ARCH_SERVER
ENV.ARCH_DB              = ARCH_DB
