!----------------------------------------------------------------------------
!
!  cdbs.path_template
!
!----------------------------------------------------------------------------
! Date      Number   Author    Reason
!-----------------------------------------------------------------------
! 10/23/98  36860    MSwam     first version
! 11/23/98  37814    MSwam     changes for CDBS pipeline
! 12/03/98  37814_01 MSwam     add comments
! 11/09/01  44616    MSwam     add entries for OTFR sites
! 04/17/03  45179    Heller    *.ok_to_update_database deleted.
! 05/06/03  48141    MSwam     add db_retry_interval,dbs
! 03/26/04  50429    Goldst    Updated to support unix ingest
! 05/03/04  48141    Sherbert  Ops-defaults, add OPUS_DB, OPUS_SERVER
! 06/25/04  51412    Sherbert  Minor changes for consistency
! 05/05/05  51433    MSwam     Remove *_supported_instr,add more lists
! 04/27/10  49175    MSwam     Add REFFILE_SERVER,REFFILE_DB
! 08/12/10  64432    MSwam     Add DB_TYPE for SYBASE,MSSQL selection
! 09/21/10  65811    RBelt     Add operator cdbs report mail list
!      
!----------------------------------------------------------------------------
!        **** 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:cdbs.stage 
OPUS_OBSERVATIONS_DIR  = _empty_OBS_ROOT/_empty_PATHMAP[]/
OPUS_HOME_DIR          = OPUS_HOME_DIR

! NOTE: The OPUS_TEMP_DIR value can NOT contain a stretched or concealed 
!       logical when used by VMS processes.  During CDBDSK, the logical
!       is used by the IRAF strfits command, which cannot deal with
!       such a logical.  Use a full directory specification.
!
OPUS_TEMP_DIR          = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/tmp/

OK_TO_UPDATE_DATABASE  = TRUE ! Database update flag (default is FALSE)

! CDBS database used to set feedback indication and read for BESTREF/BESTSWITCH
DB_TYPE                = _empty_DB_TYPE
CDBS_DB                = _empty_CDBS_DB
CDBS_SERVER            = _empty_CDBS_SERVER
! REFFILE database used for bestref queries
REFFILE_DB             = _empty_REFFILE_DB
REFFILE_SERVER         = _empty_REFFILE_SERVER

! ARCH and KW databases used to run nightly BESTREF/BESTSWITCH
ARCH_DB                = _empty_ARCH_DB
ARCH_SERVER            = _empty_ARCH_SERVER
KW_DB                  = _empty_KW_DB
KW_SERVER              = _empty_KW_SERVER

! OPUS server and database needed for archiving and feedback
OPUS_DB                = _empty_OPUS_DB
OPUS_SERVER            = _empty_OPUS_SERVER

!directory where daily logs are kept
bestref_log_dir                  = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/bestref/ 
!notification for receipt of new STIS reference files
stis_bestref_email_list          = _empty_STIS_BESTREF_EMAIL_LIST

!notification for cdbnewref run
operator_newref_email_list       = _empty_OPER_NEWREF_EMAIL_LIST
                                      
!notification for cdbnewexp run
operator_newexp_email_list       = _empty_OPER_NEWEXP_EMAIL_LIST

!notification for cdbswitch run
operator_bestswitch_email_list   = _empty_OPER_BESTSWITCH_EMAIL_LIST

!notification for cdbmail run
operator_cdbs_report_mail_list   = _empty_OPERATOR_CDBS_REPORT_MAIL_LIST

! minimum disk space in OUTPATH for a task to avoid IOWAIT
*.MINBLOCKS                      = 50000 

!seconds before retrying a failed Python DB access
db_retry_interval      = 3600 

! The cdbs_input_dir value should reflect the syntax of the machine on 
! which the processes that use this entry (CDBCPY, CDBDSK, CDBDEL, CDBCLN)
! are run.  The current default resource files for these processes assume
! that all of them are run on the same type of system, either UNIX or VMS,
! and all reference this single path mnemonic which should use a syntax
! acceptable by that system type (UNIX or VMS).
!
! NOTE: If you split these processes between VMS and UNIX, you will
! either need separate paths for VMS and UNIX so you can fill cdbs_input_dir
! with both VMS and UNIX directory syntax, or you will need to override
! the resource files to use directory syntax specific to the system on
! which the processes are run.
!
! NOTE: cdbs_input_dir and cdbs_archive_dir must be on the same disk,
!       since a hard link is created in the archive_dir to avoid
!       duplicating the storage space held by the input_dir.

!directory for incoming CDBS deliveries
cdbs_input_dir         = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/delivery/ 

!directory where files are put for archiving
cdbs_archive_dir       = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/archive/ 

!directory for CDBS archive log files
cdbs_archive_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 

!directory for outgoing ref pkg to remote site 1
outgoing_remote1_dir   = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/ecf/ 

!directory for outgoing ref pkg to remote site 2
outgoing_remote2_dir   = _empty_PATH_BASEDIR/opus/_empty_PATHMAP[]/cadc/ 

!  The remaining entries should describe a machine and directories on
!  the CDBS UNIX system.  During testing, you should also simulate the
!  function of the CDBS system by using a UNIX system.  Directory names
!  below should be UNIX-style names.
!
cdbs_machine           = _empty_CDBS_MACHINE
cdbs_machine_type      = UNIX 
cdbs_login             = _empty_CDBS_LOGIN
cdbs_prompt            = _empty_CDBS_PROMPT
cdbs_rmt_directory     = _empty_CDBS_RMT_DIRECTORY

! These two sets of entries describe the remote connection parameters
! for delivering CDBS reference files to ST-ECF (remote1) and 
! CADC (remote2)
!
remote1_prompt         = _empty_REMOTE1_PROMPT
remote1_machine        = _empty_REMOTE1_MACHINE   ! <e.g. tib.stsci.edu
remote1_login          = _empty_REMOTE1_LOGIN     ! <e.g. opus
remote1_directory      = _empty_REMOTE1_DIRECTORY ! <e.g. /data/opus_release/

remote2_prompt         = _empty_REMOTE2_PROMPT
remote2_machine        = _empty_REMOTE2_MACHINE   ! <e.g. tib.stsci.edu
remote2_login          = _empty_REMOTE2_LOGIN     ! <e.g. opus
remote2_directory      = _empty_REMOTE2_DIRECTORY ! <e.g. /data/opus_release/

! This value is the period of time to pause after pushing the CDBS delivery to
! the second remote site.  This will allow both remote sites time
! to install the reference files before the STScI database is updated
! to start calling for them.
!
wait_seconds     = _empty_WAIT_SECONDS ! default 20 minutes, at their request
