[geotk] Netcdf Coverage
Fabien Carrion
fabien.carrion at gmail.com
Thu Dec 9 17:51:57 EST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
Ok I just tried the geotk nightly snapshot from
http://download.geotoolkit.org/SNAPSHOT/ and I get also a
NoSuchMethodError in the NetCDF and GRIB library.
Exception in thread "main" java.lang.NoSuchMethodError:
ucar.grib.grib2.Grib2Input.isValidFile(Lucar/unidata/io/RandomAccessFile;)Z
at
ucar.nc2.iosp.grib.GribGridServiceProvider.isValidFile(GribGridServiceProvider.java:76)
at ucar.nc2.NetcdfFile.open(NetcdfFile.java:742)
at ucar.nc2.NetcdfFile.open(NetcdfFile.java:403)
I just check in the last source of the stable grib jar from
http://www.unidata.ucar.edu/software/decoders/
and the class Grib2Input doesn't have any method isValidFile
I compared GribGridServiceProvider.isValidFile from geotk-bundle.jar and
netcdf-4.2.jar
and I have
geotk-bundle.jar
public boolean isValidFile(RandomAccessFile raf) {
try {
return Grib2Input.isValidFile(raf); } catch (Exception e) {
}
return false;
}
netcdf-4.2.jar
public boolean isValidFile(RandomAccessFile raf)
{
try
{
raf.seek(0L);
raf.order(0);
Grib2Input g2i = new Grib2Input(raf);
int edition = g2i.getEdition();
return ((edition == 1) || (edition == 2));
} catch (Exception e) {
}
return false;
}
In the changelogs of geotk-bundle.jar we have
CHANGES for Netcdf-Java library
Version 4.2.20100930.2314
Build Date = 2010-09-30 23:14:01
and in the netcdf-4.2
Version 4.2.20100527.2031
Build Date = 2010-05-27 20:31:52
It seems like geotk-bundle is using a preprelease or an rc version of
netcdf, which use also a prerelease of grib. I search on netcdf website
and didn't find it.
Thanks
On 12/09/2010 02:51 PM, Martin Desruisseaux wrote:
> Hello Fabian
>
> Actually I never tried to use the NetCDF library with GRIB files. I just
> tried it now with the file that you pointed to me. Using the latest code
> (SNAPSHOT), I got a NoSuchMethodError in the NetCDF and GRIB library. It
> may be a problem with my own classpath. But anyway, I'm in the process
> right now to "Mavenize" the NetCDF library (the talks is happening on
> the NetCDF mailing list). Given the large amount of dependencies used by
> NetCDF, that would make our life easier.
>
>
> Le 09/12/10 19:01, Fabien Carrion a écrit :
>> I would like to know if you need any help from me to investigate those
>> few
>> problems.
>
> I you didn't used the current development branch, that would be nice if
> you could try again with latest snapshot.
>
> 1) If you are using Maven, just use "SNAPSHOT" instead than the "3.15"
> (or older) version number.
>
> 2) If you are using the bundles, you can pickup a nightly build from
> http://download.geotoolkit.org/SNAPSHOT/
>
> If the problem is still presents, then please send me again the stack
> trace obtained with the newest code.
>
> Regards,
>
> Martin
> _______________________________________________
> Geotoolkit mailing list
> Geotoolkit at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geotoolkit
- --
Fabien Carrion
() Campagne du ruban ASCII -- Contre les mails en html
/\ contre les pieces-jointes Microsoft
Web: http://fabien.carrion.free.fr/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk0BXYgACgkQTe/bvZWuSM/x8wCgprhwsg1/BIx2FCern/yCBKd4
7H0AoM6ervjLUgLLfmkMhAAtdinGx+tc
=xEd2
-----END PGP SIGNATURE-----
More information about the Geotoolkit
mailing list