!-------------------------------------------------------------------------------
!
!      DP_COSTV RESOURCE FILE
!
!
!      This file is used to construct the trigger, error, and success status
!      fields in the observation status file.
!
!
!-------------------------------------------------------------------------------
!                          REVISION HISTORY
!-------------------------------------------------------------------------------
!   DATE     PR  Developer  Description
! -------- ----- ---------- ----------------------------------------------------
! 11/06/01 44435 Rose       Initial version for COS
! 01/14/02 44949 Slowinski  allow for real time pods
! 06/17/02 45261 Slowinski  Make the podnames check path dependent
! 08/14/03 49046 Rose       Process engineering data too.
! 10/01/03 49046 Rose       Add DOFILL
! 05/20/04 51278 Sherbert   Increase MINBLOCKS to 200 million blocks (100 GB)
! 06/24/04 51412 Sherbert   For PR 50437 Remove DISPLAY_ORDER
! 02/22/06 54699 MSwam      Parameterize to for tufnel,smalls,sthubbins
! 07/19/06 52625 Sherbert   Remove extraneous FILE_RANK entries
! 10/05/09 63106 MSwam      Rename executable to dp
!
!-------------------------------------------------------------------------------

PROCESS_NAME = DP_COS           ! Short name for process id
TASK = <dp -p $PATH_FILE -r dp_costv>
CLASS = tv
DESCRIPTION = 'COS data partitioning.'
SYSTEM = OPUS
OK_TO_UPDATE_DATABASE = OK_TO_UPDATE_DATABASE   ! Determined by PATH

FILE_RANK       = 1             ! File Triggers
FILE_DIRECTORY1 = POD_IN_DIR    ! Where the POD files start
FILE_OBJECT1    = ??_9a*.pod    ! File specification for searches
FILE_DIRECTORY2 = POD_IN_DIR    ! Where the POD files start
FILE_OBJECT2    = csil*.sdi     ! File specification for searches
FILE_DIRECTORY3 = POD_IN_DIR    ! Where the POD files start
FILE_OBJECT3    = CSIL*.SDI     ! File specification for searches
FILE_DIRECTORY4 = POD_IN_DIR    ! Where the RT POD files start
FILE_OBJECT4    = CSIL*.EDD     ! File specification for searches
FILE_DIRECTORY5 = POD_IN_DIR    ! Where the RT POD files start
FILE_OBJECT5    = CSIL*.EFS     ! File specification for searches
FILE_DIRECTORY6 = POD_IN_DIR    ! Where the RT POD files start
FILE_OBJECT6    = rt_xxxx*.pod  ! File specification for searches
FILE_PROCESSING = _proc         ! Extension addition during processing
FILE_SUCCESS    = _done         ! Extension addition if normal processing
FILE_ERROR      = _bad          ! Extension addition if error
FILE_DUPLICATE.DANGLE = _duplicate ! Extension addition if duplicate

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

OSF_NORMAL.DP = c      ! Normal: Completed Generic Conversion
OSF_NORMAL.DV = w      ! Normal: Waiting to parse IntHdr

OSF_DUMPS.DP  = c      ! Dumps:  Completed Generic Conversion
OSF_DUMPS.DV  = w      ! Dumps:  Waiting to parse IntHdr

OSF_DOFILL.DP = c               ! Do Fill: Completed Generic Conversion
OSF_DOFILL.DV = w      ! Do Fill: Waiting to parse IntHdr

OSF_ARCHIVE.DP = c     ! Archive the POD file
OSF_ARCHIVE.RQ = w     ! Archive the POD file

OSF_NO_ARCH.DP = c     ! Don't archive the POD file

POD_DUPLICATE.DP = d   ! Create OSF when POD duplicate is found

OSF_FATAL.DP  = f      ! Error:  ingest rules
OSF_ERROR.DP  = e      ! Error:  Set the trouble flag

POLLING_TIME  = 10     ! Wait (seconds) before polling for next 
INPATH        = POD_IN_DIR      ! Directory where the input files are found
POD_ARCH_DIR  = POD_ARCH_DIR    ! Where the POD files are archived from
MINBLOCKS      = big_MINBLOCKS  ! blocks required on output disk
OUTPATH       = COS_SIS_DIR     ! only one minblocks device can be specified,
SAVE_SHP      = FALSE           ! Save the SHP packets in the .shx file

PODNAMES_CHECK = PODNAMES_CHECK ! test for existing podnames db entries
POD_OSF_CHECK  = pod_osf_check  ! test for existing POD file OSF
TV_PIPELINE    = TRUE           ! for Thermal Vac pipeline

! forces values from path to be used

 ENV.OPUS_DB = OPUS_DB
 ENV.SPSS_DB = SPSS_DB
 ENV.DSQUERY = DSQUERY

