!-------------------------------------------------------------------------------
!
!  DV_WF3   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
! -------- ----- ---------- ----------------------------------------------------
! 05/28/02 45150 Rose       Initial version for WFC3
! 06/24/04 51412 Sherbert   For PR 50437 Remove DISPLAY_ORDER
! 02/01/07 56870 Sherbert   based on dv_wf3tv but with more normal triggerings
! 05/30/08 59548  Sherbert  Make WF3 dumps like other SIs
! 12/20/10 38534 MSwam      Add DO_PMDB_PDB_COMPARISON and change TASK name
!
!-------------------------------------------------------------------------------

PROCESS_NAME = dv_wf3       ! Short name for process id
TASK = <dv_wfc3 -p $PATH_FILE -r dv_wf3>
CLASS = WF3
DESCRIPTION = 'WF3 Data Evaluation'
SYSTEM = OPUS
INSTRUMENT  = WF3
INST_CODE   = I
OK_TO_UPDATE_DATABASE = OK_TO_UPDATE_DATABASE   ! Determined by PATH
INTERNAL_POLLING_PROCESS  =  TRUE   

OSF_RANK = 1                ! First Trigger
OSF_TRIGGER1.DV = w         ! Need a 'Wait' flag in Data Validation
OSF_TRIGGER1.DATA_ID = wf3  ! Also need the Data_id 
OSF_TRIGGER2.DV = w         ! OR Need a 'Wait' flag in Data Validation
OSF_TRIGGER2.DATA_ID = wdm  ! and need the Data_id set to WF3 Dump

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

OSF_NORMAL.DV = c           ! Normal: Completed Data Validation
OSF_NORMAL.WC = w           ! Normal: Copy the aux files

OSF_DUMP.DV   = c           ! Dump data: Completed Data Validation
OSF_DUMP.WC   = n           ! Dump data: Don't do WCS
OSF_DUMP.DC   = n           ! Dump data: skip data collector
OSF_DUMP.GC   = w           ! Dump data: Produce FITS files

OSF_ERROR.DV  = e           ! Error:  Set the trouble flag
OSF_HALT1.DV  = h           ! Set the Halt flag

POLLING_TIME  = 10          ! Wait (seconds) before polling for next 
INPATH        = WF3_SIS_DIR ! Directory where the input files are found
OUTPATH       = WF3_SIS_DIR ! Output directory for the WF3
MINBLOCKS     = 50000       ! blocks required on output disk
EXTENSION     = .ulx        ! This input file extension must exist
DO_PMDB_PDB_COMPARISON = TRUE  ! MUST be TRUE for both WFC3 pre-archive AND 
                               ! OTFR since part of the check is to adjust for
                               ! missing IR readouts

! forces values from path to be used

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