Re: [netcdf-java] Fwd: Not a valid CDM file

I took a quick look, and to me it looks
like the Grib2Iosp class (and Grib1Iosp)
cannot be found in the registration code
in the static initializer.
Not sure why, yet.
=Dennis Heimbigner

Vineet Ghatge Hemantkumar wrote:
Hello All,

I am trying to pass a InputStream of a grib file to the function
*but it fails with following error

Caused by: Cant read : not a valid CDM file.
at ucar.nc2.NetcdfFile.openInMemory(

If I change the netcdf to and pass the file name it works

1. Will the openinmemory() work only for .nc files only?
2. What are options in netcdf to read inputstreams? My aim to is to make
code independent of filenames or any other specific configurations?



netcdf-java mailing list
For list information or to unsubscribe, visit:

  • 2014 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: