!----------------------------------------------------------------------------
!
!  otfr_science.path_template
!
!----------------------------------------------------------------------------
! DATE     PR       Author    Description
! -------- -------- --------- -----------------------------------------------
! 06/09/97 33428    MSwam     Create a UNIX version
! 07/24/98 37263    WMiller   Rename file
! 01/14/99 38161    Rose      ACS pipeline examples
! 01/14/00 39307    Heller    Add POD_ARCH_DIR
! 05/10/00 36852    MARose    Add SPSS_DB
! 06/14/00 41693    Sherbert  Add DUDDPR, DUDDPQ
! 08/24/00 41932    WMiller   Add HT items
! 01/26/01 43165    MSwam     Add pod_osf_check
! 02/12/01 42184_02 MSwam     Add ARCH_SERVER,ARCH_DB
! 03/19/01 43165_06 MSwam     Add otfr_world
! 12/03/01 44598    MSwam     Add ALL_SIS_DIR,ALL_CAL_DIR for OTFR
! 12/11/01 43960    J.Baum    Add FGS_PATH defaulted to NULL
! 01/23/02 44710    Sherbert  Add TANK_TYPE and NIC_HOLDING_TANK
! 03/14/02 45319    Sherbert  Introduce DIA_ARCH_DIR
! 06/17/02 45261    Slowinski Make the podnames check path dependent
! 11/15/02 46981    MSwam     Add CDBS and bestref items
! 04/17/03 45179    Heller    *.ok_to_update_database deleted
! 10/08/03 49496    MSwam     Replace otfr_world with recollect_ok,create_asn_osf
!                             update_exposure_times, and update_asn_product_status
! 10/21/03 49496.1  MSwam     Added *.ok_to_update_database back in
! 11/21/03 45981    MSwam     Add SAVE_INSERT_HISTORY,PARALLEL_*
! 03/26/04 50429    Goldst    Update to support Unix ingest
! 04/05/04 50429    Sherbert  Update for ingest changes and cleanup
! 04/07/04 50429    Sherbert  Set SAVE_INSERT_HISTORY = FALSE forevermore
! 04/09/04 50429    Goldst    Added OPUS_SERVER
! 04/21/04 50823    MSwam     Remove SAVE_INSERT_HISTORY
! 04/22/04 48726    MSwam     Add db_retry_interval
! 06/25/04 51412    Sherbert  Minor changes for consistency
! 07/08/04 51342    Baum      Remove INGEST_TABLE_FILTER
! 08/03/04 51692    Baum      Add CATALOG_LOCK_DIR
! 12/17/04 49854    MSwam     Change comment for build_wf2_asn parm
! 03/23/05 51433    MSwam     Change name from fullmaster to reference_file_defs
! 05/19/05 53328    MSwam     Create otfr version from opus_science
! 09/08/05 53328    Sherbert  Change opus_science_auto to otfr_science_auto
!                             Comment out entries not needed for OTFR
! 09/24/05 53328    Sherbert  Really want *_[CAL|SIS]_DIR to be same
! 11/30/05 54824    Sherbert  Change opus subdir to otfr
! 02/22/06 54699    MSwam     Add minblocks
! 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
! 01/27/11 66490    MSwam     add COS_SUM_DIR, COS_CCI_DIR
! 03/15/11 67669    Sherbert  get rid of commented out lines
! 08/16/11 69099    MSwam     add filldata_is_error
!
!----------------------------------------------------------------------------

!----------------------------------------------------------------------------
!
! 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:otfr_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/otfr/_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   = FALSE  ! Database update flag (default is FALSE)
! *.OK_TO_UPDATE_DATABASE = FALSE

! 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            = TRUE   ! set to TRUE for science path used with OTFR
create_asn_osf          = FALSE  ! set to FALSE for science path used with OTFR
update_asn_product_status = FALSE ! set to FALSE for science path used with OTFR
update_exposure_times   = FALSE  ! 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 not needing
                                 ! to generate 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
filldata_is_error       = FALSE  ! for OTFR processing, GC will ignore
                                 ! insertion of filldata and continue
db_retry_interval       = 3600   ! secs between retry of failed Python DB query
!
DB_TYPE                 = _empty_DB_TYPE
                            ! SYBASE or MSSQL
DSQUERY                 = _empty_DSQUERY      ! Db server name i.e. ROBBIE
OPUS_SERVER             = _empty_OPUS_SERVER  ! Data base server for OPUS
OPUS_DB                 = _empty_OPUS_DB      ! Data base i.e. opustest2
SPSS_DB                 = _empty_SPSS_DB      ! Data base i.e. opus_spss2
ASSIST_DB               = _empty_ASSIST_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/otfr/_empty_PATHMAP[]/dat/dct/ 

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

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

! ACS SIS and CAL directories
ACS_SIS_DIR             = _empty_PATHMAP[otfr_science_auto]->ALL_SIS_DIR
ACS_CAL_DIR             = _empty_PATHMAP[otfr_science_auto]->ALL_CAL_DIR

! COS SIS and CAL directories
COS_SIS_DIR             = _empty_PATHMAP[otfr_science_auto]->ALL_SIS_DIR
COS_CAL_DIR             = _empty_PATHMAP[otfr_science_auto]->ALL_CAL_DIR
COS_SUM_DIR             = _empty_PATH_BASEDIR/otfr/_empty_PATHMAP[]/accum/cos/
COS_CCI_DIR             = _empty_PATH_BASEDIR/otfr/_empty_PATHMAP[]/cci/cos/

! NICMOS SIS and CAL directories
NIC_SIS_DIR             = _empty_PATHMAP[otfr_science_auto]->ALL_SIS_DIR
NIC_CAL_DIR             = _empty_PATHMAP[otfr_science_auto]->ALL_CAL_DIR

! STIS SIS and CAL directories
STI_SIS_DIR             = _empty_PATHMAP[otfr_science_auto]->ALL_SIS_DIR
STI_CAL_DIR             = _empty_PATHMAP[otfr_science_auto]->ALL_CAL_DIR

! WF2 SIS and CAL directories 
WF2_SIS_DIR             = _empty_PATHMAP[otfr_science_auto]->ALL_SIS_DIR
WF2_CAL_DIR             = _empty_PATHMAP[otfr_science_auto]->ALL_CAL_DIR

! WF3 SIS and CAL directories 
WF3_SIS_DIR             = _empty_PATHMAP[otfr_science_auto]->ALL_SIS_DIR
WF3_CAL_DIR             = _empty_PATHMAP[otfr_science_auto]->ALL_CAL_DIR

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

big_MINBLOCKS        = _empty_big_MINBLOCKS
really_big_MINBLOCKS = _empty_really_big_MINBLOCKS
