!--------------------------------------------------------------------
!
!      wu_wf3 RESOURCE FILE
!
!      This file is used to construct the trigger, error, and success
!      status fields in the observation status file.
!
!      Run Howard Bushhouse's wcs_update.py script after GC in 
!      pipeline for ASN test data (6CN) with support schedule info
!      using a Special Override Keyword rules that was in development
!      for PR 52718 which I feel is unnecessary.
!
!--------------------------------------------------------------------
!                          REVISION HISTORY
!--------------------------------------------------------------------
!          PR
! DATE     NUMBER  User      Description
! -------- ------  --------- -------------------------------------
! 01/10/07 52718   Sherbert  Need WCS for WFC3
! 09/18/12 72255   Sherbert  get rid of DSQUERY
!--------------------------------------------------------------------

PROCESS_NAME = WCS
TASK = <xpoll -p $PATH_FILE -r wu_wf3>
COMMAND = wf3_wcs_update.py 
DESCRIPTION = 'WF3 World Coordinate System FITS file Update'
CLASS = TV
SYSTEM = OPUS

INSTRUMENT           = WF3 ! 3-character instrument name
OSF_RANK             = 1   ! First Trigger
OSF_TRIGGER1.WU      = w   ! Need a 'Wait' flag in WC column
OSF_TRIGGER1.DATA_ID = wf3 ! Also need the Data_id set
OSF_PROCESSING.WU    = p   ! Set the processing flag to 'Processing'

XPOLL_STATE.00       = WCS_OK
WCS_OK.WU            = c   ! Normal: Completed World Coordinate System
WCS_OK.RF            = w

XPOLL_STATE.01       = WCS_ERROR
WCS_ERROR.WU         = e   ! Error:  Set the trouble flag

! Both MAX_ERROR and XPOLL_ERROR_COUNT here in hopes that one
! or the other of them will stop the processing before too many
! observations go to error
MAX_ERROR            = 1   ! Decrease number of failures before absent
XPOLL_ERROR_COUNT    = 1   ! Go ABSENT right away, please
XPOLL_ERROR.WU       = u   ! For unknow exit stati

! I need INPATH to be an ENV var so script can get at it

ENV.INPATH           = WF3_CAL_DIR ! Directory where the input files are found

! forces values from path file to be used

ENV.OPUS_DB = OPUS_DB
ENV.OPUS_SERVER = OPUS_SERVER
ENV.SPSS_DB = SPSS_DB
ENV.SPSS_SERVER = SPSS_SERVER
