200)=NaN;
    trisurf(grid,lon,lat,zeta);shading <span class="string">interp</span>;view(2);colorbar
    title(sprintf(<span class="string">'%s - %s (%s): %s'</span>,uris{i},var,s.units,datestr(jdmat)));

    <span class="comment">% set aspect ratio for lon/lat plot based on mean latitude</span>
    set (gca, <span class="string">'DataAspectRatio'</span>, [1 cos(gmean(lat(:))*pi/180) 1] );

      <span class="comment">% cleanup</span>
    close(nc);
    toc
<span class="keyword">end</span>
</pre>