Commit 9746fd02 authored by Pierre Cazenave's avatar Pierre Cazenave
Browse files

Fix checking for NaNs in an array.

parent 00c69b0e
......@@ -464,7 +464,7 @@ for v = 1:length(fields)
% Get the temperature and salinity values for this node and
% interpolate down the water column (from HYCOM to FVCOM).
if ~isnan(norm_tpz)
if any(~isnan(norm_tpz))
fvtempz(pp, :) = interp1(norm_tpz, itempz(pp, ~mm), tfz, 'pchip', 'extrap');
%figure(800);
......
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