from the first time step).</span>
0144             landmask = hycom.(currvar).data(:, :, 1, 1) &gt; 1.26e29;
0145 
0146             <span class="comment">% Create a mask of all the layers which are deeper than the</span>
0147             <span class="comment">% water depth.</span>
0148             zmask = hycom.(currvar).data(:, :, :, 1) &gt; 1.26e29;
0149 
0150             <span class="comment">% Set invalid depths to NaN.</span>
0151             hdepth(zmask) = nan;
0152 
0153             ftbverbose = fal