% sg_calib_constants.m
% establishes glider calibration constants

% This fils is an example and MUST be changed apprpriately for your
% own glider.

id_str = '148';

mission_title ='C-More mission ';

calibcomm = 'SBE s/n 0075, calibration 24 Sep 2007';

t_g =  4.39928157e-03 ;
t_h =  6.42383793e-04 ;
t_i =  2.70163652e-05 ; 
t_j =  3.03404401e-06 ;

% Minimum and maximum frequencies (kHz) for reasonable
%  oceanographic values of temperature from SBE calibration
%  for C/T s/n 041

sbe_temp_freq_min = 3.214274; % kHz
sbe_temp_freq_max = 6.081845; % kHz

c_g = -1.01052775e+01 ;
c_h =  1.14590808e+00 ;
c_i = -1.57692464e-03 ;
c_j =  2.13067745e-04 ;

% Minimum and maximum frequencies (kHz) for reasonable
%  oceanographic values of conductivity SBE calibration
%  for C/T s/n 041

sbe_cond_freq_min = 2.98792; % kHz
sbe_cond_freq_max = 7.95840; % kHz

cpcor = -9.57e-08 ;
ctcor =  3.25e-06 ;

calibcomm_oxygen = '0086, calibration 20 Jul 2007';

Soc = 2.2379e-04;
Foffset = -778.9209;
o_a = 2.0057e-4;
o_b = 1.8303e-4;
o_c = -3.5488e-6;
o_e = 0.036;

% Wetlabs 
wlbb2f_chl_dark = 44;           % counts
wlbb2f_chl_scale = 0.0164;      % mirco_g/l/count
wlbb2f_700_dark = 42;           % counts
wlbb2f_700_scale = 2.747e-6;    % counts
wlbb2f_470_dark = 50;           % counts
wlbb2f_470_scale = 1.170e-5;    % counts

wlbbfl2_660_dark = 47;          % counts
wlbbfl2_660_scale = 3.308e-6;   % (m^{-1}sr^{-1})/counts
wlbbfl2_chl_dark = 46;          % counts
wlbbfl2_chl_scale = 0.0127;     % micro_g/l/count
wlbbfl2_cdom_dark = 35;         % count
wlbbfl2_cdom_scale = 0.0935;    % ppb/count

mass = 52.629; % scale weight prior to shipment

hd_a = 0.003836;
hd_b = 0.010078;
hd_c = 9.8541e-6;

rho0 = 1027.5;

pitch_min_cnts = 420;
pitch_max_cnts = 3705;
roll_min_cnts = 160;
roll_max_cnts = 3940;
vbd_min_cnts = 511;
vbd_max_cnts = 3949;
vbd_cnts_per_cc = -4.0767;

volmax = 51771;

pitchbias = 0.;

pump_rate_intercept = 1.275;
pump_rate_slope = -0.00015;
pump_power_intercept = 17.4033;
pump_power_slope = 0.017824;

