!----------------------------------------------------------------------------
!
!  otfr.path_template
!
!----------------------------------------------------------------------------
!  Date     Number   Author    Reason
!---------------------------------------------------------------------------
! 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
! 11/39/05  54824    Sherbert  Reset error_flush_interval to 2.0 days
! 02/22/06  54699    MSwam     Add minblocks
! 04/01/08  59478    Sherbert  Add COS, WF3
! 07/25/08  60382    Hamilton  Added multiple instrument repro kewords
! 08/12/10  64432    MSwam     add DB_TYPE for SYBASE or MSSQL use
!
!----------------------------------------------------------------------------
!        **** 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_OBSERVATIONS_DIR   = ! <location of observation status files>
OPUS_TEMP_DIR           = ! <location to use for temporary storage>
OPUS_HOME_DIR           = ! <location of process status/log files>
!
DB_TYPE                 = SYBASE ! or MSSQL
OK_TO_UPDATE_DATABASE   = FALSE   ! should always be false for OTFR
ARCH_SERVER             = CATLOG  ! server where DADS database resides
ARCH_DB                 = dadsops ! the DADS catalog
DSQUERY                 = CATLOG  ! server where the OPUS database resides
OPUS_SERVER             = CATLOG  ! Data base server for OPUS
OPUS_DB                 = opus    ! the OPUS database
SPSS_DB                 = opus_spss_rep ! the SPSS read-only 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
all_recalib         = ! <root directory for all OTFR processing>
wf3_recalib         = ! <root directory for WFC3 OTFR processing>
wf2_recalib         = ! <root directory for WF2 OTFR processing>
stis_recalib        = ! <root directory for STIS OTFR processing>
nic_recalib         = ! <root directory for NICMOS OTFR processing>
cos_recalib         = ! <root directory for ACS OTFR processing>
acs_recalib         = ! <root directory for ACS OTFR processing>
!
data_reduction_path = ! <name of the science pipeline path, e.g. otfsci>
reservation_path    = ! <name of the path for creating reservation OSFs e.g. reserv>
!
! reprocessing keywords
!
reprocessing_ingest_path = ! <name of reprocessing science path, e.g. skipper>
reprocessing_account =     ! <name of reprocessing DADS user account, e.g. stisrepro>
wf2_repro_ing_dir =        ! <repro ingest dir for WF2, e.g. skipper->WF2_CAL_DIR>
nic_repro_ing_dir =        ! <repro ingest dir for NIC, e.g. skipper->NIC_CAL_DIR>
sti_repro_ing_dir =        ! <repro ingest dir for STI, e.g. skipper->STI_CAL_DIR>
acs_repro_ing_dir =        ! <repro ingest dir for ACS, e.g. skipper->ACS_CAL_DIR>
cos_repro_ing_dir =        ! <repro ingest dir for COS, e.g. skipper->COS_CAL_DIR>
wf3_repro_ing_dir =        ! <repro ingest dir for WF3, e.g. skipper->WF3_CAL_DIR>
!
! all of these items are linked to science path items
! using path file indirection
! (e.g. otfsci->DUDDCT  or  myscipath->DUDDCN)
pod_in_dir          = ! <science path mnemonic for pod input dir, DUDDCT>
pod_out_dir         = ! <science path mnemonic for pod output dir, POD_ARCH_DIR>
all_sis_dir         = ! <science path mnemonic link for all EDT dir> 
all_cal_dir         = ! <science path mnemonic link for all CAL dir> 
acs_sis_dir         = ! <science path mnemonic link for ACS EDT dir, DUDDSJ> 
acs_cal_dir         = ! <science path mnemonic link for ACS CAL dir, DUDDCJ> 
cos_sis_dir         = ! <science path mnemonic link for COS EDT dir>
cos_cal_dir         = ! <science path mnemonic link for COS CAL dir>
nic_sis_dir         = ! <science path mnemonic link for NICMOS EDT dir, DUDDSN> 
nic_cal_dir         = ! <science path mnemonic link for NICMOS CAL dir, DUDDCN> 
stis_sis_dir        = ! <science path mnemonic link for STIS EDT dir, DUDDSO> 
stis_cal_dir        = ! <science path mnemonic link STIS CAL dir, DUDDCO> 
wf2_sis_dir         = ! <science path mnemonic link WFPC2 EDT dir, DUDDSU> 
wf2_cal_dir         = ! <science path mnemonic link WFPC2 CAL dir, DUDDCU> 
wf3_sis_dir         = ! <science path mnemonic link WFC3 EDT dir>
wf3_cal_dir         = ! <science path mnemonic link WFC3 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
stis_cal_file_ext = _[c,f,x,s][r,l,1,2,x]?.fits !filespec for calibration products
!
edt_ext_mask =  '.???'   ! file extension mask for finding EDT files for a dataset
osf_edt_status = cnw     ! OSF status column values for data reduction when EDT is used
!
!! new IDR way
DADS_request_dir    = ! <OTFR polling dir, eg.: /queue/tufnel/dsb/dads_dev/otf/otfr_poll/>
DADS_response_dir   = idrdev->DADS_request_dir
big_MINBLOCKS        = 200000000
really_big_MINBLOCKS = 300000000
