configDataPreprocessingSeaglider

PURPOSE ^

CONFIGDATAPREPROCESSINGSEAGLIDER Configure Seaglider glider data preprocessing.

SYNOPSIS ^

function preprocessing_options = configDataPreprocessingSeaglider()

DESCRIPTION ^

CONFIGDATAPREPROCESSINGSEAGLIDER  Configure Seaglider glider data preprocessing.

  Syntax:
    PREPROCESSING_OPTIONS = CONFIGDATAPREPROCESSINGSEAGLIDER()

  Description:
    PREPROCESSING_OPTIONS = CONFIGDATAPREPROCESSINGSEAGLIDER() should return 
    a struct setting the options for Seaglider glider data preprocessing 
    as needed by the function PREPROCESSGLIDERDATA.

  Examples:
    preprocessing_options = configDataPreprocessingSeaglider()

  See also:
    PREPROCESSGLIDERDATA

  Authors:
    Joan Pau Beltran  <joanpau.beltran@socib.cat>

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

configDataPreprocessingSeaglider.m

SOURCE CODE ^

0001 function preprocessing_options = configDataPreprocessingSeaglider()
0002 %CONFIGDATAPREPROCESSINGSEAGLIDER  Configure Seaglider glider data preprocessing.
0003 %
0004 %  Syntax:
0005 %    PREPROCESSING_OPTIONS = CONFIGDATAPREPROCESSINGSEAGLIDER()
0006 %
0007 %  Description:
0008 %    PREPROCESSING_OPTIONS = CONFIGDATAPREPROCESSINGSEAGLIDER() should return
0009 %    a struct setting the options for Seaglider glider data preprocessing
0010 %    as needed by the function PREPROCESSGLIDERDATA.
0011 %
0012 %  Examples:
0013 %    preprocessing_options = configDataPreprocessingSeaglider()
0014 %
0015 %  See also:
0016 %    PREPROCESSGLIDERDATA
0017 %
0018 %  Authors:
0019 %    Joan Pau Beltran  <joanpau.beltran@socib.cat>
0020 
0021 %  Copyright (C) 2013-2016
0022 %  ICTS SOCIB - Servei d'observacio i prediccio costaner de les Illes Balears
0023 %  <http://www.socib.es>
0024 %
0025 %  This program is free software: you can redistribute it and/or modify
0026 %  it under the terms of the GNU General Public License as published by
0027 %  the Free Software Foundation, either version 3 of the License, or
0028 %  (at your option) any later version.
0029 %
0030 %  This program is distributed in the hope that it will be useful,
0031 %  but WITHOUT ANY WARRANTY; without even the implied warranty of
0032 %  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0033 %  GNU General Public License for more details.
0034 %
0035 %  You should have received a copy of the GNU General Public License
0036 %  along with this program.  If not, see <http://www.gnu.org/licenses/>.
0037 
0038   error(nargchk(0, 0, nargin, 'struct'));
0039   
0040   preprocessing_options = struct();
0041   
0042   preprocessing_options.sg_dive_params = { ...
0043     'TGT_LATLONG_tgt_lon' 'TGT_LATLONG_tgt_lat' ...
0044     'CURRENT_cur_dir' 'CURRENT_cur_spd' 'CURRENT_cur_val' };
0045   
0046   preprocessing_options.time_list(1).time = 'elaps_t';
0047   
0048   preprocessing_options.position_list(1).longitude = 'GPSFIX_fixlon';
0049   preprocessing_options.position_list(1).latitude  = 'GPSFIX_fixlat';
0050   preprocessing_options.position_list(1).conversion = @nmea2deg;
0051   preprocessing_options.position_list(1).date = 'GPSFIX_ddmmyy';
0052   preprocessing_options.position_list(1).time = 'GPSFIX_hhmmss';
0053   preprocessing_options.position_list(1).time_conversion = ...
0054     @(d,t)(utc2posixtime(fillSGMissingGPSDate(d,t)));
0055   
0056   preprocessing_options.depth_list(1).depth = 'depth';
0057   preprocessing_options.depth_list(1).conversion = @cm2m;
0058   
0059   preprocessing_options.attitude_list(1).roll = 'rollAng';
0060   preprocessing_options.attitude_list(1).pitch = 'pitchAng';
0061   preprocessing_options.attitude_list(1).conversion = @deg2rad;
0062   
0063   preprocessing_options.heading_list(1).heading = 'head';
0064   preprocessing_options.heading_list(1).conversion = @deg2rad;
0065 
0066   preprocessing_options.waypoint_list(1).longitude = 'TGT_LATLONG_tgt_lon';
0067   preprocessing_options.waypoint_list(1).latitude = 'TGT_LATLONG_tgt_lat';
0068   preprocessing_options.waypoint_list(1).conversion = @nmea2deg;
0069   
0070   preprocessing_options.water_velocity_list(1).velocity_eastward  = 'CURRENT_cur_spd';
0071   preprocessing_options.water_velocity_list(1).velocity_northward = 'CURRENT_cur_dir';
0072   preprocessing_options.water_velocity_list(1).conversion = @sgcur2cart;
0073   
0074   preprocessing_options.ctd_list(1).conductivity = 'sbect_condFreq';
0075   preprocessing_options.ctd_list(1).temperature  = 'sbect_tempFreq';
0076   preprocessing_options.ctd_list(1).pressure     = 'depth';
0077   preprocessing_options.ctd_list(1).pressure_conversion = @sgdepth2pres;
0078   preprocessing_options.ctd_list(1).calibration = @calibrateSBECT;
0079   
0080   preprocessing_options.oxygen_list(1).oxygen_concentration = 'aa1_O2';
0081   preprocessing_options.oxygen_list(1).oxygen_saturation    = 'aa1_AirSat';
0082   preprocessing_options.oxygen_list(1).temperature          = 'aa1_Temp';
0083   
0084   preprocessing_options.optics_list(1).chlorophyll = 'wl1_Chlsig1';
0085   preprocessing_options.optics_list(1).cdom        = 'wl1_Cdomsig1';
0086   preprocessing_options.optics_list(1).scatter_650 = 'wl1_sig1';
0087   preprocessing_options.optics_list(1).calibration = 'calibrateWLECOBbFl2';
0088   preprocessing_options.optics_list(2).chlorophyll = 'wlbbfl2vmt_Chlsig';
0089   preprocessing_options.optics_list(2).cdom        = 'wlbbfl2vmt_Cdomsig';
0090   preprocessing_options.optics_list(2).scatter_650 = 'wlbbfl2vmt_wl650sig';  
0091   preprocessing_options.optics_list(2).calibration = 'calibrateWLECOBbFl2';
0092   preprocessing_options.optics_list(3).chlorophyll = 'wlbbfl2vmt_Chlsig';
0093   preprocessing_options.optics_list(3).cdom        = 'wlbbfl2vmt_Cdomsig';
0094   preprocessing_options.optics_list(3).scatter_650 = 'wlbbfl2vmt_wl600sig';  
0095   preprocessing_options.optics_list(3).calibration = 'calibrateWLECOBbFl2';
0096   
0097   preprocessing_options.extra_sensor_list = struct();
0098 
0099 end
0100

Generated on Fri 06-Oct-2017 10:47:42 by m2html © 2005