Skip to content

Commit

Permalink
Fix imosTiltVelocitySetQC in case ADCP does not output WCUR.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggalibert committed Apr 26, 2016
1 parent 4850cd1 commit 616a383
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion AutomaticQC/imosTiltVelocitySetQC.m
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,12 @@
tilt = acos(sqrt(1 - sin(roll*pi/180).^2 - sin(pitch*pi/180).^2))*180/pi;

% initially everything is failing the tests
sizeCur = size(sample_data.variables{idWcur}.flags);
if idUcur
idVar = idUcur;
else
idVar = idCspd;
end
sizeCur = size(sample_data.variables{idVar}.flags);
flags = ones(sizeCur, 'int8')*secondFlagThreshold;

% tilt test
Expand Down

0 comments on commit 616a383

Please sign in to comment.