% cal.m
% Sensor = SBE_10330
% DSD calibration info
cal.k2 = -1.0296E-03;
% cal.fP = flipud([-1.2138E-21	8.7851E-18	-2.5645E-14	3.8874E-11	-3.3010E-08	1.8078E-05]');
cal.fP = flipud([-1.05E-21	7.28E-18	-1.98E-14	2.68E-11	-1.89E-08	8.73E-06]');
cal.fPbad = flipud([-1.2138E-21	8.7851E-18	-2.5645E-14	3.8874E-11	-3.3010E-08	1.8078E-05  -3.0754E-03]');
cal.k0 = -1.4182; % From test tank sample collected July 06 2023 by JKW/JSL, analyzed by Lenka

% gain for O2
% cal.O2gain = 1.0632; % average of last 3 air-cals on 10/6/2020 
cal.O2gain = 1.0838; % air cal pre-deployment Feb 13 2023 from Joe

cal.psal_offset = 0.047; % constant offset, based on comparison to validation casts

% calibration for chl-a fluorescence. SN29 has a 30x gain on chl. 
cal.opt_offset = -0.6; 
cal.opt_gain = 0.33;

