% sg_calib_constants.m 
% SG500 New Format for 66.11 upgrade, Kongsberg Document No. 4000122
% Last edited: 2015/06/18 SS

% basic glider and mission params
    id_str='500';
    mission_title='Ocean Test';
    mass=52.426;% kg
    volmax=51612;% cc
    rho0=1027.500;% kg/m3

% initial hydrodynamic model params
    hd_a=3.83600000E-03;
    hd_b=1.00780000E-02;
    hd_c=9.85000000E-06;
    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=259;
    pitch_max_cnts=3927;
    roll_min_cnts=213;
    roll_max_cnts=3849;
    vbd_min_cnts=500;
    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;

% Seabird CT Sail sensor cal constants
     calibcomm=' Serial #: 0075  CAL: 18-Dec-2012';%  Serial # and cal date
     t_g=4.39899499E-03;
     t_h=6.41838360E-04;
     t_i=2.66786693E-05;
     t_j=2.96825745E-06;
     c_g=-1.01163045E+01;
     c_h=1.14915205E+00;
     c_i=-2.38724861E-03;
     c_j=2.56990442E-04;
     cpcor=-9.5700E-08;
     ctcor=3.2500E-06;
     sbe_cond_freq_min=2.97328000E+00;% kHz, from cal for 0 salinity
     sbe_cond_freq_max=7.93917000E+00;% kHz, est for greater than 34.9 sal max T
     sbe_temp_freq_min=3.40233700E+00;% kHz, from cal for 1 deg T
     sbe_temp_freq_max=6.49876000E+00;% kHz, from cal for 32.5 deg T


% WETLabs wlbbfl2 calibration constants.
     WETLabsCalData_wlbbfl2_calinfo = ' SN: BBFL2VMT-1011, CAL: 29-Sep-2015 ';

     % Backscattering cal constants - wavelength 650
     WETLabsCalData.wlbbfl2.Scatter532.wavelength=650;
     WETLabsCalData.wlbbfl2.Scatter532.scaleFactor=3.880E-06;
     WETLabsCalData.wlbbfl2.Scatter532.darkCounts=40;
     WETLabsCalData.wlbbfl2.Scatter532.resolution=1.2;
 
     % Chlorophyll cal constants
     WETLabsCalData.wlbbfl2.Chlorophyll.wavelength=695;
     WETLabsCalData.wlbbfl2.Chlorophyll.darkCounts=48;
     WETLabsCalData.wlbbfl2.Chlorophyll.scaleFactor=1.1700E-02;
     WETLabsCalData.wlbbfl2.Chlorophyll.maxOutput=4130;
     WETLabsCalData.wlbbfl2.Chlorophyll.resolution=1.0;
     WETLabsCalData.wlbbfl2.Chlorophyll.calTemperature=22.0;
 
     % CDOM cal constants
     WETLabsCalData.wlbbfl2.CDOM.wavelength=460;
     WETLabsCalData.wlbbfl2.CDOM.maxOutput=4130;
     WETLabsCalData.wlbbfl2.CDOM.scaleFactor=8.6400E-02;
     WETLabsCalData.wlbbfl2.CDOM.darkCounts=45;
     WETLabsCalData.wlbbfl2.CDOM.resolution=1.3;
     WETLabsCalData.wlbbfl2.CDOM.calTemperature=22.0;

% end of file
