<div dir="ltr">
<div>Grib2 input is big to attach, here is the link of actual file (take any day or forecast hours) : <a href="https://nomads.ncep.noaa.gov/pub/data/nccf/com/gens/prod/gefs.20260718/00/chem/pgrb2ap25/">https://nomads.ncep.noaa.gov/pub/data/nccf/com/gens/prod/gefs.20260718/00/chem/pgrb2ap25/</a></div><div>I am getting error in this line : lat_new(i,0:npts_range-1) = obs_lat(indexes)</div><div>error says : fatal:Subscript out of range, error in subscript #0<br>fatal:["Execute.c":8637]:Execute: Error occurred at or near line 68 in file Test_read.ncl</div><div><br></div><div>Thanks,</div><div>Debasish</div>

<br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Fri, Jul 17, 2026 at 10:26 PM Debasish Hazra <<a href="mailto:debasish.hazra5@gmail.com">debasish.hazra5@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div>I am trying to do a plot with station data in netcdf overlay on model output following this example here :<a href="https://www.ncl.ucar.edu/Applications/Scripts/polyg_8.ncl" target="_blank">https://www.ncl.ucar.edu/Applications/Scripts/polyg_8.ncl</a></div><div>But getting subscript range error. Attached is the ncl code and netcdf station data used for this. Any help on this is greatly appreciated.</div><div><br></div><div>Thanks</div><div>Debasish</div></div>
</blockquote></div>