I've started trying to read GRIB2 files with JAVA which I downloaded at the NOAA GFS site. Using the library provided by unidata.ucar.edu. But, whatever, not working. Using the
NetcdfFile ncfileIn = ucar.nc2.dataset.NetcdfDataset.openFile(datasetIn, null);
code provided in the small cookbook at this site gives me an "Not a valid NETCDF" error.
Another possibility which I found here (retrieve some info from GRIB2 file with JAVA) did also not work out.
Someone working with GRIB2 files and JAVA? I do not stick to this library, but it seems the only one working (sometimes).
Thanks a lot! Gunther
Update: Solved. I was already using an older version of netcdf library in the whole project. Deleting this old one allowed the new one to work. Nice thing now. Of someone has problems with netcdf and Java, just reply.