Okay, thanks a lot for looking at it!
-----Original Message-----
From: Robb Kambic [mailto:rkambic@xxxxxxxxxxxxxxxx]
Sent: Monday, March 15, 2010 4:52 PM
To: Kyle Watson
Cc: john caron; netcdf-java@xxxxxxxxxxxxxxxx; Ethan Davis
Subject: Re: [netcdf-java] ArrayIndexOutOfBoundsException from
ucar.nc2.dt.grid.GeoGrid.readDataSlice() while reading GRIB2 files
On Mon, 15 Mar 2010, Kyle Watson wrote:
> Hello John,
>
> I seem to be having this same issue with GRIB files for Puerto Rico now.
Is there any chance you guys could take a look at it? I have attached the
GRIB2 files (ds.pop12.bin & ds.wx.bin).
Hiya Kyle,
These bin files have uncommon internal packing configurations that has
caused the past and present data extraction errors reported. Hopefully
this is the end of these type errors, I've scanned the code for uncommon
configurations.
Thanks for the sample files that have made the fixes easy. A new grib
library will be in the next netcdf-java snapshot release. At this time, I
don't know when exactly that will become available.
Thanks,
RObb...
>
> For GRIB2 file: ds.wx.bin
>
> 3/15/2010 14:00:49 [ERROR] GeoGrid.getdataSlice() on dataset
> Categorical_Rain -
> java.lang.ArrayIndexOutOfBoundsException: 76953
> at
> ucar.grib.grib2.Grib2DataSection.complexUnpacking(Grib2DataSection.java:402)
> at ucar.grib.grib2.Grib2DataSection.<init>(Grib2DataSection.java:172)
> at ucar.grib.grib2.Grib2Data.getData(Grib2Data.java:124)
> at
> ucar.nc2.iosp.grib.GribGridServiceProvider._readData(GribGridServiceProvider.java:416)
> at
> ucar.nc2.iosp.grid.GridServiceProvider.readXY(GridServiceProvider.java:400)
> at
> ucar.nc2.iosp.grid.GridServiceProvider.readData(GridServiceProvider.java:303)
> at ucar.nc2.NetcdfFile.readData(NetcdfFile.java:1780)
> at ucar.nc2.Variable._read(Variable.java:1010)
> at ucar.nc2.Variable.read(Variable.java:809)
> at ucar.nc2.dataset.VariableDS._read(VariableDS.java:503)
> at ucar.nc2.Variable.read(Variable.java:809)
> at ucar.nc2.Variable.read(Variable.java:755)
> at ucar.nc2.dt.grid.GeoGrid.readDataSlice(GeoGrid.java:613)
> at ucar.nc2.dt.grid.GeoGrid.readDataSlice(GeoGrid.java:524)
> at
> com.hughestelematics.www.scheduler.DecodeGrib.decodeGribs(DecodeGrib.java:340)
> at
> com.hughestelematics.www.scheduler.DecodeGrib.main(DecodeGrib.java:904)
>
> For GRIB2 file: ds.pop12.bin
> 3/15/2010 14:00:45 [ERROR] GeoGrid.getdataSlice() on dataset
> Total_precipitation -
> java.lang.ArrayIndexOutOfBoundsException: 76953
> at
> ucar.grib.grib2.Grib2DataSection.complexUnpacking(Grib2DataSection.java:402)
> at ucar.grib.grib2.Grib2DataSection.<init>(Grib2DataSection.java:172)
> at ucar.grib.grib2.Grib2Data.getData(Grib2Data.java:124)
> at
> ucar.nc2.iosp.grib.GribGridServiceProvider._readData(GribGridServiceProvider.java:416)
> at
> ucar.nc2.iosp.grid.GridServiceProvider.readXY(GridServiceProvider.java:400)
> at
> ucar.nc2.iosp.grid.GridServiceProvider.readData(GridServiceProvider.java:303)
> at ucar.nc2.NetcdfFile.readData(NetcdfFile.java:1780)
> at ucar.nc2.Variable._read(Variable.java:1010)
> at ucar.nc2.Variable.read(Variable.java:809)
> at ucar.nc2.dataset.VariableDS._read(VariableDS.java:503)
> at ucar.nc2.Variable.read(Variable.java:809)
> at ucar.nc2.Variable.read(Variable.java:755)
> at ucar.nc2.dt.grid.GeoGrid.readDataSlice(GeoGrid.java:613)
> at ucar.nc2.dt.grid.GeoGrid.readDataSlice(GeoGrid.java:524)
> at
> com.hughestelematics.www.scheduler.DecodeGrib.decodeGribs(DecodeGrib.java:340)
> at
> com.hughestelematics.www.scheduler.DecodeGrib.main(DecodeGrib.java:904)
>
>
>
> -----Original Message-----
> From: netcdf-java-bounces@xxxxxxxxxxxxxxxx
> [mailto:netcdf-java-bounces@xxxxxxxxxxxxxxxx] On Behalf Of Kyle Watson
> Sent: Saturday, November 28, 2009 2:34 PM
> To: john caron
> Cc: netcdf-java@xxxxxxxxxxxxxxxx
> Subject: 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/
>>
> _______________________________________________
> netcdf-java mailing list
> netcdf-java@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe, visit:
> http://www.unidata.ucar.edu/mailing_lists/
>
===============================================================================
Robb Kambic Unidata Program Center
Software Engineer III Univ. Corp for Atmospheric Research
rkambic@xxxxxxxxxxxxxxxx WWW: http://www.unidata.ucar.edu/
===============================================================================