NSF Unidata

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

[Fwd: Re: netcdf-java 4.0] (fwd)

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.



Bob,

You are correct, the current GRIBJava.tar.gz does point to the lastest code that works with nj 4.0 version.

I made a nj22 version and put it on the ftp site, get either:

grib-decoder-java_6.0.0.nj22.tar.gz
or
GRIBJavaNj22.tar.gz

Robb...

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

---------- Forwarded message ----------
Date: Wed, 07 Jan 2009 17:09:32 -0700
From: John Caron <address@hidden>
To: Robb Kambic <address@hidden>
Subject: [Fwd: Re: netcdf-java 4.0]

can you check on this?

-------- Original Message --------
Subject: Re: netcdf-java 4.0
Date: Wed, 07 Jan 2009 16:02:28 -0800
From: Bob Simons <address@hidden>
Organization: NOAA/ERD
To: John Caron <address@hidden>
References: <address@hidden> <address@hidden> <address@hidden>


2) It appears that the grib library available at
https://www.unidata.ucar.edu/downloads/decoders/index.jsp
doesn't work with netcdf-java 2.2.
If so, is the older version of the grib library available?

inside of

ftp://ftp.unidata.ucar.edu/pub/netcdf-java/v2.2.22/netcdfAll-2.2.22.zip

ill check with robb if his decoders page is out of date. what error were you 
getting?

I think the problem is that the decoders page is very up-to-date -- to
the point that it requires netcdf-java 4.0 and no longer offers a
library compatible with netcdf-java 2.2.22.   But perhaps I'm missing
something.

The error message that occurs when using the new grib library with
netcdf java 2.2.22 is:

Using default table:resources/grib/tables/wmo_2_v3.tab (74:-1:-1)
Exception in thread "main" java.lang.NoSuchMethodError:
ucar.grib.Index.getHorizCoordSys()Ljava/util/ArrayList;
        at ucar.nc2.iosp.grib.Index2NC.open(Index2NC.java:78)
        at
ucar.nc2.iosp.grib.Grib1ServiceProvider.open(Grib1ServiceProvider.java:74)
        at
ucar.nc2.iosp.grib.GribServiceProvider.open(GribServiceProvider.java:77)
        at ucar.nc2.NetcdfFile.<init>(NetcdfFile.java:1060)
        at ucar.nc2.NetcdfFile.open(NetcdfFile.java:467)
        at ucar.nc2.NetcdfFile.open(NetcdfFile.java:261)
        at ucar.nc2.NetcdfFile.open(NetcdfFile.java:231)
        at ucar.nc2.NetcdfFile.open(NetcdfFile.java:219)
        at ucar.nc2.NetcdfFile.open(NetcdfFile.java:207)

I looked at the source code. It appears that
ucar.grib.Index.getHorizCoordSys used to return an ArrayList, but now
returns a List.


Thank you.

John Caron wrote:
Hi Bob:

Im not sure if you are still using netcdf-java 2.2, but if you are,
could you try compiling against netcdf-java 4.0, and seeing what
problems you see? We are getting ready to release 4.0, and there have
been some minor API changes which Id like to know how/if they affect
users.
Ive started a document to guide the switch over, which ill improve
after getting comments from you and others:

  http://www.unidata.ucar.edu/software/netcdf-java/transition4.html

Thanks, and happy holidays.

John

--
Sincerely,

Bob Simons
IT Specialist
Environmental Research Division
NOAA Southwest Fisheries Science Center
1352 Lighthouse Ave
Pacific Grove, CA 93950-2079
Temporary phone number (831)648-0623 (don't leave a message if I'm not in)
[someday, I will again use my permanent phone number (831)658-3205]
address@hidden

The contents of this message are mine personally and
do not necessarily reflect any position of the
Government or the National Oceanic and Atmospheric
Administration.
<>< <>< <>< <>< <>< <>< <>< <>< <><