<div dir="ltr"><div>Coordinate subscripting is only available for 1-D coordinates. It looks like your file has 2-D coordinates. For 2-D, use NCL's lookup functions. See the doc page for <b>lat/lon functions</b>.<span> </span> This is independent of the type of projection, because all curvilinear projections should be using 2-D coordinate variables, such as your lat2d and lon2d.</div><div><br></div><div>For locating single points, use <b>getind_latlon2d</b>. For the boundary indices of a region, use <b>region_ind</b>.</div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 22, 2024 at 2:18 AM Debasish Hazra via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div>I am trying to plot a timeseries over a point location from a netcdf file which is in Lambert Conformal projection. I have defined <br></div><div> lat2d = a1->lat<br> lon2d = a1->lon</div><div> nlat = dimsizes(lat2d(:,0))<br> nlon = dimsizes(lat2d(0,:))<br> dims = dimsizes(lon2d)</div><div>print(dims)<br></div><div> precip_intg1 = a1->precip(0,:,:,:)<br> loc1 = precip_intg1(:,{32.635},{-106.338})</div><div><br></div><div>fatal:NclOneDValGetClosestIndex: finish coordinate index out of range, can't continue<br>fatal:Could not obtain coordinate indexes, unable to perform subscript</div><div><br></div><div>Is there a way to subscript lat,lon for Lambert projection in NCL.</div><div>Thanks</div><div>Debasish</div></div>
</blockquote></div></div>