!--------------------------------------------------------------------
!
!      GC_WF3 RESOURCE FILE
!
!
!      This file is used to construct the trigger, error, and success status
!      fields in the observation status file.
!
!
!--------------------------------------------------------------------
!                          REVISION HISTORY
!--------------------------------------------------------------------
!            PR
!   DATE   NUMBER  User      Description
! -------- ------  ------    -------------------------------------
! 02/08/02 45150   Rose      Created 
! 10/23/03 49468   MSwam     Trigger RF next
! 12/18/03 49468   MSwam     Don't perform calibration for now (thervac)
! 06/24/04 51412   Sherbert  For PR 50437 Remove DISPLAY_ORDER
! 04/29/05 52075   MSwam     Use new TASK name, replace OSF_OK with OSF_SUCCESS
! 12/11/06         Sherbert  Override to trigger RF for AUTO
! 08/16/11 69099   MSwam     Add FILLDATA_IS_ERROR
!
!--------------------------------------------------------------------

PROCESS_NAME = GC_WF3        ! Short name for process id
TASK = <gci_wfc3 -p $PATH_FILE -r gc_wf3tv>
CLASS = TV
DESCRIPTION = 'WFC3 Generic Conversion'
SYSTEM = OPUS
INSTRUMENT = WF3
INTERNAL_POLLING_PROCESS  =  TRUE   
OK_TO_UPDATE_DATABASE = BLANK ! Determined by PATH

OSF_RANK = 1                  ! First Trigger
OSF_TRIGGER1.GC = w           ! Need a 'Wait' flag in Generic Conversion
OSF_TRIGGER1.DATA_ID = wf3    ! Also need the Data_id set to WF3
OSF_TRIGGER2.GC = w           ! Need a 'Wait' flag in Generic Conversion
OSF_TRIGGER2.DATA_ID = wdm    ! Also need the Data_id set to WFC3 dump

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

OSF_SUCCESS.GC     = c        ! 
OSF_SUCCESS.WU     = w        ! Override so that CAL can occur in AUTO 

OSF_ARCH.GC        = c        ! No CAL: Completed Generic Conversion
OSF_ARCH.WU        = w        ! No CAL: Completed Generic Conversion

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

POLLING_TIME       = 10       ! Wait (seconds) before polling for next 
LOOKBACK_TIME      = 10       ! Time (days) to look back in WIEPHEMERIS 
                              ! relation from obs start time to find 
                              ! ephemeris data that was in effect during 
                              ! observation (max 6 chars)

KEYWORD_RULE_CLASSES = "WF3,WF3T,W3CT" ! PR 57218 Default values 

INPATH        = WF3_SIS_DIR   ! Directory where the input files are found
OUTPATH       = WF3_CAL_DIR   ! Directory where output files are written
MINBLOCKS     = 50000         ! blocks required on output disk
EXTENSION     = .pkx          ! This input file extension must exist
FILLDATA_IS_ERROR = FALSE     ! Always allow insertion of filldata in TV

ENV.OPUS_DB = OPUS_DB
ENV.SPSS_DB = SPSS_DB
ENV.DSQUERY = DSQUERY
ENV.ARCH_SERVER = ARCH_SERVER
ENV.ARCH_DB = ARCH_DB
