Skip to content

Commit

Permalink
BREAKING CHANGES(qc): ErrorVelocity adcp markings
Browse files Browse the repository at this point in the history
This changes the way we classify adcp data based
on Error Velocity fields by using the mean value plus a threshold (error_velocity).
  • Loading branch information
ocehugo committed Aug 25, 2020
1 parent 270e53b commit 7aa8513
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions AutomaticQC/imosErrorVelocitySetQC.m
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@

% NaN for erv doesn't mean data is bad, it is just a 3 beam solution and ECUR is not available
iNaNerv = isnan(erv);
% Run QC
iPass = abs(erv) <= err_vel;
% Run QC NEED TO edit this as it should be the mean +/- the threshold.
ervm = nanmean(erv(:));
iPass = erv >= ervm - err_vel | erv <= ervm + err_vel;
iPass(iNaNerv) = true;

iFail = ~iPass;
Expand Down

0 comments on commit 7aa8513

Please sign in to comment.