!----------------------------------------------------------------------------
!
! repro_science_auto.path_template
!
!----------------------------------------------------------------------------
! DATE     PR       Author    Description
! -------- -------- --------- -----------------------------------------------
! 05/08/05 55509    Sherbert  New, based on ql_rt_science_auto.path_template
! 05/08/06 55509    Sherbert  Remove inconsistencies with path defaults
! 12/05/06 57075    MSwam     Add COS,WFC3
! 02/23/09 61512    Sherbert  Add use_csum for [COS] accumulated images
! 04/27/10 49175    MSwam     replace CDBS_SERVER,DB with REFFILE
! 08/12/10 64432    MSwam     add DB_TYPE for SYBASE or MSSQL use
! 09/18/12 72255    Sherbert  get rid of DSQUERY
! 12/12/12 71304    Sherbert  Add ARCHIVE_EDT_SET boolean
! 02/28/13 73683    MSwam     Add INGEST_PATH for OWL
!
!----------------------------------------------------------------------------
!
! When modifying this file, the user should change only things in double
! quotes "".  Text after "!" are optional comments.
!
!       **** All Keywords (mnemonics on left) must be ALLCAPS ****
!       ****    Do not change the names of any mnemonics!!!   ****
!       ****           Only change mnemonic values.           ****
!
!----------------------------------------------------------------------------
!
! eg: OPUS_OBSERVATIONS_DIR = /home/mswam/bb/  !directory MUST end with slash
! pipeline directories might be specified as /data3/thoros/sis/acs/
!
!----------------------------------------------------------------------------
! DO NOT CHANGE THE DEFINITIONS OF THE FOLLOWING MNEMONICS, BUT VERIFY
! THESE DIRECTORIES EXIST IN YOUR RUN-TIME ENVIRONMENT.
!----------------------------------------------------------------------------
! filespec for defining pipeline stages
STAGE_FILE              = OPUS_DEFINITIONS_DIR:opus_science_pipeline.stage 

! Process Status Files, process logs, and misc tempory files.
OPUS_HOME_DIR           = OPUS_HOME_DIR               

OPUS_OBSERVATIONS_DIR   = _empty_OBS_ROOT/_empty_PATHMAP[]/
OPUS_TEMP_DIR           = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/tmp/

pod_osf_check           = TRUE   ! TRUE if DP checks for an existing OSF
PODNAMES_CHECK          = FALSE  ! test for existing podnames db entries
OK_TO_UPDATE_DATABASE   = TRUE   ! Database update flag (default is FALSE)
*.OK_TO_UPDATE_DATABASE = TRUE 
ARCHIVE_EDT_SET         = FALSE  ! Do not send EDT set to archive/ingest

! Polling time. Determine how reactive a process to an event.
POLLING_TIME            = _empty_POLLING_TIME 

PROC_TYP                = NORMAL ! Processing type (NORMAL, REALTIME, REPRO etc)
recollect_ok            = FALSE  ! set to TRUE for science path used with OTFR
create_asn_osf          = TRUE   ! set to FALSE for science path used with OTFR
update_asn_product_status = TRUE ! set to FALSE for science path used with OTFR
update_exposure_times   = TRUE   ! set to FALSE for science path used with OTFR
build_wf2_asn           = FALSE  ! leave alone now that wf2 asn is built in OTFR
                                 !   and not OTFR science path
use_cos_csum            = FALSE  ! set to FALSE for OTFR or any path that does not need
use_stis_csum           = FALSE  ! set to FALSE for OTFR or any path that does not need
                                 !   to regenerate the [COS] accumulated sum images
