!----------------------------------------------------------------------------
!
!      GCOACS RESOURCE FILE
!
!
!      This file is used to construct the trigger, error, and success status
!      fields in the observation status file.  It is intended for use in
!      OTFR science pipelines to skip OMAMA processing.
!
!
!----------------------------------------------------------------------------
!                          REVISION HISTORY
!----------------------------------------------------------------------------
! DATE     PR       Author    Description
! -------- -------- --------- -----------------------------------------------
! 11/13/98 37347    Rose      Created 
! 09/16/99 39546    Rose      use the gc_acs resource file
! 05/10/00 36852    MARose    Add SPSS_DB
! 08/12/00 41932    WMiller   Remove PQ status definition
! 02/12/01 42184_02 MSwam     Add ARCH_SERVER,ARCH_DB
! 12/07/01 40363    Rose      Add the OMAMA/SBC processing
! 03/14/02 45319    Sherbert  Comment out ADM processing
! 10/08/02 46357    Sherbert  Skip OMAMA processing for OTFR
! 01/22/03 47288    Sherbert  Fix -r resource name and triggering
! 11/15/02 46981    MSwam     Add RF stage
! 06/01/03 46368    Sherbert  Add ACS_FW,~_FWS and CDBS dB info
! 08/15/03 43915    Sherbert  Update for above 2 SDNs in OTFR_2 branch
! 06/24/04 51412    Sherbert  For PR 50437 Remove DISPLAY_ORDER
! 04/27/10 49175    MSwam     Use REFFILE instead of CDBS db
! 08/16/11 69099    MSwam     Add FILLDATA_IS_ERROR, remove obsolete ACS_FW vals
! 09/18/12 72255    Sherbert  get rid of DSQUERY
!----------------------------------------------------------------------------

PROCESS_NAME = GC_ACS           ! Short name for process id
TASK = <gc_acs -p $PATH_FILE -r gcoacs>
CLASS = ACS
DESCRIPTION = 'ACS Generic Conversion'
SYSTEM = OTFR
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 = acs      ! Also need the Data_id set to ACS

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

OSF_OK.GC          = c          ! Completed Generic Conversion
OSF_OK.OM          = n          ! Skip OMAMA/SBC processing
OSF_OK.RF          = w          ! Wait for ref file processing

OSF_ARCH.GC        = c          ! No CAL: Completed Generic Conversion
OSF_ARCH.OM        = n          ! No mama processing
OSF_ARCH.RF        = n          ! No ref file processing
OSF_ARCH.BC        = n          ! No CAL: Do not wait for CALACS
OSF_ARCH.CA        = n          ! No CAL:
OSF_ARCH.AC        = n          ! No CAL:

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

OSF_SUCCESS.GC     = c          ! 

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)

INPATH          = ACS_SIS_DIR   ! Directory where the input files are found
OUTPATH         = ACS_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 ! let .path entry determine whether use
                                      ! of FILL data flags exposure with error


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
ENV.REFFILE_SERVER = REFFILE_SERVER
ENV.REFFILE_DB     = REFFILE_DB
