Skip to content

Commit

Permalink
WQM parser is not trying to remove data that would have a wrong times…
Browse files Browse the repository at this point in the history
…tamp (two same timestamps in a row or the first timestamp to go back to the past). This will be handled somewhere else for any parser.
  • Loading branch information
ggalibert committed Dec 15, 2016
1 parent 13917e6 commit 25cea9b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
14 changes: 0 additions & 14 deletions Parser/readWQMdat.m
Original file line number Diff line number Diff line change
Expand Up @@ -221,20 +221,6 @@
end
time = datenum(time, timeFormat);

% WQM instrumensts (or the .DAT conversion sofware) have a habit of
% generating erroneous data sometimes, either missing a character , or
% inserting a 0 instead of the correct in the output to .DAT files.
% This is a simple check to make sure that all of the timestamps appear
% to be correct; there's only so much we can do though.
iBadTime = (diff(time) <= 0);
iBadTime = [false; iBadTime];
time(iBadTime) = [];

for k = 1:length(samples)
if k == 2, continue; end % time data has already been collected and filtered
samples{k}(iBadTime) = [];
end

% Let's find each start of bursts
dt = [0; diff(time)];
iBurst = [1; find(dt>(1/24/60)); length(time)+1];
Expand Down
9 changes: 0 additions & 9 deletions Parser/readWQMraw.m
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,6 @@
% convert and save the time data
time = wqmdata.datenumber;

% WQM instrumensts (or the .DAT conversion sofware) have a habit of
% generating erroneous data sometimes, either missing a character , or
% inserting a 0 instead of the correct in the output to .DAT files.
% This is a simple check to make sure that all of the timestamps appear
% to be correct; there's only so much we can do though.
iBadTime = (diff(time) <= 0);
iBadTime = [false; iBadTime];
time(iBadTime) = [];

% Let's find each start of bursts
dt = [0; diff(time)];
iBurst = [1; find(dt>(1/24/60)); length(time)+1];
Expand Down

0 comments on commit 25cea9b

Please sign in to comment.