% sg_calib_constants.m
% values for use with basestation, etc.

% basic glider and mission parameters
% Last edited 13-Mar-13 by JM

%mission_title = 'Puget Sound';
mission_title = 'DMON test deployment';
id_str  =	'500'	;
%mass    =      51.230  ; % for Port Susan 
mass  	 =      51.8960  ; % for open ocean, updated 6/24/13 jm
%volmax  =     	50800   ; % in cc, for Port Susan
%volmax  =     	50815   ; % from PS regression
volmax  = 	51010	; % projected for open ocean ballast, updated 6/24/13 jm

%rho0	=     1022.8  ; % in kg/m3, for Main Basin PS
rho0  	 =      1027.5  ; % in kg/m3, for open ocean
pitchbias=  	0	; % for running regressions

% software limits from cal sheet
pitch_min_cnts  =       157     ;
pitch_max_cnts  =       3893    ;
roll_min_cnts   =       213     ;
roll_max_cnts   =       3849    ;
vbd_min_cnts    =       475     ;
vbd_max_cnts    =       3942    ;
vbd_cnts_per_cc =       -4.0767 ;

% CT sensors cal constants
calibcomm ='SN 166, cal 14-Mar-11';% SN and cal date, updated 5/13/13 jm
t_g     =       4.30380751E-03	;
t_h     =       6.20288156E-04  ;
t_i     =       2.21636649E-05  ;
t_j     =       2.27319310E-06  ;
c_g     =       -9.84524194E+00 ;
c_h     =       1.10647399E+00  ;
c_i     =       -1.09917714E-03 ;
c_j     =       1.56851335E-04  ;
cpcor   =       -9.5700000E-08  ;
ctcor   =       3.2500000E-06   ;
sbe_cond_freq_min =     2.7     ; % kHz, from cal for 0 salinity\
sbe_cond_freq_max =     8.5     ; % kHz, est for greater than 32.5 
sbe_temp_freq_min =     2.8     ; % kHz, from cal for 1 deg T\
sbe_temp_freq_max =     6.9     ; % kHz, from cal for 32.5 deg T

% this glider carries the DMON system installed at UH May 2013

% this glider also carries WET Labs BBFL2-VMT SN1011, cal 6-Dec-12, updated 5/13/13 jm
wlbb2f_650_dark = 46;            % counts
wlbb2f_650_scale = 4.079e-06;    % micro_g/l/count
wlbb2fl_cdom_dark = 49;          % counts
wlbb2fl_cdom_scale = 0.0911;     % counts
wlbb2fl_chl_dark = 50;           % counts
wlbb2fl_chl_scale = 0.0121;      % counts

% SBE oxygen cal constants				
%comm_oxy_type= 'SBE 43f';
%calibcomm_oxygen = 'SN xxx, xx-xxx-xx'; % SN and cal date, updated 5/13/13 jm
%Soc 	=	3.xxxxE-04	;
%Foffset =	-8.xxxxE+02	;	
%Boc	=	0.0	;
%Tcor	=	4.0e-4	;	
%Pcor	=	1.35e-4	;	
% other type of parameters from SBE oxygen
%o_a = -3.xxxxE-03;
%o_b = 1.xxxxE-04;
%o_c = -2.xxxxE-06;
%o_e = 3.6000E-02;
%Tau20 = 1.xxxxE0;
%PCor = 0;   % used as flag to force usage of new algorithm

% initial hydrodynamic model params 
hd_a    =       0.003836        ; % values from Charlie
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
