[ncl-talk] lat,lon subscript for Lambert projection

Debasish Hazra debasish.hazra5 at gmail.com
Thu Feb 22 02:17:36 MST 2024


Hi,
I am trying to plot a timeseries over a point location from a netcdf file
which is in Lambert Conformal projection. I have defined
 lat2d = a1->lat
 lon2d = a1->lon
  nlat = dimsizes(lat2d(:,0))
  nlon = dimsizes(lat2d(0,:))
  dims = dimsizes(lon2d)
print(dims)
         precip_intg1 = a1->precip(0,:,:,:)
          loc1 = precip_intg1(:,{32.635},{-106.338})

fatal:NclOneDValGetClosestIndex: finish coordinate index out of range,
can't continue
fatal:Could not obtain coordinate indexes, unable to perform subscript

Is there a way to subscript lat,lon for Lambert projection in NCL.
Thanks
Debasish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20240222/8dc1c663/attachment.htm>


More information about the ncl-talk mailing list