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.
On Jan 16, 2009, at 10:26, Chad Saxon wrote:
i downloaded the current stable version 2.2.22 and looked throughout all the jar files to see what was there. the examples given online @ https://www.unidata.ucar.edu/software/netcdf/java/examples/ show imports such as: import ucar.multiarray.ArrayMultiArray; import ucar.multiarray.IndexIterator; [etc.] ive looked through all the jar files after i have downloaded the minimal library and the complete zip file and i havent found any of these.
Chad, Note that the examples at the webpage above have a header that says > Note: These examples use the old version 1 Java netCDF interface, > which we do not recommend for new development. Instead, please use > NetCDF Java Library (Version 2), which is more efficient, simpler, > and provides better support for remote access using HTTP or > DODS. Similar examples are available in the NetCDF Java (version 2) > User's Manual. The cited user's manual is linked on the netCDF Java homepage, but it's somewhat hidden away as it's listed as the last line under the NJ 2.2.20 distribution. It's also a bit "spare' in its documentation, so you will find it useful to browse the Javadoc APIs.
i guess i am confused as to what jar file(s) i need to include in my netbeans project before i can start reading netcdf files. basically as i said a above all i would like to do right now is to open the netcdf file and get some data.
I'm the author of the Panoply netCDF viewer. Fundamentally, it only requires the netcdf-2.2.22.jar or netcdf-4.0.jar to operate, but either of those jars in turn requires several other jars lest you run into a load of errors at run time. Here's what I've ended up having to include: netcdf-2.2.22.jar or netcdf-4.0.jar bufr-1.4.jar commons-codec-1.3.jar commons-httpclient-3.1.jar commons-logging-1.1.jar grib-6.0.jar jdom.jar opendap-2.1.jar slf4j-jdk14.jar Most of these can be found in the "complete zip file". I'm using the separate netCDF-N.N jar as I don't need the UI version that's in the complete zip. The slf4j jar is also not in the zip, but is linked elsewhere on the netCDF Java page. Everything else in the zip I'vemanaged to do without, so far. -- Robert B. Schmunk, Robert.B.Schmunk@xxxxxxxxNASA Goddard Institute for Space Studies, 2880 Broadway, New York, NY 10025
netcdf-java
archives: