configDataPreprocessingSlocum

PURPOSE ^

CONFIGDATAPREPROCESSINGSLOCUM Configure Slocum glider data preprocessing.

SYNOPSIS ^

function preprocessing_options = configDataPreprocessingSlocum()

DESCRIPTION ^

CONFIGDATAPREPROCESSINGSLOCUM  Configure Slocum glider data preprocessing.

  Syntax:
   PREPROCESSING_OPTIONS = CONFIGDATAPREPROCESSINGSLOCUM()

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

  Examples:
    processing_options = configDataPreprocessingSlocum()

  See also:
    PREPROCESSGLIDERDATA

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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

configDataPreprocessingSlocum.m

SOURCE CODE ^

0001 function preprocessing_options = configDataPreprocessingSlocum()
0002 %CONFIGDATAPREPROCESSINGSLOCUM  Configure Slocum glider data preprocessing.
0003 %
0004 %  Syntax:
0005 %   PREPROCESSING_OPTIONS = CONFIGDATAPREPROCESSINGSLOCUM()
0006 %
0007 %  Description:
0008 %    PREPROCESSING_OPTIONS = CONFIGDATAPREPROCESSINGSLOCUM() should return a
0009 %    struct setting the options for Slocum glider data preprocessing as needed
0010 %    by the function PREPROCESSGLIDERDATA.
0011 %
0012 %  Examples:
0013 %    processing_options = configDataPreprocessingSlocum()
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.time_list(1).time = 'm_present_time';
0043   preprocessing_options.time_list(2).time = 'sci_m_present_time';
0044   
0045   preprocessing_options.position_list(1).longitude = 'm_gps_lon';
0046   preprocessing_options.position_list(1).latitude  = 'm_gps_lat';
0047   preprocessing_options.position_list(1).conversion = @nmea2deg;
0048   preprocessing_options.position_list(1).position_status = 'm_gps_status';
0049   preprocessing_options.position_list(1).position_good = 0;
0050   preprocessing_options.position_list(2).longitude = 'm_lon';
0051   preprocessing_options.position_list(2).latitude  = 'm_lat';
0052   preprocessing_options.position_list(2).conversion = @nmea2deg;
0053   
0054   preprocessing_options.depth_list.depth = 'm_depth';
0055   
0056   preprocessing_options.attitude_list(1).roll = 'm_roll';
0057   preprocessing_options.attitude_list(1).pitch = 'm_pitch';
0058   
0059   preprocessing_options.heading_list.heading = 'm_heading';
0060 
0061   preprocessing_options.waypoint_list(1).longitude = 'c_wpt_lon';
0062   preprocessing_options.waypoint_list(1).latitude = 'c_wpt_lat';
0063   preprocessing_options.waypoint_list(1).conversion = @nmea2deg;
0064   
0065   preprocessing_options.water_velocity_list(1).velocity_eastward  = 'm_final_water_vx';
0066   preprocessing_options.water_velocity_list(1).velocity_northward = 'm_final_water_vy';
0067   
0068   preprocessing_options.ctd_list(1).conductivity = 'sci_water_cond';
0069   preprocessing_options.ctd_list(1).temperature  = 'sci_water_temp';
0070   preprocessing_options.ctd_list(1).pressure     = 'sci_water_pressure';
0071   preprocessing_options.ctd_list(1).time         = 'sci_ctd41cp_timestamp';
0072   preprocessing_options.ctd_list(1).pressure_conversion = @bar2dbar;
0073   
0074   preprocessing_options.ctd_list(2).conductivity = 'm_water_cond';
0075   preprocessing_options.ctd_list(2).temperature  = 'm_water_temp';
0076   preprocessing_options.ctd_list(2).pressure     = 'm_water_pressure';
0077   preprocessing_options.ctd_list(2).time         = [];
0078   preprocessing_options.ctd_list(2).pressure_conversion = @bar2dbar;
0079 
0080   preprocessing_options.oxygen_list(1).oxygen_concentration = 'sci_oxy3835_oxygen';
0081   preprocessing_options.oxygen_list(1).oxygen_saturation    = 'sci_oxy3835_saturation';
0082   preprocessing_options.oxygen_list(1).temperature          = 'sci_oxy3835_temp';
0083   preprocessing_options.oxygen_list(1).time                 = 'sci_oxy3835_timestamp';
0084   
0085   preprocessing_options.optics_list(1).chlorophyll = 'sci_flntu_chlor_units';
0086   preprocessing_options.optics_list(1).turbidity   = 'sci_flntu_turb_units';
0087   preprocessing_options.optics_list(1).temperature = 'sci_flntu_temp';
0088   preprocessing_options.optics_list(1).time        = 'sci_flntu_timestamp';
0089   
0090   preprocessing_options.extra_sensor_list = struct();
0091     
0092 end
0093

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