db_retry_interval       = 3600   ! secs between retry of failed Python DB query
!
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 i.e. assistops
ASSIST_DB               = _empty_ASSIST_DB    ! Data base i.e. assistops
PROP_SERVER             = _empty_PROP_SERVER  ! Data base i.e. assistops
PROP_DB                 = _empty_PROP_DB      ! Data base i.e. assistops
ARCH_SERVER             = _empty_ARCH_SERVER  ! Db server for archive database
ARCH_DB                 = _empty_ARCH_DB      ! Db name for archive database
REFFILE_SERVER          = _empty_REFFILE_SERVER  ! Db server name for reffile database
REFFILE_DB              = _empty_REFFILE_DB      ! Data base name for reffile database
KW_SERVER               = _empty_KW_SERVER    ! Dbserver name for keyword db
KW_DB                   = _empty_KW_DB        ! Data base name for keyword db

! file containing reference file selection rules
REF_SELECT_FILE         = OPUS_DEFINITIONS_DIR:reference_file_defs.xml

! Directory where the input files are found
POD_IN_DIR              = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/dat/dct/ 

! Where POD files are archived from
POD_ARCH_DIR            = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/dat/anc/  

! ! Where ANC files are archived from
! ANC_ARCH_DIR            = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/dat/anc/  
! 
! ! Where DIA files are archived from
! DIA_ARCH_DIR            = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/sis/dia/  
! 
! ! Where EDT sets are archived from (arcins)
! EDT_ARCH_DIR            = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/dat/edt/  

! DMP data (SIS directory)
DMP_SIS_DIR             = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/sis/dmp/ 

! generic SIS and CAL directories
ALL_SIS_DIR             = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/sis/  
ALL_CAL_DIR             = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/cal/

! ACS SIS and CAL directories
ACS_SIS_DIR             = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/sis/acs/ 
ACS_CAL_DIR             = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/cal/acs/

! COS SIS and CAL directories
COS_SIS_DIR             = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/sis/cos/ 
COS_CAL_DIR             = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/cal/cos/
USE_REPEATABLE_RANDSEED = FALSE
                              ! FOR REPRO
                              ! perform optimum CALCOS calibration, using
                              ! random number seed

! NICMOS SIS and CAL directories
NIC_SIS_DIR             = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/sis/nic/ 
NIC_CAL_DIR             = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/cal/nic/

! STIS SIS and CAL directories
STI_SIS_DIR             = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/sis/stis/ 
STI_CAL_DIR             = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/cal/stis/

! mama directory / oma and gma output 
MAMA_DIR                = _empty_PATHMAP[opus_science_auto]->MAMA_DIR

! WF2 SIS and CAL directories 
WF2_SIS_DIR             = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/sis/wf2/ 
WF2_CAL_DIR             = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/cal/wf2/ 

! WF3 SIS and CAL directories 
WF3_SIS_DIR             = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/sis/wf3/ 
WF3_CAL_DIR             = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/cal/wf3/ 

! Archive dataset log files
LOG_DIR           = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/log_dir/  

! Ingest Pipeline path file name
INGEST_PATH_NAME  = _empty_PATHMAP[reingest_auto].path 
INGEST_PATH       = _empty_PATHMAP[reingest_auto]

INGEST_STAGE_ID1  = MI                          ! Mission stage ID             
INGEST_STAGE_ID2  = RM                          ! Request manager stage ID

! Root directory of <ingest> path
INGEST_PATH_ROOT =  _empty_PATHMAP[reingest_auto]->INGEST_PATH_ROOT  

! Problem science data directory (arcins)
PRB_ARCH_DIR            = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/dat/prb/ 

! NONE or FGS pipeline path name for OSF updates 
FGS_PATH                = NONE         ! probably don't want _empty_PATHMAP[fgs_auto] 

bestref_input_mode      = fits         ! input for computing best ref files
bestref_sqloutfile      = bestref.sql  ! output if input_mode = db

! ! The CATALOG_LOCK_DIR contains lock files created by set_lock, deleted by
! ! free_lock, and checked by hkp_sci. All three processes use this directory.
! CATALOG_LOCK_DIR        = _empty_PATHMAP[]->OPUS_TEMP_DIR
big_MINBLOCKS        = _empty_big_MINBLOCKS
really_big_MINBLOCKS = _empty_really_big_MINBLOCKS
