% sg_calib_constants.m
% values for basestation calculations, diveplot.m, etc.
% last edited 17 May 2013 JM

% basic glider and mission params				
id_str 	=	'148'	;	
%mass 	=	52.109	; % in kg, into Port Susan
mass	=	52.665	; % from post-PS ballasting, updated 1/18/13
%volmax =	51655	; % in cc, from ballast worksheet pre-PS
%volmax =	51658	; % from post-PS regressions
volmax	=	51862   ; % projection for ocean ballast
%mission_title =	'PortSusan';	
mission_title   = 'Univ of Hawaii';
%rho0   =       1023.3  ; % in kg/m3 for Port Susan
rho0 	= 	1027.5	; % in kg/m3, for Port Susan
therm_expan = 70.5e-6;    % SG thermal expansion coeff [/degree C]
temp_ref = 15;  % reference temperature for SG thermal expansion calculation
abs_compress = 4.18e-6;  % SG vehicle compressibility
pitchbias = 0;	% pitch reference in regressions

% software motor limits				
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	;				

% CT sensors cal constants				
calibcomm ='SN 0154 cal 22-May-12';	% SN and cal date, updated 5/17/13
t_g 	=	4.36457716E-03  ;	
t_h 	=	6.29449255E-04	;	
t_i 	=	2.46267800E-05	;	
t_j 	=	2.69516854E-06	;	
c_g 	=	-9.96983920E+00 ;	
c_h 	=	1.14875224E+00	;	
c_i 	=	-1.84010466E-03	;	
c_j 	=	2.26321770E-04	;	
cpcor 	=	-9.5700000E-08	;	
ctcor 	=	3.2500000E-06	;	
sbe_cond_freq_min =	2.5	; % kHz, from cal for 0 salinity
sbe_cond_freq_max =	8.5	; % kHz, est for greater than 32.5 
sbe_temp_freq_min =	2.5	; % kHz, from cal for 1 deg T
sbe_temp_freq_max =	7.2	; % kHz, from cal for 32.5 deg T
				
% SBE oxygen cal constants				
comm_oxy_type= 'SBE 43f';
calibcomm_oxygen = 'SN 0086, 22-Dec-12'; % SN and cal date, updated 5/17/13
Soc 	= 2.8794E-04	;	
Foffset = -7.9984E+02	;	
o_a = -3.6269E-03	;
o_b = 1.8358E-04        ;
o_c = -2.7924E-06	;
o_e = 0.036		;
tau20 = 1.66 		;
%Boc    =       0.0     ;
%Tcor   =       0.0     ;
Pcor    =       0.0     ;% used as flag to force usage of new algorithm

% Aanderaa Optode SN 021 - model 5013
% last cal date 7-Dec-12
% O2 Sensing Foil PSt3 Batch 3853
optode_C00Coef =  4.27019e+03; 
optode_C01Coef = -1.32724e+02;
optode_C02Coef =  2.15630e+00;
optode_C03Coef = -1.40276e-02;
optode_C10Coef = -2.29730e+02; 
optode_C11Coef =  5.74242e+00;
optode_C12Coef = -6.85358e-02;
optode_C13Coef =  1.88612e-04;
optode_C20Coef =  5.06402e+00;
optode_C21Coef = -9.62085e-02;
optode_C22Coef =  5.22181e-04;
optode_C23Coef =  7.70890e-06;
optode_C30Coef = -5.26332e-02;
optode_C31Coef =  7.15467e-04;
optode_C32Coef =  3.31185e-06;
optode_C33Coef = -1.86124e-07;
optode_C40Coef =  2.10917e-04;
optode_C41Coef = -1.84088e-06;
optode_C42Coef = -4.28646e-08;
optode_C43Coef =  1.11120e-09;

% this glider also carries WET Labs BB2FL-VMT SN 1016, cal 19-Dec-12, updated 5/17/13
%
wlbb2f_chl_dark = 49;           % counts
wlbb2f_chl_scale = 0.0122;      % mirco_g/l/count
wlbb2f_700_dark = 50;           % counts
wlbb2f_700_scale = 3.496e-6;    % counts
wlbb2f_470_dark = 50;           % counts
wlbb2f_470_scale = 1.227e-5;    % counts

% this glider also carries WET Labs BB2FL-VMT SN 402, cal 12-Jan-12, updated 5/17/13
% 
wlbbfl2_650_dark = 52;          % counts
wlbbfl2_650_scale = 3.786e-6;   % (m^{-1}sr^{-1})/counts
wlbbfl2_chl_dark = 45;          % counts
wlbbfl2_chl_scale = 0.0110;     % micro_g/l/count
wlbbfl2_cdom_dark = 44;         % count
wlbbfl2_cdom_scale = 0.1535;    % ppb/count

% initial hydrodynamic model params				
hd_a 	=	0.003836;
hd_b 	=	0.010078;	 
hd_c 	=	9.85E-06; 	 

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

% end of file
