   <span class="comment">% get lon,lat, time</span>
    lon=nc{X_var}(:);
    lat=nc{Y_var}(:);
    jdmat=getTimes(nc_var,itime);

    <span class="comment">% get grid variable name (inference array)</span>
    G_var=getAttributes(nc_var,<span class="string">'grid'</span>);

    <span class="comment">% get data from grid variable (connectivity array)</span>
    grid=nc{G_var}(:);
    <span class="comment">%grid=nj_varget(uri,G_var);</span>
    [m,n]=size(grid);
    <span class="comment">% need t