!--------------------------------------------------------------------
!
!  fgsast RESOURCE FILE
!
!
!      This file is used to construct the trigger, error, and success status
!      fields in the observation status file for the OMSAST process.
!
!
!--------------------------------------------------------------------
!                          REVISION HISTORY
!--------------------------------------------------------------------
!            PR
!   DATE   NUMBER  User      Description
! -------- ------  --------- -------------------------------------
! 10/24/01 44684   Goldst    Created initial version
! 01/30/02 45016   Goldst    Corrected OK_TO_UPDATE_DATABASE
! 03/11/02 45016   Goldst    Added OSF_TRIGGER1.DATA_ID
! 07/18/02 43963   jschultz  corrected 'INPATH' and 'OUTPATH mnemonics
!                            and deleted the 'PDBPATH' mnemonic
! 06/24/04 51412   Sherbert  For PR 50437 Remove DISPLAY_ORDER
! 11/11/08 55769   MSwam     Add ARCH_SERVER,ARCH_DB for pdq quality reads
! 09/18/12 72255  Sherbert   get rid of DSQUERY
!--------------------------------------------------------------------

PROCESS_NAME = fgsast
TASK         = <fgsast -p $PATH_FILE -r fgsast>
DESCRIPTION  = 'Generate astrometry products'
SYSTEM       = AST
CLASS        = ast

OK_TO_UPDATE_DATABASE = OK_TO_UPDATE_DATABASE ! Determined by path file

INTERNAL_POLLING_PROCESS  =  TRUE

OSF_RANK = 1		    ! First Trigger

OSF_TRIGGER1.FA      = w    ! Need a 'wait' flag for astrometry
OSF_TRIGGER1.DATA_ID = ast  ! Trigger class ID
OSF_PROCESSING.FA    = p    ! Set the processing flag to 'Processing'
OSF_COMPLETE.FA      = c    ! Complete: completed astrometry products 
OSF_FAILURE.FA       = f    ! Error:  set the trouble flag    
OSF_COMPLETE.RQ      = w    ! Complete: trigger next step

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)


MINBLOCKS     = 50000		! blocks required on output disk

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

ENV.INPATH  = AST_RAW_DIR       ! Directory of input files
ENV.OUTPATH = AST_OUTPUT_DIR    ! Directory of output files
ENV.OPUS_DB = OPUS_DB
ENV.SPSS_DB = SPSS_DB
ENV.ARCH_DB = ARCH_DB
ENV.OPUS_SERVER = OPUS_SERVER
ENV.SPSS_SERVER = SPSS_SERVER
ENV.ARCH_SERVER = ARCH_SERVER
