!----------------------------------------------------------------------------
!
!  otfr.path_template
!
!---------------------------------------------------------------------------
! DATE     PR       Author    Description
! -------- -------- --------- -----------------------------------------------
! 01/31/01 43165    MSwam     first version
! 02/26/01 43165_03 MSwam     add dads_tool_dir
! 03/12/01 43165_05 MSwam     better default flush intervals
! 03/12/01 43165_06 MSwam     change local_otfc to local_otfr
! 03/23/01 43165_07 MSwam     use two pod locations
! 03/29/01 43165_10 MSwam     add reservation_path
! 07/10/01 43913_01 MSwam     new direct acquire parms
! 08/20/01 43913_02 MSwam     replace start_status with edt_status
! 10/11/01 44597    MSwam     add stsci_site
! 11/26/01 44598_01 MSwam     parameterize calibration stage name
! 12/03/01 44598    MSwam     add SI-independent directories
! 01/08/02 44965    MSwam     fix hours/days comment
! 01/21/02 44949    MSwam     change cal_stage_name value
! 09/08/03 43915    Sherbert  IDR Changes
! 04/09/04 50429    Golds     Added OPUS_SERVER keyword
! 04/22/04 48726    MSwam     Add db_retry_interval
! 06/25/04 51412    Sherbert  Minor changes for consistency
! 09/08/05 53328    Sherbert  Change opus_science_auto to otfr_science_auto
! 09/15/05 53328    Sherbert  point DADS_response_dir to DADS_request_dir 
! 11/39/05 54824    Sherbert  Reset error_flush_interval to 2.0 days
! 02/22/06 54699    MSwam     Add minblocks
! 12/05/06 57075    MSwam     Add COS,WFC3
! 04/01/08 59478    Sherbert  Add COS, WF3
! 08/12/10 64432    MSwam     add DB_TYPE for SYBASE or MSSQL use
! 09/18/12 72255    Sherbert  get rid of DSQUERY
!
!----------------------------------------------------------------------------
!        **** All Keywords (mnemonics on left) must be ALLCAPS ****
!       ****    Do not change the names of any mnemonics!!!   ****
!       ****           Only change mnemonic values.           ****
!----------------------------------------------------------------------------

STAGE_FILE              = OPUS_DEFINITIONS_DIR:otfr_pipeline.stage 
OPUS_HOME_DIR           = OPUS_HOME_DIR
OPUS_OBSERVATIONS_DIR   = _empty_OBS_ROOT/_empty_PATHMAP[]/
                            ! Obs. Status File
OPUS_TEMP_DIR           = _empty_PATH_BASEDIR/otfr/_empty_PATHMAP[]/tmp/
                            ! Scratch area for intermediate

OK_TO_UPDATE_DATABASE   = FALSE   ! should always be false for OTFR

DB_TYPE                 = _empty_DB_TYPE
                            ! SYBASE or MSSQL
OPUS_SERVER             = _empty_OPUS_SERVER  ! Data base server for OPUS
OPUS_DB                 = _empty_OPUS_DB      ! Data base i.e. opustest2
SPSS_SERVER             = _empty_SPSS_SERVER  ! Data base server for SPSS
SPSS_DB                 = _empty_SPSS_DB      ! Data base i.e. opus_spss2
ASSIST_SERVER           = _empty_ASSIST_SERVER! Data base server for ASSIST
ASSIST_DB               = _empty_ASSIST_DB    ! Data base i.e. assistops
PROP_SERVER             = _empty_PROP_SERVER  ! Data base server for proposals
PROP_DB                 = _empty_PROP_DB      ! Data base i.e. proper_rep
ARCH_SERVER             = _empty_ARCH_SERVER  ! Db server for archive database
ARCH_DB                 = _empty_ARCH_DB      ! Db name for archive database

STSCI_SITE          = TRUE   ! set TRUE when OTFR run at STScI
use_cos_csum        = FALSE  ! set to FALSE for OTFR or any path not needing
                             !   to regenerate the [COS] accumulated sum images
use_stis_csum       = FALSE  ! set to FALSE for OTFR or any path not needing
                             !   to regenerate the [STIS] accumulated sum images

! <root directory for all OTFR processing>
all_recalib         = _empty_PATH_BASEDIR/otfr/_empty_PATHMAP[]/processing/

! <root directories for SI OTFR processing>
wf3_recalib         = _empty_PATH_BASEDIR/otfr/_empty_PATHMAP[]/processing/
wf2_recalib         = _empty_PATH_BASEDIR/otfr/_empty_PATHMAP[]/processing/
stis_recalib        = _empty_PATH_BASEDIR/otfr/_empty_PATHMAP[]/processing/
nic_recalib         = _empty_PATH_BASEDIR/otfr/_empty_PATHMAP[]/processing/
cos_recalib         = _empty_PATH_BASEDIR/otfr/_empty_PATHMAP[]/processing/
acs_recalib         = _empty_PATH_BASEDIR/otfr/_empty_PATHMAP[]/processing/

