!--------------------------------------------------------------------
!
! Name: movwf2.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
! -------- ------  ------ -------------------------------------
! 04/03/00         MSwam  first version 
! 03/12/01 43165_05 MSwam move indirection to path
! 11/15/04 50663   MSwam  add EPC_RENAME_DIRECTORY (not currently used for WF2)
!
!--------------------------------------------------------------------
PROCESS_NAME = movwf2           ! Short name for process id
TASK = <xpoll -p $PATH_FILE -r movwf2>
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 = wf2      ! 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      = wf2_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 = wf2_sis_dir ! data reduction directory for EDT files
ENV.EPC_RENAME_DIRECTORY = wf2_cal_dir ! data reduction directory for EPC files
ENV.DATA_REDUCTION_PATH  = data_reduction_path ! name of data reduction path
ENV.EDT_EXT_MASK         = edt_ext_mask    ! file extension mask to pick up EDT files
ENV.OSF_DATA_TYPE        = wf2             ! value for EDT set OSF "data id" field
ENV.OSF_EDT_STATUS     = osf_edt_status ! value for EDT set OSF status columns
ENV.ARCH_SERVER      = ARCH_SERVER
ENV.ARCH_DB          = ARCH_DB
