% cal.m

% DSD calibration info
cal.k2 = -1.0626e-03;
% cal.k2 = -1.2e-3;
% cal.fP = flipud([0, 0, 0, 1.325543E-12, -3.904319E-9, -1.765035E-6]'); % 3rd order polynomial
cal.fP = flipud([0, 0, 0, 0, 0, 2.188E-06]'); % linear function, decreasing P only, above 1000 m
cal.k0 = -1.4217; % made up right now

% gain for O2
% cal.O2gain = 270/235; % from eyeballing surface O2 from glider and BOG from a month ago
% cal.O2gain = 1.2097; 
% new gain calculated from pre-deployment air cal
cal.O2gain = 1.0511 ; 

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;



