2
Vote

Error reading NetCdf files : Not a netcdf id

description

I get the following error:
Microsoft.Research.Science.Data.DataSetCreateException : Failed to create DataSet instance from uri TestFiles\waterlevel.nc: Not a netcdf id
----> Microsoft.Research.Science.Data.NetCDF4.NetCDFException : Not a netcdf id
 
And when I look at the contents of this netcdf file with NcBrowse is see all the data I need.. so the file is valid
 
I installed the public version of the installer (Scientific_DataSet_Public_1.2.6754.0.msi).
 
Please help!

comments

bfaassen wrote Jun 29, 2011 at 9:40 AM

I played arround a bit with the instantiated DataSet.. it seems I can get the variable info etc. but fetching the data throws this error. The code statement:
ds.Variables[0] // ok
ds.Variables[0].GetData() // error Not a netcdf id

Same with the statement:
var variable = ds.Variables[variableName]; // ok
var data = ds.GetData<float[,]>(variable.Name); // error Not a netcdf id

wrote Jun 29, 2011 at 9:41 AM

dvoits wrote Jun 29, 2011 at 10:40 AM

Probably the NC-file was created by a NetCDF library of version greater than 4.0. Current release of SDS uses 4.0, and thus cannot work with newer files.

wrote Nov 13, 2012 at 10:08 PM

wrote Feb 14, 2013 at 2:27 AM