!--------------------------------------------------------------------
!
!  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
! 02/13/07 56870   Sherbert  Non-tv pipeline-triggerings
! 02/13/07 49671   Sherbert  re-establish Hamilton's FT change 
! 02/19/08 58278   Sherbert  Remove wdm triggering
! 08/17/11 69099   MSwam     Add FILLDATA_IS_ERROR entry
! 09/18/12 72255   Sherbert  get rid of DSQUERY
!
!--------------------------------------------------------------------

PROCESS_NAME = GC_WF3           ! Short name for process id
TASK = <gci_wfc3 -p $PATH_FILE -r gc_wf3>
CLASS = WF3
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_PROCESSING.GC  = p          ! Set the processing flag to 'Processing'

OSF_ARCH.GC        = c          ! No CAL: Completed Generic Conversion
OSF_ARCH.RF        = n          ! No CAL: Skip ref file selection
OSF_ARCH.BC        = n          ! No CAL: Skip before calibration
OSF_ARCH.CA        = n          ! No CAL: Do not wait for calibration
OSF_ARCH.AC        = n          ! No CAL: Skip after calibration
OSF_ARCH.FT        = n          ! No CAL: Skip holding tank copy
OSF_ARCH.RQ        = w          ! No CAL: Wait for archive request generation

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

OSF_SUCCESS.GC     = c          ! 
OSF_SUCCESS.RF     = w          ! Trigger ref files

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,W3C" ! 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          = 1000000     ! blocks required on output disk
EXTENSION          = .pkx        ! This input file extension must exist
FILLDATA_IS_ERROR  = filldata_is_error  ! Use .path entry to decide if
                                        ! exposure w/filldata warrants error
COORD_FRAME        = UNUSED

ENV.OPUS_SERVER = OPUS_SERVER
ENV.OPUS_DB = OPUS_DB
ENV.SPSS_SERVER = SPSS_SERVER
ENV.SPSS_DB = SPSS_DB
ENV.ARCH_SERVER = ARCH_SERVER
ENV.ARCH_DB = ARCH_DB
