!----------------------------------------------------------------------------
!
!  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
! 12/05/06 57075    MSwam     Add COS,WFC3
! 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
! 11/10/10 61157    MSwam     tweak to put COS,STIS accum,cci in separate areas
! 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: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
ACS_OSCOPE_PROGRAMS     = ABC,DEF,GHI  ! comma-sep list of ACS OSCOPE prog IDs
OK_TO_UPDATE_DATABASE   = TRUE   ! Database update flag (default is FALSE)
*.OK_TO_UPDATE_DATABASE = TRUE

! 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            = 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                 = _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/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/

! COS accumulated files directory (csum)
COS_SUM_DIR             = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/accum/cos/
COS_CCI_DIR             = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/cci/cos/

! 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/

! COS and STIS share the same SUM and CCI area, since their files have unique
!   names
STI_SUM_DIR             = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/accum/stis/
STI_CCI_DIR             = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/cci/stis/

! mama directory / oma and gma output 
MAMA_DIR                = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/dat/mama/ 

! 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[ingest_auto].path 

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[ingest_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                = _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
!
FASTRAK_EMAIL        = ""   ! Email address for notifiction of fastrak prb.
FT_prompt            = "Fastrak Password" ! password for fastrak process
MAIL_SERVER          = smtp.stsci.edu  ! Email server
