socib / glider_toolbox

MATLAB/Octave scripts to manage data collected by a glider fleet, including data download, data processing and product and figure generation, both in real time and delayed time.
GNU General Public License v3.0
31 stars 23 forks source link

Adding extra sensors to preprocessing data #8

Closed foxrowan closed 7 years ago

foxrowan commented 7 years ago

Hi there, I am trying to add data from extra sensors into the preprocessing data struct data_pre. I am following the syntax of other sensor lists in configDataPreprocessingSlocum.m, however there are errors when I run it. Can you please add some example syntax for adding extra sensors into the preprocessing data?

cyrf0006 commented 7 years ago

Here an example from SeaExplorer ( configDataPreprocessingSeaExplorer.m)

  preprocessing_options.extra_sensor_list.minifluo1(1).fluorescence_270_340 = 'M1FL_PHD1';
  preprocessing_options.extra_sensor_list.minifluo1(1).fluorescence_255_360 = 'M1FL_PHD2';
  preprocessing_options.extra_sensor_list.minifluo1(1).fluorescence_monitoring_270_340 = 'M1FL_MON1';
  preprocessing_options.extra_sensor_list.minifluo1(1).fluorescence_monitoring_255_360 = 'M1FL_MON2';
  preprocessing_options.extra_sensor_list.minifluo1(1).fluorescence_emission_temperature = 'M1FL_TMPE';
  preprocessing_options.extra_sensor_list.minifluo1(1).fluorescence_detection_temperature = 'M1FL_TMPD'; 

  preprocessing_options.extra_sensor_list.minifluo1(2).fluorescence_270_340 = 'MFL_V1';
  preprocessing_options.extra_sensor_list.minifluo1(2).fluorescence_255_360 = 'MFL_V2';
  preprocessing_options.extra_sensor_list.minifluo1(2).fluorescence_monitoring_270_340 = 'MFL_V3';
  preprocessing_options.extra_sensor_list.minifluo1(2).fluorescence_monitoring_255_360 = 'MFL_V4';
  preprocessing_options.extra_sensor_list.minifluo1(2).fluorescence_emission_temperature = 'MFL_TMPE';
  preprocessing_options.extra_sensor_list.minifluo1(2).fluorescence_detection_temperature = 'MFL_TMPD';  

  preprocessing_options.extra_sensor_list.minifluo1(3).fluorescence_270_340 = 'UV1_V1';
  preprocessing_options.extra_sensor_list.minifluo1(3).fluorescence_255_360 = 'UV1_V2';
  preprocessing_options.extra_sensor_list.minifluo1(3).fluorescence_monitoring_270_340 = 'UV1_V3';
  preprocessing_options.extra_sensor_list.minifluo1(3).fluorescence_monitoring_255_360 = 'UV1_V4';  
  preprocessing_options.extra_sensor_list.minifluo1(3).fluorescence_emission_temperature = 'UV1_TMP1';
  preprocessing_options.extra_sensor_list.minifluo1(3).fluorescence_detection_temperature = 'UV1_TMP2';  

The number in parenthesis marks the priority. IMPORTANT: All variables within one sequence must be found! This is why some variables are repeated from one sequence to the other.

foxrowan commented 7 years ago

Thanks @cyrf0006! That worked great..