o check for orientation of connectivity array</span>
    <span class="keyword">if</span> m==3,
        grid=grid.';
    <span class="keyword">elseif</span> n~=3
        disp(<span class="string">'Error:Currently handling triangles only'</span>);<span class="keyword">return</span>
    <span class="keyword">end</span>


   <span class="comment">% plot data</span>

    figure(i)
    lon(abs(lon)&gt;200)=NaN;  <span class="comment">% eliminate any lon/lat outside of range</span>
    lat(abs(lat)&gt;