!----------------------------------------------------------------------------
!
!  opus_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
! 02/22/06 54699    MSwam     Add minblocks
! 05/08/06 55509    Sherbert  Remove inconsistencies with path defaults
! 11/13/06 49671    Hamilton  Added FASTRAK_EMAIL and FT_prompt
! 02/14/08 58678    Hamilton  Added MAIL_SERVER
! 09/04/08 59821    MSwam     Added ACS_OSCOPE_PROGRAMS
! 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
! 10/04/10 61157    MSwam     add COS_CCI_DIR
! 08/16/11 69099    MSwam     add filldata_is_error
! 09/18/12 72255    Sherbert  get rid of DSQUERY
! 12/12/12 71304    Sherbert  Add ARCHIVE_EDT_SET boolean, EDT_ARCH_DIR
!
!----------------------------------------------------------------------------
!
! 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.
!----------------------------------------------------------------------------

STAGE_FILE              = OPUS_DEFINITIONS_DIR:opus_science_pipeline.stage ! filespec for defining pipeline stages
OPUS_HOME_DIR           = OPUS_HOME_DIR               ! Process Status Files, process logs, and misc tempory files.
OPUS_OBSERVATIONS_DIR   = "for OSFs for this path"    ! Obs. Status File
OPUS_TEMP_DIR           = "scratch area"              ! Scratch area for intermediate 
!
pod_osf_check           = TRUE   ! TRUE if DP checks for an existing OSF
PODNAMES_CHECK          = FALSE  ! test for existing podnames db entries
ACS_OSCOPE_PROGRAMS     = ABC,DEF,GHI  ! comma-sep list of ACS OSCOPE prog IDs:w
OK_TO_UPDATE_DATABASE   = TRUE   ! Database update flag (default is FALSE)
*.OK_TO_UPDATE_DATABASE = TRUE
ARCHIVE_EDT_SET         = TRUE   ! Send EDT set to archive/ingest
POLLING_TIME            = "seconds; optional keyword" ! Polling time. Determine how reactive a process to an event.
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            = TRUE   ! set to FALSE for OTFR or any path that does not need
use_stis_csum           = TRUE   ! set to FALSE for OTFR or any path that does not need
                                 !   to regenerate the [COS] accumulated sum images
filldata_is_error       = TRUE   ! for pre-archive processing, GC will treat
                                 ! insertion of filldata as error to allow
                                 ! inspection of results before continuing
db_retry_interval       = 3600   ! secs between retry of failed Python DB query
!
DB_TYPE                 = SYBASE ! or MSSQL
OPUS_SERVER             = ""  ! Data base server for OPUS
OPUS_DB                 = ""  ! Data base i.e. opustest2
SPSS_SERVER             = ""  ! Data base server for SPSS
SPSS_DB                 = ""  ! Data base i.e. opus_spss2
ASSIST_SERVER           = ""  ! Data base server for ASSIST
ASSIST_DB               = ""  ! Data base i.e. assistops
PROP_SERVER             = ""  ! Data base server for proposals
PROP_DB                 = ""  ! Data base i.e. proper_rep
ARCH_SERVER             = ""  ! Data base server name for archive database
ARCH_DB                 = ""  ! Data base name for archive database
REFFILE_SERVER          = ""  ! Data base server name for reffile database
REFFILE_DB              = ""  ! Data base name for reffile database
KW_SERVER               = ""  ! Data base server name for keyword database
KW_DB                   = ""  ! Data base name for keyword database
!
! file containing reference file selection rules
REF_SELECT_FILE         = OPUS_DEFINITIONS_DIR:reference_file_defs.xml
!
POD_IN_DIR              = ""  ! Directory where the input files are found
POD_ARCH_DIR            = ""  ! Where POD files are archived from
ANC_ARCH_DIR            = ""  ! Where ANC files are archived from
DIA_ARCH_DIR            = ""  ! Where DIA files are archived from 
EDT_ARCH_DIR            = ""  ! Where EDT sets are archived from (arcins/DE)
!
DMP_SIS_DIR             = ""  ! DMP data (SIS directory)
!
ALL_SIS_DIR             = ""  ! generic SIS directory
ALL_CAL_DIR             = ""  ! generic CAL directory
!
ACS_SIS_DIR             = ""  ! ACS SIS directory
ACS_CAL_DIR             = ""  ! ACS CAL directory
!
COS_SIS_DIR             = ""  ! COS SIS directory
COS_CAL_DIR             = ""  ! COS CAL directory
!
COS_SUM_DIR             = ""  ! COS accumulated files directory (csum)
COS_CCI_DIR             = ""  ! COS cumulative count image (cci) directory
USE_REPEATABLE_RANDSEED = TRUE
                              ! FOR PRE-ARCHIVE
                              ! perform repeatable (non-optimum)
                              ! CALCOS calibration, using
                              ! fixed random number seed
!
NIC_SIS_DIR             = ""  ! NICMOS SIS directory
NIC_CAL_DIR             = ""  ! NICMOS CAL directory
!
STI_SIS_DIR             = ""  ! STIS SIS directory
STI_CAL_DIR             = ""  ! STIS CAL directory
!
STI_SUM_DIR             = ""  ! STIS accumulated files directory (csum)
STI_CCI_DIR             = ""  ! STIS cumulative count image (cci) directory
!
MAMA_DIR                = ""  ! mama directory / oma and gma output 
!
WF2_SIS_DIR             = ""  ! WF2 files (SIS)
WF2_CAL_DIR             = ""  ! WF2 calibrated files
! 
WF3_SIS_DIR             = ""  ! WF3 files (SIS)
WF3_CAL_DIR             = ""  ! WF3 calibrated files
!
FOC_SIS_DIR             = ""  ! FOC files (SIS)
FOC_CAL_DIR             = ""  ! FOC calibrated files
!
LOG_DIR           = ""                ! Archive dataset log files
INGEST_PATH_NAME  = ! pathname.path   ! Ingest Pipeline path file name
INGEST_PATH       = ! pathname        ! just the rootname of the path, no .path
INGEST_STAGE_ID1  = MI                ! Mission stage ID             
INGEST_STAGE_ID2  = RM                ! Request manager stage ID
INGEST_PATH_ROOT =  ! pathname->INGEST_PATH_ROOT  ! Root directory of <ingest> path
!
PDQ_ARCH_DIR            = ""  ! PDQ data directory (arcins)
PRB_ARCH_DIR            = ""  ! Problem science data directory (arcins)
!
OPUS_DDF_DIR            = ""  ! Where real-time data should go
OPUS_RT_DIR             = ""  ! Where production and quick-lookdata goes
!
FGS_PATH                = NONE  ! NONE or FGS pipeline path name for OSF updates 
!
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        = ""   
big_MINBLOCKS        = 200000000
really_big_MINBLOCKS = 300000000
!
FASTRAK_EMAIL            = ""   ! Email address for notifiction of fastrak prb.
FT_prompt                = "Fastrak Password" ! password for fastrak process
MAIL_SERVER              = ""   ! Email server (for example smtp.stsci.edu)
