% sg_calib_constants.m
% values for basestation calculations, diveplot.m, etc.
% last edited 18-Jan-10 by F.Stahr

% basic glider and mission params				
id_str 	=	'148'	;	
%mass 	=	52.109	; % in kg, into Port Susan
mass	=	52.487	; % from post-PS ballasting
%volmax =	51655	; % in cc, from ballast worksheet pre-PS
%volmax		51658	; % from post-PS regressions
volmax =	51691	; % 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 0075 cal 4-Nov-09';	% SN and cal date
t_g 	=	4.39945409E-03  ;	
t_h 	=	6.42679289E-04	;	
t_i 	=	2.72238905E-05	;	
t_j 	=	3.08686541E-06	;	
c_g 	=	-1.01144152E+01 ;	
c_h 	=	1.14888282E+00	;	
c_i 	=	-2.34050360E-03	;	
c_j 	=	2.53003998E-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 086, 30-Oct-09'; % SN and cal date
Soc 	= 2.1918E-04	;	
Foffset = -7.6468E+02	;	
o_a = -1.7807e-3	;
o_b = 1.9133E-04	;
o_c = -2.5508E-06	;
o_e = 0.036		;
tau20 = 1.42 		;
%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 18-Dec-09
% O2 Sensing Foil PSt3 Batch 1707
optode_C00Coef =  5.32650e+03; 
optode_C01Coef = -1.92117e+02;
optode_C02Coef =  4.14357e+00;
optode_C03Coef = -3.78695e-02;
optode_C10Coef = -2.92068e+02; 
optode_C11Coef =  9.71993e+00;
optode_C12Coef = -2.14295e-01;
optode_C13Coef =  2.00778e-03;
optode_C20Coef =  6.47595e+00;
optode_C21Coef = -1.98080e-01;
optode_C22Coef =  4.49940e-03;
optode_C23Coef = -4.30530e-05;
optode_C30Coef = -6.69288e-02;
optode_C31Coef =  1.88066e-03;
optode_C32Coef = -4.42348e-05;
optode_C33Coef =  4.28382e-07;
optode_C40Coef =  2.65042e-04;
optode_C41Coef = -6.83185e-06;
optode_C42Coef =  1.67071e-07;
optode_C43Coef = -1.61989e-09;

% this glider also carries WET Labs BB2F-VMG SN 398, re-cal 8-Dec-09
%    face polish and  re-characterized
wlbb2f_chl_dark = 52;           % counts
wlbb2f_chl_scale = 0.0155;      % mirco_g/l/count
wlbb2f_700_dark = 45;           % counts
wlbb2f_700_scale = 3.569e-6;    % counts
wlbb2f_470_dark = 51;           % counts
wlbb2f_470_scale = 1.386e-5;    % counts

% this glider also carries WET Labs BB2FL-VMT SN 402,re-cal 8-Dec-09
%  scratches rm'd 
wlbbfl2_650_dark = 50;          % counts
wlbbfl2_650_scale = 3.578e-6;   % (m^{-1}sr^{-1})/counts
wlbbfl2_chl_dark = 46;          % counts
wlbbfl2_chl_scale = 0.0104;     % micro_g/l/count
wlbbfl2_cdom_dark = 49;         % count
wlbbfl2_cdom_scale = 0.0893;    % 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
