% sg_calib_constants.m			
% SG146 New Format for 66.11 upgrade, Kongsberg Doc No. 4000122
% Last edited 2015/06/20, SS

% basic glider and mission params				
	id_str 	=	'146'	;	
	mission_title	= 'Univ of Hawaii';
	mass	=	52.388	; % for Hawaii ocean waters
	volmax  =   51074   ; % from Trimsheet at oil stroke zero    
	rho0	=	1027.7	; % for Hawaii ocean waters

% software motor limits				
	pitch_min_cnts 	=	485;
	pitch_max_cnts 	=	3757;	
	roll_min_cnts 	=	160;	
	roll_max_cnts 	=	3941;	
	vbd_min_cnts 	=	477;	
	vbd_max_cnts 	=	3951;	
	vbd_cnts_per_cc =	-4.0767;

% initial hydrodynamic model params				
	hd_a 	=	0.003836;
	hd_b 	=	0.010078;	 
	hd_c 	=	9.85E-06; 	 
	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

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

% CT Sail sensor cal constants, updated: 08-May-2015 SS	
    calibcomm ='SN 0166, CAL: 27-Oct-14';
	t_g 	=	4.30402775E-03	;	
    t_h 	=	6.20466474E-04	;	
    t_i 	=	2.22136627E-05	;	
    t_j 	=	2.26770976E-06	;	
    c_g 	=	-9.85587346E+00 ;	
    c_h 	=	1.11016657E+00	;	
    c_i 	=	-2.02416946E-03	;	
    c_j 	=	2.25156376E-04	;	
    cpcor 	=	-9.57000000E-08	;	
    ctcor 	=	3.25000000E-06	;	
    sbe_cond_freq_min =	2.98	; % kHz, from cal for 0 salinity
    sbe_cond_freq_max =	8.5		; % kHz, est for greater than 32.5 
    sbe_temp_freq_min =	2.992	; % kHz, from cal for 1 deg T
    sbe_temp_freq_max =	5.779	; % kHz, from cal for 32.5 deg T
				
% SBE oxygen cal constants
% SBE 43f, updated 05/08/15				
	comm_oxy_type= 'SBE 43f';
	calibcomm_oxygen = 'SN 171, CAL: 06-Sep-2014';
	Soc 	=	3.5241E-04	;
	Foffset =	-8.1612E+02	;	
	o_a = -4.1030E-03;
	o_b = 2.2774E-04;
	o_c = -4.1722E-06;
	o_e = 3.6000E-02;
	Tau20 = 1.4200E+00;
	PCor = 0;   % used as flag to force usage of new algorithm

% Aanderaa cal constants
% Aanderaa Optode Model# 5013 (AA3830), updated 20-Jun-2015 SS 
% O2 Sensing Foil PSt3 Batch 1023
	comm_oxy_type = ' AA3830 ';  
	calibcomm_optode = ' SN 019  CAL: 12-Sep-2014 ';
	optode_PhaseCoef0= -7.40472e+00;
	optode_PhaseCoef1= 1.22176e+00;
	optode_PhaseCoef2= 0.0;
	optode_PhaseCoef3= 0.0;

	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;

% WET Labs BB2F-VMG SN 398 (fwd), updated 19-Jun-2015 SS
% wlbb2f calibration constants
     WETLabsCalData_wlbb2f_calinfo = ' SN: BB2F-VMG-398, CAL: 26-Sep-2014 ';
 
% Backscattering cal constants - wavelength 470
     WETLabsCalData.wlbb2f.Scatter470.wavelength=470;
     WETLabsCalData.wlbb2f.Scatter470.scaleFactor=1.894E-05;
     WETLabsCalData.wlbb2f.Scatter470.darkCounts=51;
     WETLabsCalData.wlbb2f.Scatter470.resolution=1;
 
% Backscattering cal constants - wavelength 700
     WETLabsCalData.wlbb2f.Scatter700.wavelength=700;
     WETLabsCalData.wlbb2f.Scatter700.scaleFactor=3.381E-06;
     WETLabsCalData.wlbb2f.Scatter700.darkCounts=50;
     WETLabsCalData.wlbb2f.Scatter700.resolution=1.8;
 
% Chlorophyll cal constants (bb2F CHL: use EX/EM = 470/700)
     WETLabsCalData.wlbb2f.Chlorophyll.wavelength=700;
     WETLabsCalData.wlbb2f.Chlorophyll.darkCounts=51;
     WETLabsCalData.wlbb2f.Chlorophyll.scaleFactor=1.6000E-02;
     WETLabsCalData.wlbb2f.Chlorophyll.maxOutput=4120;
     WETLabsCalData.wlbb2f.Chlorophyll.resolution=2.3;
     WETLabsCalData.wlbb2f.Chlorophyll.calTemperature=21.0;

% WET Labs BBFL2-VMT SN 400 (aft), updated 8-Jun-2015 SS
% wlbbfl2 calibration constants
     WETLabsCalData_wlbbfl2_calinfo = ' SN: BBFL2-VMT-400, CAL: 25-Sep-2014 ';
 
% Backscattering cal constants - wavelength 660
	WETLabsCalData.wlbbfl2.Scatter532.wavelength=660;
	WETLabsCalData.wlbbfl2.Scatter532.scaleFactor=3.76E-06;
	WETLabsCalData.wlbbfl2.Scatter532.darkCounts=56;
	WETLabsCalData.wlbbfl2.Scatter532.resolution=1.3;
	 
% Chlorophyll cal constants (triplets CHL: use EX/EM = 470/695)
	WETLabsCalData.wlbbfl2.Chlorophyll.wavelength=695;
	WETLabsCalData.wlbbfl2.Chlorophyll.darkCounts=53;
	WETLabsCalData.wlbbfl2.Chlorophyll.scaleFactor=1.04E-02;
	WETLabsCalData.wlbbfl2.Chlorophyll.maxOutput=4120;
	WETLabsCalData.wlbbfl2.Chlorophyll.resolution=1.0;
	WETLabsCalData.wlbbfl2.Chlorophyll.calTemperature=21.0;
 
% CDOM cal constants (triplets CDOM: use EX/EM = 370/460)
	WETLabsCalData.wlbbfl2.CDOM.wavelength=460;
	WETLabsCalData.wlbbfl2.CDOM.maxOutput=4120;
	WETLabsCalData.wlbbfl2.CDOM.scaleFactor=0.1246E-00;
	WETLabsCalData.wlbbfl2.CDOM.darkCounts=51;
	WETLabsCalData.wlbbfl2.CDOM.resolution=1.3;
	WETLabsCalData.wlbbfl2.CDOM.calTemperature=21.0;

% end of file