!-------------------------------------------------------------------------------
!
!      DP_ACS (DP_NEW) 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
! -------- ------ ---------- ----------------------------------------------------
! 06/04/96 28178  Rose       Created 
! 12/16/96 22049  Rose       Archive the POD files
! 05/29/97 33423  MSwam      Add OUTPATH for use with MINBLOCKS
! 01/16/98 35562  WMiller    Add OSF_NO_ARCH for podfile OSFs
! 01/29/99 38315  Rose       For the ACS
! 09/16/99 39545  Rose       Unix wildcard char is ?
! 01/14/00 39307  Heller     Use POD_ARCH_DIR in the path file
! 04/11/00 39897  MSwam      Add PODNAMES_CHECK,POD_OSF_CHECK
! 06/19/00 39897  MSwam      Add POD_DUPLICATE
! 07/13/00 41770  WMiller    Add FILE_DUPLICATE
! 01/31/01 43165  MSwam      Add POD_OSF_CHECK path retrieval
! 09/10/01 44145  Rose       Control SHP processing in resource file
! 01/14/02 44949  Slowinski  Allow processing of real time pods
! 04/12/02 45519  Rose       Save the SHX file information
! 06/17/02 45261  Slowinski  Make the podnames check path dependent
! 05/20/04 51278  Sherbert   Increase MINBLOCKS to 200 million blocks (100 GB)
! 06/24/04 51412  Sherbert   For PR 50437 Remove DISPLAY_ORDER
! 08/03/04 51692  J.Baum     Change OSF_ARCHIVE to set IN stage
! 02/22/06 54699  MSwam      Parameterize to for tufnel,smalls,sthubbins
! 07/19/06 52625  Sherbert   Remove extraneous FILE_RANK entries
! 08/28/08 59821  MSwam      Add OSCOPE program id list for special DP handling
! 01/19/10 63106  Ellis      Renamed dp_acs to dp for change in 2009.3b
! 02/02/12 70051  RDavis     Remove oscope lines and trigger FT
! 09/18/12 72255  Sherbert   get rid of DSQUERY
! 12/18/12 71304  Sherbert   archive EDT and clean up
!-------------------------------------------------------------------------------

PROCESS_NAME = DP_ACS    ! Short name for process id
TASK = <dp -p $PATH_FILE -r dp_acs>
CLASS = acs
DESCRIPTION = 'ACS data partitioning.'
SYSTEM = OPUS
OK_TO_UPDATE_DATABASE = BLANK   ! Determined by PATH

FILE_RANK       = 1             ! File Triggers
FILE_DIRECTORY  = POD_IN_DIR    ! Where the POD files start
FILE_OBJECT     = ??_bd*.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
FILE_SHUTDOWN   = AA_bd_QUIT

ALLOW_OSF_SHOVE = TRUE         ! default but I suspect all support "shoving" an OSF past DP
OSF_RANK        = 2             ! OSF Trigger
OSF_TRIGGER1.DP = s             ! Incomplete observation being shoved through
OSF_TRIGGER1.DATA_ID = acs      ! Only shove acs with this process

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

OSF_NORMAL.DP = c               ! Normal: Completed Generic Conversion
OSF_NORMAL.DE = w               ! Normal: Document (archive) EDT set 

OSF_DUMPS.DP  = c               ! Dumps:  Completed Generic Conversion
OSF_DUMPS.DE  = n               ! Dumps:  No EDT archiving
OSF_DUMPS.SS  = n               ! Dumps:  No Support Schedules required
OSF_DUMPS.DV  = w               ! Dumps:  Parse the IntHdr into keywords

OSF_ARCHIVE.DP = c              ! Data Partitioning complete
OSF_ARCHIVE.FT = w              ! Have pod files move on to Fastrak (SMOV3B)
OSF_ARCHIVE.IN = l              ! Archive POD file; Trigger the set_lock task first

OSF_NO_ARCH.DP = c              ! Don't archive the POD file
OSF_NO_ARCH.CL = w              ! Clean off when done

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

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

POLLING_TIME  = 10              ! Wait (seconds) before polling for next 
INPATH        = POD_IN_DIR      ! Directory where the input files are found
OUTPATH       = ACS_SIS_DIR     ! Directory where EDT set is written
POD_ARCH_DIR  = POD_ARCH_DIR    ! Where the POD files are archived from
MINBLOCKS     = big_MINBLOCKS   ! blocks required on output disk
                                ! only one minblocks device can be specified,
                                !    assume NICMOS (50% chance)
SAVE_SHP      = TRUE            ! 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

ACS_OSCOPE_PROGRAMS = ACS_OSCOPE_PROGRAMS ! comma-sep list of ACS
                                          ! program ids for the 
                                          ! SMOV oscilloscope programs

! Thinking the following is not used
!EXTENSION     = .POD            ! This input file extension must exist

OSF_MEMBER_DAG     = ACS_MEMBER
OSF_SINGLE_DAG     = ACS_SINGLE
OSF_DOFILL_DAG     = NONE
EXP_MEMDUMP_DAG    = ACS_MEMDUMP
OSF_ARCHIVE_DAG    = JUST_INGEST
EDT_ARCHIVE_DAG    = JUST_INGEST
INGEST_PATH        = INGEST_PATH

! forces values from path to be used (unless overridden in opus_login?)

ENV.OPUS_DB = OPUS_DB
ENV.SPSS_DB = SPSS_DB
ENV.OPUS_SERVER = OPUS_SERVER
ENV.SPSS_SERVER = SPSS_SERVER

