shipkey = "en"
# --> new: beamstats
# --> new: gzip


#####################################
# Additional ship configuration information: (all as comments)
#
# deeper blanking interval      use defaults
# IP number (fleet broadband) 192.168.0.8   eth0  dhcp (assigned by mac address)
# IP number  (data)           192.168.1.35  eth1 
# IP number (science)         192.168.2.35  eth2 
# ntp server        server 192.168.1.2
#
# last changed Oct 2010
###################################


# for DAS_while_cruise.py
#-------------------------
# List of paths to backup "data" subdirectories.  Within each such
# subdirectory, the cruise data directory (e.g., km0507) will
# be found.  If the active cruise is "km0507", then rsync will
# be called periodically to copy the contents of /home/data/km0507
# to data/km0507 in each path in the list.

backup_paths = ['/disk2/home',]
#backup_paths = []

# turns off gzipping
gzip_serial_files = False #default would be to gzip


# Interval in seconds between backups

rsync_t = 3600


# for DAS_while_logging.py
#--------------------------

# Interval in seconds between ensemble updates:

short_t = 300

# Interval in seconds between database updates:

long_t = 1800


# Working directory for calculations and intermediate products:

workdir = '/home/adcp/uhdas_tmp'

# Command string to start up the speedlog; empty string or
# None to disable the speedlog.  If there is a speedlog command,
# the string must end with '&' so that it will be executed in
# the background.

#speedlog_cmd = '/home/currents/programs/uhdas/uhdas/DAS_speedlog.py'  # backgrounded
speedlog_cmd = None


# for processing
#----------------
# (1) values substituted into cruise_cfg.m (for matlab)

### choose the instrument to use for heading correction.  options:
#  'gyro', 'ashtech', 'posmv', or 'seapath'
## This will be substituted into cruise_cfg.m, where matlab looks for it
hcorr_inst = 'ashpaq2'  ## 'gyro', 'ashpaq2', 'ashpaq5' 
                        ## don't forget to change "attitude_devices" below

pos_inst = 'gpsnav'
pos_msg  = 'gps'

hdg_inst = 'gyro'
hdg_msg =  'hdg'

pitch_inst = 'ashpaq2'
pitch_msg = 'paq'

roll_inst = 'ashpaq2'
roll_msg = 'paq'


# (2) values substituted into cruise_proc.m  (for matlab)

# heading alignment:  nominal - (cal/watertrack)
h_align = {}
h_align['os75']  = 45.08        # March 2009
h_align['wh300']  = 45.07       # March 2009

# transducer depth, meters
ducer_depth = {}
ducer_depth['os75']   = 6
ducer_depth['wh300']  = 6

# optional: weakprof_numbins
# weakprof_numbins = {'os75bb' : 2}

# velocity scalefactor
scalefactor = {}
scalefactor['os75bb']  = 1.0     ## this should be the default
scalefactor['os75nb']  = 1.0     # then it could mostly be left out
scalefactor['wh300'] = 1.0

# soundspeed
soundspeed = {}
soundspeed['os75bb'] = None      # NOTE: use 'calculate' for NB150
soundspeed['os75nb'] = None      #    if instrument was configured that way.
soundspeed['wh300'] = None

# salinity
salinity = {}
salinity['os75bb'] = None       ## NOTE: use fixed value such as 34.5 or 35.0
salinity['os75nb'] = None       ## for NB150 if using 'calculate' for soundspeed
salinity['wh300'] = None

# (3) values for quick_adcp.py

## choose whether or not to use topography for editing
## uses smith,sandwell version from about 2004
use_topo4edit = True

# averaging interval (seconds) usually 300.  might use 120sec for wh300
enslength = {}
enslength['os75bb']  = 300
enslength['os75nb']  = 300
enslength['wh300'] = 120

# (4) values for web plots and quality monitoring

## daily.py will get statistics on these (assumes correct messages are logged)
## and quality plots will go on the web site on the long_t timer
attitude_devices = ['ashpaq2', 'ashpaq5']    # string or list of strings
beamstats = ['os']  # ocean surveyor beam statistics; disable is emtpy, i.e.  []

# new section, to create cruise_proc.m
# all dictionaries must be filled

## for quick_adcp.py: # initialize; # fill
## going to be top_plotbin
top_plotbin = {}
top_plotbin['os75bb'] = 1
top_plotbin['os75nb'] = 1         ## set deeper, eg 2, if instrument has ringing
top_plotbin['wh300'] = 1

## which virtual instrument will be used for kts+dir 5-minute bridge plots?
## going to be kt_dir_instlist ['os75nb', 'os75bb']
kts_dir_instrument = ['wh300', 'os75nb', 'os75bb']

#####################################

# for daily.py:
#--------------

# Each email "mailto" must be a list of email addresses:
#        ["et@this_ship.podunk.edu", "guru@podunk.edu"]
# An empty list (no addresses) is : []


tarball_mailto        = ["uhdas@soest.hawaii.edu",]
local_status_mailto   = ["billfanning@seawave.net", "wce5063@seawave.net"]
shore_status_mailto   = ["sfontana@gso.uri.edu",
                         "efiring@hawaii.edu", 
                         "wfanning@gso.uri.edu",
                         "hummon@hawaii.edu"]


#tarball_mailto = []
#local_status_mailto   = ["billfanning@seawave.net", "wce5063@seawave.net"]
#shore_status_mailto   = ["adcp@seawave.net",]
#

##################

SMTP_server     = "206.67.134.136"
mail_from       = "adcp@gso.uri.edu"




