197 
0198             <span class="comment">% We can assume that all layers will have NaNs in the same</span>
0199             <span class="comment">% place (horizontally), so just use the surface layer (1) for</span>
0200             <span class="comment">% the identification of NaNs. Also store the finite values so</span>
0201             <span class="comment">% we can find the nearest real value to the current NaN node</span>
0202             <span class="comment">% and use its temperature and salinity v