% sg_calib_constants.m
% values from spreadsheet for easy inclusion of glider params into diveplot.m, etc.

% basic glider and mission params
% Last edited JM 10 Aug 2011 SOG
id_str	=	'512';
mission_title	=	'ALOHA';
mass	=	52.0720;% from sum on trim sheet
volmax	=	51242;% from ballast worksheet final table
rho0	=	1.027500;% from ballast worksheet for "new" environment

% initial hydrodynamic model params
hd_a	=	3.83600000E-03;
hd_b	=	1.00780000E-02;
hd_c	=	9.85000000E-06;
therm_expan	=	7.05000000E-05;
temp_ref	=	1.50000000E+01;
abs_compress	=	4.18000000E-06;
pitchbias	=	0.00000000E+00;

% software limits from cal sheet:
pitch_min_cnts	=	54;
pitch_max_cnts	=	3823;
roll_min_cnts	=	184;
roll_max_cnts	=	3899;
vbd_min_cnts	=	399;
vbd_max_cnts	=	3960;
vbd_cnts_per_cc	=	-4.076707;

% pump parameters
pump_rate_intercept	=	1.275;
pump_rate_slope		=	-0.00015;
pump_power_intercept	=	17.4033;
pump_power_slope	=	0.017824;

% CT sensors cal constants
calibcomm	=	'SN: 0141  CAL: 18-Jan-11';% SN and cal date
t_g	=	4.35655533E-03;
t_h	=	6.31783421E-04;
t_i	=	2.46665890E-05;
t_j	=	2.71957873E-06;
c_g	=	-9.90238504E+00;
c_h	=	1.14137582E+00;
c_i	=	-1.81859351E-03;
c_j	=	2.23615025E-04;
cpcor	=	-9.5700E-08;
ctcor	=	3.2500E-06;
sbe_cond_freq_min	=	2.98319000E+00;% kHz, from cal for 0 salinity
sbe_cond_freq_max	=	8.00000000E+00;% kHz, est for greater than 34.9 sal max T
sbe_temp_freq_min	=	2.92421200E+00;% kHz, from cal for 1 deg T
sbe_temp_freq_max	=	5.55528300E+00;% kHz, from cal for 32.5 deg T

% oxygen cal constants
comm_oxy_type	=	'SBE 43f';
calibcomm_oxygen	=	'SN: 43F0221  CAL: 071811';% SN and cal date
Soc	=	3.0169E-04;
Foffset	=	-8.254100E+02;
o_a	=	-2.9108000E-03;
o_b	=	1.479600E-04;
o_c	=	-2.133300E-06;
o_e	=	3.600000E-02;
Tau20	=	2.21;
Pcor	=	0;

%comm_oxy_type='Aa_optode';% spec SBE_43f or Aa_optode
%calibcomm_oxygen='SN: 199  CAL: 15Apr2011';% SN and cal date 
%                           CAL: 'PREV 82009'
%optode_FoilCoefA1=-8.65647E-06;
%optode_FoilCoefA2=0.002206881;
%optode_FoilCoefA3=-0.2269625;
%optode_FoilCoefA4=0.000795856;
%optode_FoilCoefA5=-6.78009E-07;
%optode_FoilCoefA6=11.89709;
%optode_FoilCoefA7=-0.06533028;
%optode_FoilCoefA8=0.00012843;
%optode_FoilCoefA9=-2.89467E-07;
%optode_FoilCoefA10=-324.9648;
%optode_FoilCoefA11=2.497815;
%optode_FoilCoefA12=-0.007050041;
%optode_FoilCoefA13=-1.36382E-05;
%optode_FoilCoefB1=3832.035;
%optode_FoilCoefB2=-38.71124;
%optode_FoilCoefB3=0.1475505;
%optode_FoilCoefB4=-0.000330332;
%optode_FoilCoefB5=2.28928E-05;
%optode_FoilCoefB6=-5.0083E-07;

%  The following Two Wetlabs sensors - cal sheet came with Seaglider
%
% this glider also carries WET Labs S/N BB2FLVMT-590, cal 26 Jan 2009
%  
wlbb2f_chl_dark 	= 50;           % counts
wlbb2f_chl_scale 	= 0.0133;      % mirco_g/l/count
wlbb2f_700_dark 	= 47;           % counts
wlbb2f_700_scale 	= 3.464e-6;    % counts 
wlbb2f_470_dark 	= 41;           % counts
wlbb2f_470_scale 	= 1.201e-5;    % counts

% this glider also carries WET Labs S/N BBFL2VMT-673, cal 27 Aug 2009
% 
wlbbfl2_650_dark	= 47;          % counts
wlbbfl2_650_scale 	= 3.980e-6;   % (m^{-1}sr^{-1})/counts
wlbbfl2_chl_dark 	= 48;          % counts
wlbbfl2_chl_scale 	= 0.0121;     % micro_g/l/count
wlbbfl2_cdom_dark	= 47;         % count
wlbbfl2_cdom_scale 	= 0.0912;    % ppb/count
