Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.
Hi Martin-My bad. I've make a fix and it will be in the next release. We'll also update the docs because visadNoDods.jar is required for reading McIDAS grids and GEMPAK files as well. Thanks for catching this.
Don Martin Desruisseaux wrote:
Hello allI'm using the NetCDF library version 4.1 without the visadNoDods.jar file (this dependency is big! 4.3Mb). In my understanding ofhttp://www.unidata.ucar.edu/software/netcdf-java/reference/JarDependencies.htmlthis dependency is optional if I don't need to read McIDAS AREA files. This work well for normal NetCDF I/O operations. But when trying to invoke the following code:NetcdfFile.canOpen("myFile")on any file that is not a NetCDF file (for example a PNG image), I get the following exception:java.lang.NoClassDefFoundError: visad/util/Trace at ucar.nc2.iosp.gempack.GempackStationFileIOSP.isValidFile:141 (...snip...) at ucar.nc2.NetcdfFile.canOpen(NetcdfFile.java:412)I can workaround with a try ... catch block. But is there any chance to have NetcdfFile.canOpen(...) to not check file format that depends on optional JAR files not present on the classpath?Regards, Martin _______________________________________________ netcdf-java mailing list netcdf-java@xxxxxxxxxxxxxxxxFor list information or to unsubscribe, visit: http://www.unidata.ucar.edu/mailing_lists/
-- ************************************************************* Don Murray UCAR Unidata Program dmurray@xxxxxxxxxxxxxxxx P.O. Box 3000 (303) 497-8628 Boulder, CO 80307 http://www.unidata.ucar.edu/staff/donm *************************************************************
netcdf-java
archives: