Commit eecebbec authored by Pierre Cazenave's avatar Pierre Cazenave

Handle masking when we have not set an explicit rule for a variable.

parent a73f0b5e
......@@ -164,6 +164,9 @@ for v = 1:length(fields)
case 'ssh'
warning('Removing sea surface height values below -20m from the HYCOM data.')
mask_alt = tpctemp2 < -20;
otherwise
% Some other variable we won't mask.
mask_alt = true(size(tpctemp2));
end
mask = logical(~(~mask .* ~mask_alt));
clear mask_alt
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment