[netcdf-java] GRIB bug report

Hello John and Unidata crew,

I ran into a GRIB reading error with some files from NCEP.  Here is a link
for sample files (change the date if needed, since they only keep 24-48
hours)
http://para.nomads.ncep.noaa.gov/pub/data/nccf/com/hiresw/para/href.20150518/

It is producing errors for forecast hours > 21.  Below is an example error
I'm seeing:

I'm using NetCDF-Java 4.6, released on May 15th.

Thanks!
Steve


Caused by: org.joda.time.IllegalFieldValueException: Value 27 for hourOfDay
must be in the range [0,23]
at org.joda.time.field.FieldUtils.verifyValueBounds(FieldUtils.java:236)
at
org.joda.time.chrono.BasicChronology.getDateTimeMillis(BasicChronology.java:172)
at
org.joda.time.chrono.AssembledChronology.getDateTimeMillis(AssembledChronology.java:133)
at org.joda.time.base.BaseDateTime.<init>(BaseDateTime.java:254)
at org.joda.time.DateTime.<init>(DateTime.java:435)
at ucar.nc2.time.CalendarDate.of(CalendarDate.java:54)
at ucar.nc2.grib.grib2.Grib2Pds.calcTime(Grib2Pds.java:1428)
at
ucar.nc2.grib.grib2.Grib2Pds$Grib2Pds12.getIntervalTimeEnd(Grib2Pds.java:673)
at
ucar.nc2.grib.grib2.table.Grib2Customizer.getForecastTimeInterval(Grib2Customizer.java:234)
at
ucar.nc2.grib.grib2.table.NcepLocalTables.getForecastTimeInterval(NcepLocalTables.java:217)
at
ucar.nc2.grib.grib2.table.Grib2Customizer.getForecastTimeIntervalOffset(Grib2Customizer.java:284)
at
ucar.nc2.grib.collection.Grib2CollectionBuilder.filterIntervals(Grib2CollectionBuilder.java:181)
at
ucar.nc2.grib.collection.Grib2CollectionBuilder.makeGroups(Grib2CollectionBuilder.java:123)
at
ucar.nc2.grib.collection.GribCollectionBuilder.createMultipleRuntimeCollections(GribCollectionBuilder.java:149)
at
ucar.nc2.grib.collection.GribCollectionBuilder.createIndex(GribCollectionBuilder.java:138)
at
ucar.nc2.grib.collection.GribCdmIndex.openGribCollectionFromDataFile(GribCdmIndex.java:740)
at
ucar.nc2.grib.collection.GribCdmIndex.openGribCollectionFromDataFile(GribCdmIndex.java:724)
at
ucar.nc2.grib.collection.GribCdmIndex.openGribCollectionFromRaf(GribCdmIndex.java:694)
at ucar.nc2.grib.collection.GribIosp.open(GribIosp.java:187)
at ucar.nc2.NetcdfFile.<init>(NetcdfFile.java:1527)
at ucar.nc2.NetcdfFile.open(NetcdfFile.java:824)
at ucar.nc2.NetcdfFile.open(NetcdfFile.java:428)
... 17 more


-- 
*Steve Ansari*
*Physical Scientist*
*NOAA National Centers for Environmental Information (NCEI)*
*(828) 271-4611*

The newly formed NCEI merges the National Oceanographic Data Center (NODC),
the National Climatic Data Center (NCDC), and the National Geophysical Data
Center (NGDC).
  • 2015 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: