Which version of netCDF-Java are you using, and which signature of
openInMemory are you using?
On Friday, November 21, 2014, Vineet Ghatge Hemantkumar <hemantku@xxxxxxx>
> Hello All,
> I am trying to pass a InputStream of a grib file to the function
> *but it fails with following error
> Caused by: java.io.IOException: Cant read : not a valid CDM file.
> at ucar.nc2.NetcdfFile.open(NetcdfFile.java:811)
> at ucar.nc2.NetcdfFile.openInMemory(NetcdfFile.java:728)
> If I change the netcdf to netcdf.open() 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?