% cal.m
% Contains calibration coefficients for Spray Glider RT processing
%
% Logger: Jacki Long 


% DSD calibration info for ID = MBARI DSD_384
% cal.k2 = -9.59e-04; 
% cal.fP = flipud([-3.8321E-06, 1.9605E-08, -3.1950E-11, 2.5448E-14, -9.9264E-18, 1.5008E-21]'); %Updated March 06 2023 - JSL
cal.k2 = -9.6415E-04; % updated 8/2/2023
cal.fP = flipud([1.5008E-21	-9.9264E-18	2.5448E-14	-3.1950E-11	1.9605E-08	-3.8321E-06]'); % DSD 384 copied from pHlog.xlsx; 8/2/2023
% cal.k0 = -1.270; % K0 in HCl
% cal.k0 = -1.2706; % K0 from test tank sample collected/ran Aug 02 2023
cal.k0 =  -1.2699; % K0 figured out in the field

% Enter gain for O2 correction from pre-deployment set up
cal.O2gain = 1.0621; % From pre-deployment air-cal Aug 01 2023
cal.psal_offset = 0; % constant offset, based on comparison to validation casts

% calibration for chl-a fluorescence
cal.opt_offset = -0.6; 
cal.opt_gain = 1.4637;



