% sg_calib_constants.m

% SG616, mission 1, Feb18
% Edited by ESDU, SAMS, 15 Feb 18

id_str = '616';

mission_title ='OSNAP 11';

%From NOCS trimsheet
mass	=	53.2577	;	% from sum on trim sheet B35
% volmax	=	52494	;	% from ballast worksheet final table B36
volmax = 52419.5;  % from flight model regression by LH on 17/06/18
rho0	=	1.027700	;	% from ballast worksheet for "new" environment B38
				
% initial hydrodynamic model params				
% hd_a	=	3.83600000E-03	;	
% hd_b	=	1.00780000E-02	;	
% hd_c	=	9.85000000E-06	;	
% New coeffs from flight model regression by LH on 17/06/18
hd_a = 2.83833e-03;
hd_b = 9.63001e-03;
hd_c = 1.12321e-05;

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	=	210	;
pitch_max_cnts	=	3903	;
roll_min_cnts	=	246	;
roll_max_cnts	=	3902	;
vbd_min_cnts	=	600	;
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 coefficients - S/N 0226
% Calibrated 15-Apr-17
calibcomm='CTD S/N 0226  CAL: 15-Apr-17';
t_g	=	4.39704310E-03	;
t_h	=	6.36645001E-04	;
t_i	=	2.59026810E-05	;
t_j	=	3.26267672E-06	;
c_g	=	-9.68982648E+00	;
c_h	=	1.10897275E+00	;
c_i	=	-6.69238518E-04	;
c_j	=	1.39045698E-04	;
cpcor	=	-9.5700E-08	;	
ctcor	=	3.2500E-06	;	
sbe_cond_freq_min	=	2.95697000E+00	;	% kHz, from cal for 0 salinity
sbe_cond_freq_max	=	7.93975000E+00	;	% kHz, est for greater than 34.9 sal max T
sbe_temp_freq_min	=	3.41800600E+00	;	% kHz, from cal for 1 deg T
sbe_temp_freq_max	=	6.53416900E+00	;	% kHz, from cal for 32.5 deg T


% Oxygen HydroFlash - S/N DO-0315-003
% Calibrated 04 July 2015
calibcomm_oxygen	='HydroFlash S/N DO-0315-003  CAL: 04-Jul-15';

% Example Aanderaa optode SG604 OSNAP 10
% comm_oxy_type	='	AA4831	';	% spec  Aa_optode
% calibcomm_oxygen	='Optode S/N 327  CAL: 13-Feb-14	';	% SN and cal date
% optode_PhaseCoef0=0.0;
% optode_PhaseCoef1=1.0;
% optode_PhaseCoef2=0.0;
% optode_PhaseCoef3=0.0;
% optode_FoilCoefA0	=	-2.988314E-06	;
% optode_FoilCoefA1	=	-6.137785E-06	;	
% optode_FoilCoefA2	=	 1.684659E-03	;	
% optode_FoilCoefA3	=	-1.857173E-01	;	
% optode_FoilCoefA4	=	 6.784399E-04	;	
% optode_FoilCoefA5	=	-5.597908E-07	;	
% optode_FoilCoefA6	=	 1.040158E+01	;	
% optode_FoilCoefA7	=	-5.986907E-02	;	
% optode_FoilCoefA8	=	 1.360425E-04	;	
% optode_FoilCoefA9	=	-4.776977E-07	;	
% optode_FoilCoefA10	=	-3.032937E+02	;	
% optode_FoilCoefA11	=	 2.530496E+00	;	
% optode_FoilCoefA12	=	-1.267045E-02	;	
% optode_FoilCoefA13	=	 1.040454E-04	;
% optode_FoilCoefB0	=	-3.560390E-07   ;
% optode_FoilCoefB1	=	 3.816713E+03   ;	
% optode_FoilCoefB2	=	-4.475507E+01	;	
% optode_FoilCoefB3	=	 4.386164E-01	;	
% optode_FoilCoefB4	=	-7.146342E-03	;	
% optode_FoilCoefB5	=	 8.906236E-05   ;	
% optode_FoilCoefB6	=	-6.343012E-07	;	
% optode_FoilCoefB7	=	0;
% optode_FoilCoefB8	=	0;
% optode_FoilCoefB9	=	0;
% optode_FoilCoefB10	=	0;
% optode_FoilCoefB11	=	0;
% optode_FoilCoefB12	=	0;
% optode_FoilCoefB13	=	0;


% Wetlabs - S/N BBFL2IRB-1311
% Calibrated 28 May 2015
%  Chlorophyll cal Constants
WETLabsCalData.Chlorophyll.maxOutput	=	4130;
WETLabsCalData.Chlorophyll.scaleFactor	=	1.2000E-02;
WETLabsCalData.Chlorophyll.darkCounts	=	48;
WETLabsCalData.Chlorophyll.resolution	=	1;
WETLabsCalData.Chlorophyll.calTemperature	=	22.3;			
%CDOM or Scattering cal Constants			
WETLabsCalData.CDOM.maxOutput	=	4150;
WETLabsCalData.CDOM.scaleFactor	=	9.0200E-02;
WETLabsCalData.CDOM.darkCounts	=	38;
WETLabsCalData.CDOM.resolution	=	1.3;
WETLabsCalData.CDOM.calTemperature	=	22.3;			
% Scattering Sensor 700 None			
WETLabsCalData.Scatter_700.wavelength	=	700;
WETLabsCalData.Scatter_700.scaleFactor	=	3.1290E-06;
WETLabsCalData.Scatter_700.darkCounts	=	49;
WETLabsCalData.Scatter_700.resolution	=	1;

