Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
138 changes: 138 additions & 0 deletions notebooks/6.2-mpm-hs2-values-over-time.ipynb

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion src/data/hs2_proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ def hs2_calc_bb(orig_nc, cals):
# % Fax: (831) 775-1620
# % Email: sackmann@mbari.org
#
# This function calculates the backscattering coefficients from the raw
# HydroScat2 data. The raw data are converted to backscattering
# coefficients and chlorophyll fluorescence using the method described in
# the HydroScat2 manual: HS2ManualRevI-2011-12.pdf (Section 9 pp. 45-55).

hs2 = HS2()

Expand Down Expand Up @@ -183,7 +187,8 @@ def hs2_calc_bb(orig_nc, cals):
k_exp = float(cals[f"Ch{chan}"]["SigmaExp"])
sigma = k_1 * np.exp(k_exp * K_bb)

b_b_corr = sigma * b_b_uncorr
# -% b_b_corr = ((2*pi*chi).*(sigma.*beta_uncorr - beta_w)) + b_bw; (See Page 52 of HS2ManualRevI-2011-12.pdf) # noqa: E501
b_b_corr = ((2 * pi * chi) * (np.multiply(sigma, beta_uncorr) - beta_w)) + b_bw

setattr(hs2, f"bb{wavelength}", b_b_corr)
setattr(hs2, f"bbp{wavelength}", b_b_corr - b_bw)
Expand Down