alues.</span>
0203             fvidx = 1:fn;
0204             fvnanidx = fvidx(isnan(fvtemp(:, 1)));
0205             fvfinidx = fvidx(~isnan(fvtemp(:, 1)));
0206 
0207             <span class="keyword">for</span> ni = 1:length(fvnanidx)
0208                 <span class="comment">% Find the nearest non-nan data (temp, salinity, u or v)</span>
0209                 <span class="comment">% value.</span>
0210                 xx = flon(fvnanidx(ni));
0211                 yy = flat(fvnanidx(ni));
0212            