! <name of the science pipeline path, e.g. otfsci>
data_reduction_path = _empty_PATHMAP[otfr_science_auto] 

! <name of the path for creating reservation OSFs e.g. reserv>
reservation_path    = _empty_PATHMAP[reserve_auto]

! all of these items are linked to science path items
! using path file indirection
! (e.g. otfsci->DUDDCT  or  myscipath->DUDDCN)

! <science path mnemonic for pod input dir, DUDDCT>
pod_in_dir          = _empty_PATHMAP[otfr_science_auto]->POD_IN_DIR

! <science path mnemonic for pod output dir, POD_ARCH_DIR>
pod_out_dir         = _empty_PATHMAP[otfr_science_auto]->POD_ARCH_DIR

! <science path mnemonic link for all EDT dir> 
all_sis_dir         = _empty_PATHMAP[otfr_science_auto]->ALL_SIS_DIR

! <science path mnemonic link for all CAL dir> 
all_cal_dir         = _empty_PATHMAP[otfr_science_auto]->ALL_CAL_DIR

! <science path mnemonic link for ACS EDT dir, DUDDSJ> 
acs_sis_dir         = _empty_PATHMAP[otfr_science_auto]->ACS_SIS_DIR

! <science path mnemonic link for ACS CAL dir, DUDDCJ> 
acs_cal_dir         = _empty_PATHMAP[otfr_science_auto]->ACS_CAL_DIR

! <science path mnemonic link for COS EDT dir> 
cos_sis_dir         = _empty_PATHMAP[otfr_science_auto]->COS_SIS_DIR

! <science path mnemonic link for COS CAL dir> 
cos_cal_dir         = _empty_PATHMAP[otfr_science_auto]->COS_CAL_DIR

USE_REPEATABLE_RANDSEED = FALSE
                              ! FOR OTFR
                              ! perform optimum CALCOS calibration, using
                              ! random number seed

! <science path mnemonic link for NICMOS EDT dir, DUDDSN> 
nic_sis_dir         = _empty_PATHMAP[otfr_science_auto]->NIC_SIS_DIR

! <science path mnemonic link for NICMOS CAL dir, DUDDCN> 
nic_cal_dir         = _empty_PATHMAP[otfr_science_auto]->NIC_CAL_DIR

! <science path mnemonic link for STIS EDT dir, DUDDSO> 
stis_sis_dir        = _empty_PATHMAP[otfr_science_auto]->STI_SIS_DIR

! <science path mnemonic link STIS CAL dir, DUDDCO> 
stis_cal_dir        = _empty_PATHMAP[otfr_science_auto]->STI_CAL_DIR

! <science path mnemonic link WFPC2 EDT dir, DUDDSU> 
wf2_sis_dir         = _empty_PATHMAP[otfr_science_auto]->WF2_SIS_DIR

! <science path mnemonic link WFPC2 CAL dir, DUDDCU> 
wf2_cal_dir         = _empty_PATHMAP[otfr_science_auto]->WF2_CAL_DIR

! <science path mnemonic link WFC3 EDT dir> 
wf3_sis_dir         = _empty_PATHMAP[otfr_science_auto]->WF3_SIS_DIR

! <science path mnemonic link WFC3 CAL dir> 
wf3_cal_dir         = _empty_PATHMAP[otfr_science_auto]->WF3_CAL_DIR

response_file_ext = .rsp         ! OTFC response file extension
request_file_ext  = .req         ! OTFC request file extension before processing
request_work_ext = .req_checking ! OTFC request file extension during processing 
error_notify_interval   = 1.0 ! HOURS error sits until DADS is notified
notify_polling_interval = 60  ! seconds between checks

error_flush_interval   =  2.0 ! DAYS error sits until dataset is flushed
flush_polling_interval =   60 ! seconds between checks
db_retry_interval      = 3600 ! secs between retry of failed Python DB query

max_time_for_otfsci   = 1.5 !DAYS allowed for otfsci processing before timeout

cal_stage_name    = AC      !name of stage to check for successful calibration
wf2_cal_file_ext  = .c??    !filespec for calibration products

!filespec for calibration products
stis_cal_file_ext = _[c,f,x,s][r,l,1,2,x]?.fits 

edt_ext_mask =  '.???' ! file extension mask for finding EDT files for a dataset
osf_edt_status = cnw   ! OSF status values for data reduction when EDT is used

!! new IDR way
! <OTFR polling dir, eg.: /queue/tufnel/dsb/dads_dev/otf/otfr_poll/>
DADS_request_dir    = _empty_DADS_OTFR_INTERFACE_DIR
DADS_response_dir   = _empty_PATHMAP[otfr_auto]->DADS_request_dir
big_MINBLOCKS        = _empty_big_MINBLOCKS
really_big_MINBLOCKS = _empty_really_big_MINBLOCKS
