[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Null param tables when reading grib2 file



On Wed, 7 Jan 2009, Tom Margolis wrote:

Thanks, Robb.

We are already using the grib-6.0.jar, and it was accessed before
toolsUI-4.0.jar in the classpath. So there must be another root cause of
the problem.

ok, I'm attaching the latest grib jar. I think the problem is that the .gbx and the .fmrInv.xml files are not correct. If they exist then they are not remade, so rm *gbx and *xml and then try again. I forgot about those files.

Robb...


Note that, in the stack trace below, there is a reference to
"saveIndexFile not exist" - maybe that has something to do with the error?

Thanks for your time,
Tom

GribServiceProvider: saveIndexFile not exist
/d1/grib2/2008122317_F09_RUC20P.grb2.gbx ++
/d1/grib2/2008122317_F09_RUC20P.grb2.gbx
GribServiceProvider: use /d1/grib2/2008122317_F09_RUC20P.grb2.gbx
Hit uncaught exception java.lang.RuntimeException
java.lang.NullPointerException
at ucar.grib.grib2.ParameterTable.getParameter(ParameterTable.java:296)
at ucar.grib.grib2.Grib2Lookup.getParameter(Grib2Lookup.java:90)
at ucar.nc2.iosp.grib.Index2NC.makeVariableName(Index2NC.java:75)
at ucar.nc2.iosp.grib.Index2NC.open(Index2NC.java:121)
at
ucar.nc2.iosp.grib.Grib2ServiceProvider.open(Grib2ServiceProvider.java:87)
at ucar.nc2.iosp.grib.GribServiceProvider.open(GribServiceProvider.java:96)
at ucar.nc2.NetcdfFile.<init>(NetcdfFile.java:1076)
at ucar.nc2.NetcdfFile.open(NetcdfFile.java:589)
at ucar.nc2.NetcdfFile.open(NetcdfFile.java:314)
at ucar.nc2.dataset.NetcdfDataset.openOrAcquireFile(NetcdfDataset.java:576)
at ucar.nc2.dataset.NetcdfDataset.openDataset(NetcdfDataset.java:338)
at ucar.nc2.dataset.NetcdfDataset.acquireDataset(NetcdfDataset.java:417)
at ucar.nc2.dataset.NetcdfDataset.acquireDataset(NetcdfDataset.java:393)
at ucar.nc2.dt.grid.GridDataset.open(GridDataset.java:71)
We are aware of this problem, there are some RUC2 records that don't
have valid parameter Ids, ie 255. A fix has been made available from
the Decoder page: http://www.unidata.ucar.edu/software/decoders/
Download grib-decoder-java_6.0.16.tar.gz, get the lib/grib-6.0.jar and
modify your CLASSPATH so grib-6.0.jar is accessed before the
toolsUI-4.0.jar.

Robb...





On Mon, 22 Dec 2008, John Caron wrote:

Hi Tom:

Can you send us the file or a pointer to it?

Im forwarding to Robb Kambic, who does the grib work. You should send
future messages to address@hidden, so that im
not the bottleneck on these things. thanks!

JOhn

Tom Margolis wrote:
Hi John,

I'm working with Rob Weingruber ... and trying to open a grib2 file
with
the Unidata's ncdf4 Java API (version 4.0.20; toolsUI-4.0.jar). I am
pointing to a "lone" grib2 file, copied from another machine, with no
supporting files associated with it. I get the following exception:

java.lang.NullPointerException
at ucar.grib.grib2.ParameterTable.getParameter(ParameterTable.java:296)
at ucar.grib.grib2.Grib2Lookup.getParameter(Grib2Lookup.java:90)
at ucar.nc2.iosp.grib.Index2NC.makeVariableName(Index2NC.java:75)
at ucar.nc2.iosp.grib.Index2NC.open(Index2NC.java:121)
at
ucar.nc2.iosp.grib.Grib2ServiceProvider.open(Grib2ServiceProvider.java:87)

at
ucar.nc2.iosp.grib.GribServiceProvider.open(GribServiceProvider.java:96)

at ucar.nc2.NetcdfFile.<init>(NetcdfFile.java:1076)
at ucar.nc2.NetcdfFile.open(NetcdfFile.java:589)
at ucar.nc2.NetcdfFile.open(NetcdfFile.java:314)
at
ucar.nc2.dataset.NetcdfDataset.openOrAcquireFile(NetcdfDataset.java:576)

at ucar.nc2.dataset.NetcdfDataset.openDataset(NetcdfDataset.java:338)
at
ucar.nc2.dataset.NetcdfDataset.acquireDataset(NetcdfDataset.java:417)
at
ucar.nc2.dataset.NetcdfDataset.acquireDataset(NetcdfDataset.java:393)
at ucar.nc2.dt.grid.GridDataset.open(GridDataset.java:71)

Do I need some supporting param tables to be associated with this grib2
file? Are the param tables supposed to be part of the Unidata
distribution? Thanks,
Tom


===============================================================================

Robb Kambic Unidata Program Center
Software Engineer III Univ. Corp for Atmospheric Research
address@hidden WWW: http://www.unidata.ucar.edu/
===============================================================================



===============================================================================
Robb Kambic                                Unidata Program Center
Software Engineer III                      Univ. Corp for Atmospheric Research
address@hidden             WWW: http://www.unidata.ucar.edu/
===============================================================================

Attachment: grib-6.0.jar
Description: application/java-archive