shipname = 'Ron Brown'
cruiseid = 'RB-23-02-PIREATA'
yearbase = 2022
uhdas_dir = '/home/data/RB-23-02-PIREATA'

# from proc_cfg.*:



## for processing
##----------------
## ship name: shipname = "Ron Brown"
## at-sea "proc_cfg.*" initialized date = "2022/05/17 03:25:18"
##
## This file starts as /home/adcp/config/proc_cfg.py or .toml and
## includes the following information.  Uncomment, left-justify
## and fill these in if you are attempting to generate proc_cfg.*
## from this template.  The file must be named {cruiseid}_proc.py or *.toml
## or for this example, kk1105_proc.py or kk1105_proc.toml.
##
## example values: fill in for your cruise...
#
# yearbase = 2011                  # usually year of first data logged
# uhdas_dir = "/home/data/kk1105"  # path to uhdas data directory
# shipname = "Ka`imikai O Kanaloa" # for documentation
# cruiseid = "kk1105"              # for titles
#
#

#======== serial inputs =========

# choose position instrument (directory and rbin message)

pos_inst = "gpsnav"
pos_msg = "gps"

# choose attitude instruments (directory and rbin message)

pitch_inst = "posmv"     # pitch is recorded, but NOT used in transformation
pitch_msg = "pmv"      # disable with "" (not None)

roll_inst = "posmv"      # roll is recorded, but NOT used in transformation
roll_msg = "pmv"       # disable with "" (not None)

hdg_inst = "gyro"       # reliable heading, used for beam-earth transformation
hdg_msg = "hdg"


## heading correction
## all heading+msg pairs, for hbin files
hdg_inst_msgs = [
    ('gyro', 'hdg'),
    ('posmv', 'pmv'),
    ('abxtwo', 'adu'),
]

## instrument for heading correction to ADCP data (dir and msg)
hcorr_inst = "posmv"       # disable with "" (not None)
hcorr_msg = "pmv"        # disable with "" (not None)
hcorr_gap_fill = 0.0   ## fallback correction for hcorr gaps
                     ## calculate hdg_inst - hcorr_inst, eg gyro - ashtech
                     ## SAME SIGN CONVENTION as cal/rotate/ens_hcorr.ang

## if there is a posmv
acc_heading_cutoff = 0.021

# =========== ADCP transformations========

# heading alignment:  nominal - (cal/watertrack)
h_align = dict(
      os75 = 51.7,
)

# transducer depth, meters
ducer_depth = dict(
      os75 = 5,
)

# velocity scalefactor
# see SoundspeedFixer in pycurrents/adcp/pingavg.py
scalefactor = dict(
    os75bb = 1.0,
    os75nb = 1.0,
)

# soundspeed
# Soundspeed is usually None, and should ALWAYS be left as None for Ocean Surveyor
# (it is remotely possible that soundspeed for a WH, BB, or NB might need to
#           be set to a number, but usually that just results in an erroneous
#           scale factor.
soundspeed = dict(
    os75bb = None,
    os75nb = None,
)

# salinity
salinity = dict(
    os75bb = None,
    os75nb = None,
)

#=================================================================
# =========           values for quick_adcp.py          ==========
# ========= These are set here for at-sea procesing,    ==========
# ========= but are REQUIRED in quick_adcp.py control   ==========
# =========  file for batch mode or reprocessing.       ==========

## choose whether or not to use topography for editing
## 0 = "always use amplitude to guess the bottom;
##          flag data below the bottom as bad"
## -1 = "never search for the bottom"
## positive integer: Only look for the bottom in deep water, where
##      "deep water" is defined as "topo database says greater than this".

max_search_depth = dict(
    os75bb = 2000,
    os75nb = 2000,
)

# special: weakprof_numbins
weakprof_numbins = dict(
    os75bb = None,
    os75nb = None,
)

# set averaging intervals
enslength = dict(
    os75bb = 300,
    os75nb = 300,
)

# Estimate of offset between ADCP transducer and gps:
# - Specify integer values for 'xducer_dx' and 'xducer_dy' for each instrument
# - xducer_dx = ADCP's location in meters, positive starboard with the GPS
#   location as origin
# - xducer_dy = ADCP's location in meters, positive forward with the GPS
#   location as origin
#
# There should be one set of xducer_dx, xducer_dy values per instrument
# Ex. (python version):
#   xducer_dx = dict(
#   wh300 = -2,
#   os38 = 16,
#   )
# Ex. (toml version)
#   xducer_dy = { wh300 = 1, os38 = 6 }
#
# Note that estimates of xducer_dx, xducer_dy can be found in
# cal/watertrk/guess_xducerxy

xducer_dx = dict(
      os75 = -6,
)
xducer_dy = dict(
      os75 = 4,
)


## If there is a bad beam, create a dictionary modeled after
## enslen (i.e. Sonar-based, not instrument based) and use the
## RDI number (1,2,3,4) to designate the beam to leave out.


