% sg_calib_constants.m
% establishes glider calibration constants

% This fils is an example and MUST be changed apprpriately for your
% own glider.

id_str = '139';

mission_title =' HiOOS mission 1';

calibcomm = 'SBE s/n 0066, calibration 24 June 2007';

t_g =  4.34124325e-03 ;
t_h =  6.32630289e-04 ;
t_i =  2.55185502e-05 ; 
t_j =  2.86510039e-06;

% Minimum and maximum frequencies (kHz) for reasonable
%  oceanographic values of temperature from SBE calibration
%  for C/T s/n 038

sbe_temp_freq_min = 3.214274; % kHz
sbe_temp_freq_max = 6.081845; % kHz

c_g = -9.829944350e+00 ;
c_h =  1.09371696e+00 ;
c_i = -1.34708907e-04 ;
c_j =  1.84599255e-04 ;

% Minimum and maximum frequencies (kHz) for reasonable
%  oceanographic values of conductivity SBE calibration
%  for C/T s/n 038

sbe_cond_freq_min = 2.98792; % kHz
sbe_cond_freq_max = 7.95840; % kHz

cpcor = -9.57e-08 ;
ctcor =  3.25e-06 ;

calibcomm_oxygen = 'S/N430092 Jan 2007 0506';

Soc = 2.3736e-04;
Boc = 0.0;
Foffset = -837.0720;
TCor = -0.0002;
PCor = 1.350e-04;

A = 0; 
B = 0;
C = 0;
E = 0;

mass = 51.851; % From SFC, 26-Oct-07

hd_a = 0.003836;
hd_b = 0.010078;
hd_c = 9.8541e-6;

rho0 = 1027.5;

% Software limits

pitch_min_cnts = 435;
pitch_max_cnts = 3724;
roll_min_cnts = 227;
roll_max_cnts = 3931;
vbd_min_cnts = 450;
vbd_max_cnts = 3860;
vbd_cnts_per_cc = -4.0767;

volmax = 51045;   % From SFC, 26-Oct-07

pitchbias = 0.;

pump_rate_intercept = 1.275;
pump_rate_slope = -0.00015;
pump_power_intercept = 17.4033;
pump_power_slope = 0.017824;

