CONFIGDATAPROCESSINGSLOCUMG1 Configure Slocum G1 glider data processing. Syntax: PROCESSING_OPTIONS = CONFIGDATAPROCESSINGSLOCUMG1() Description: PROCESSING_OPTIONS = CONFIGDATAPROCESSINGSLOCUMG1() should return a struct setting the options for Slocum G1 glider data processing as needed by the function PROCESSGLIDERDATA. Examples: processing_options = configDataProcessingSlocumG1() See also: PROCESSGLIDERDATA Authors: Joan Pau Beltran <joanpau.beltran@socib.cat>
configDataProcessingSlocumG1.m
0001 function processing_options = configDataProcessingSlocumG1() 0002 %CONFIGDATAPROCESSINGSLOCUMG1 Configure Slocum G1 glider data processing. 0003 % 0004 % Syntax: 0005 % PROCESSING_OPTIONS = CONFIGDATAPROCESSINGSLOCUMG1() 0006 % 0007 % Description: 0008 % PROCESSING_OPTIONS = CONFIGDATAPROCESSINGSLOCUMG1() should return a struct 0009 % setting the options for Slocum G1 glider data processing as needed by the 0010 % function PROCESSGLIDERDATA. 0011 % 0012 % Examples: 0013 % processing_options = configDataProcessingSlocumG1() 0014 % 0015 % See also: 0016 % PROCESSGLIDERDATA 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 processing_options = struct(); 0041 0042 processing_options.time_filling = true; 0043 processing_options.position_filling = true; 0044 processing_options.depth_filling = true; 0045 processing_options.attitude_filling = true; 0046 processing_options.heading_filling = true; 0047 processing_options.waypoint_filling = true; 0048 0049 processing_options.pressure_filtering = true; 0050 processing_options.pressure_filter_constant = 4; % Recommended setting from Seabird Data Processing Manual. 0051 processing_options.depth_ctd_derivation = true; 0052 0053 processing_options.profiling_list(1).depth = 'depth'; 0054 processing_options.profiling_list(1).time = 'time'; 0055 processing_options.profiling_list(2).depth = 'depth_ctd'; 0056 processing_options.profiling_list(2).time = 'time_ctd'; 0057 processing_options.profiling_list(3).depth = 'depth_ctd'; 0058 processing_options.profiling_list(3).time = 'time'; 0059 % Use default values for profile identification parameters: 0060 % stall (3), inversion (3), and length (10), and 0061 % shake (20), interrupt (180), and period (0). 0062 0063 processing_options.profile_min_range = 10; 0064 processing_options.profile_max_gap_ratio = 0.6; 0065 0066 processing_options.flow_ctd_list(1).time = 'time_ctd'; 0067 processing_options.flow_ctd_list(1).depth = 'depth_ctd'; 0068 processing_options.flow_ctd_list(1).pitch = 'pitch'; 0069 processing_options.flow_ctd_list(2).time = 'time'; 0070 processing_options.flow_ctd_list(2).depth = 'depth_ctd'; 0071 processing_options.flow_ctd_list(2).pitch = 'pitch'; 0072 processing_options.flow_ctd_list(3).time = 'time'; 0073 processing_options.flow_ctd_list(3).depth = 'depth'; 0074 processing_options.flow_ctd_list(3).pitch = 'pitch'; 0075 processing_options.flow_ctd_pitch_value = []; 0076 processing_options.flow_ctd_min_pitch = deg2rad(11); 0077 processing_options.flow_ctd_min_velocity = 0; 0078 0079 processing_options.sensor_lag_list = ... 0080 struct('corrected', {}, 'original', {}, 'parameters', {}); 0081 0082 processing_options.thermal_lag_list = ... 0083 struct('conductivity_corrected', {}, 'temperature_corrected', {}, ... 0084 'conductivity_original', {}, 'temperature_original', {}, ... 0085 'pressure_original', {}, 'parameters', {}); 0086 0087 processing_options.thermal_lag_list(1).conductivity_corrected = 'conductivity_corrected_thermal'; 0088 processing_options.thermal_lag_list(1).temperature_corrected = 'temperature_corrected_thermal'; 0089 processing_options.thermal_lag_list(1).conductivity_original = 'conductivity'; 0090 processing_options.thermal_lag_list(1).temperature_original = 'temperature'; 0091 processing_options.thermal_lag_list(1).pressure_original = 'pressure'; 0092 processing_options.thermal_lag_list(1).constant_flow = false; 0093 processing_options.thermal_lag_list(1).parameters = 'auto'; 0094 processing_options.thermal_lag_list(1).estimator = @nanmedian; 0095 processing_options.thermal_lag_list(1).minopts = struct(); 0096 0097 processing_options.salinity_list(1).salinity = 'salinity'; 0098 processing_options.salinity_list(1).conductivity = 'conductivity'; 0099 processing_options.salinity_list(1).temperature = 'temperature'; 0100 processing_options.salinity_list(1).pressure = 'pressure'; 0101 processing_options.salinity_list(2).salinity = 'salinity_corrected_thermal'; 0102 processing_options.salinity_list(2).conductivity = 'conductivity'; 0103 processing_options.salinity_list(2).temperature = 'temperature_corrected_thermal'; 0104 processing_options.salinity_list(2).pressure = 'pressure'; 0105 0106 processing_options.density_list(1).density = 'density'; 0107 processing_options.density_list(1).salinity = 'salinity'; 0108 processing_options.density_list(1).temperature = 'temperature'; 0109 processing_options.density_list(1).pressure = 'pressure'; 0110 processing_options.density_list(2).density = 'density_corrected_thermal'; 0111 processing_options.density_list(2).salinity = 'salinity_corrected_thermal'; 0112 processing_options.density_list(2).temperature = 'temperature'; 0113 processing_options.density_list(2).pressure = 'pressure'; 0114 0115 end