NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: [netcdf-java] ArrayIndexOutOfBoundsException from ucar.nc2.dt.grid.GeoGrid.readDataSlice() while reading GRIB2 files

I grabbed the latest grib.jar and it seems to be working so far. I will test the 4.1 release also.

Thanks,
Kyle

Sent from my iPhone

On Nov 28, 2009, at 2:31 PM, "john caron" <caron@xxxxxxxxxxxxxxxx> wrote:

Should be fixed in latest 4.1 release (Version 4.1.20091124.2319)

please let us know otherwise



Kyle Watson wrote:

Hello,

I had sent an email regarding this issue a while ago and updated to the 4.1 candidate 2 library to fix it, and it seems to have been fixed for the Hawaii files I am using from the National Weather Service’s NDFD. I am receiving an AIOOB Exception when calling the readDataSlice method for Guam, though.

The GRIB2 file is attached and the stack trace can be found below.

Nov 17, 2009 10:38:37 PM ucar.nc2.dt.grid.GeoGrid readDataSlice

SEVERE: GeoGrid.getdataSlice() on dataset Wind_direction_from_which_blowing

java.lang.ArrayIndexOutOfBoundsException: 37249

at ucar.grib.grib2.Grib2DataSection.complexUnpacking (Grib2DataSection.java:384)

at ucar.grib.grib2.Grib2DataSection.<init>(Grib2DataSection.java:165)

at ucar.grib.grib2.Grib2Data.getData(Grib2Data.java:124)

at ucar.nc2.iosp.grib.GribGridServiceProvider._readData (GribGridServiceProvider.java:413)

at ucar.nc2.iosp.grid.GridServiceProvider.readXY (GridServiceProvider.java:398)

at ucar.nc2.iosp.grid.GridServiceProvider.readData (GridServiceProvider.java:301)

at ucar.nc2.NetcdfFile.readData(NetcdfFile.java:1743)

at ucar.nc2.Variable._read(Variable.java:990)

at ucar.nc2.Variable.read(Variable.java:789)

at ucar.nc2.dataset.VariableDS._read(VariableDS.java:500)

at ucar.nc2.Variable.read(Variable.java:789)

at ucar.nc2.Variable.read(Variable.java:735)

at ucar.nc2.dt.grid.GeoGrid.readDataSlice(GeoGrid.java:613)

at ucar.nc2.dt.grid.GeoGrid.readDataSlice(GeoGrid.java:524)

at util.DecodeGrib.decodeGribs(DecodeGrib.java:341)

at util.DecodeGrib.main(DecodeGrib.java:838)

Regards,

Kyle Watson

--- ---------------------------------------------------------------------

_______________________________________________
netcdf-java mailing list
netcdf-java@xxxxxxxxxxxxxxxx
For list information or to unsubscribe, visit: 
http://www.unidata.ucar.edu/mailing_lists/

  • 2009 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: