Skip to content
Snippets Groups Projects
Commit 600f94a6 authored by oboebel's avatar oboebel
Browse files

No commit message

No commit message
parent fe678fff
No related branches found
No related tags found
No related merge requests found
......@@ -149,9 +149,10 @@ end
lon = nemo.float.collect(float, 'SECOND_ORDER_INFORMATION', 'best_guess_position_lon', 'combine');
src = cellfun(@(x) x.SECOND_ORDER_INFORMATION.best_guess_position_src, float, 'UniformOutput', false);
second_order_datevec = nemo.float.collect(float, 'SECOND_ORDER_INFORMATION', 'best_guess_datevec', 'combine');
% set values that are not gps nor iridium to NaN
% set values that are not gps nor iridium or not argos to NaN
gps_indices = strcmp(src, 'gps');
iridium_indices = strcmp(src, 'iridium');
argos_indices = strcmp(src, 'argos');
% set src so that it can be integrated into a matrix
src_double = NaN(size(src));
if isrow(src_double)
......@@ -159,6 +160,7 @@ end
end
src_double(gps_indices) = 1;
src_double(iridium_indices) = 2;
src_double(argos_indices) = 3;
% get all fieldnames of SAT_FORMAT
fnames = fieldnames(SAT_FORMAT);
......@@ -172,7 +174,7 @@ end
SAT_DATA(:, SAT_FORMAT.hour_rtc) = second_order_datevec(:, 4);
SAT_DATA(:, SAT_FORMAT.minutes_rtc) = second_order_datevec(:, 5);
SAT_DATA(:, SAT_FORMAT.seconds_rtc) = second_order_datevec(:, 6);
SAT_DATA = SAT_DATA(gps_indices | iridium_indices, :);
SAT_DATA = SAT_DATA(gps_indices | iridium_indices | argos_indices, :);
clear lat lon src src_double second_order_datevec fnames;
rafos_data = nemo.float.collect(float, 'RAFOS_VALUES', '', 'combine');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment