Matlab creates netcdf file but can’t open it later(ERROR: The NetCDF library encountered an error during execution of ‘open’ function – ‘Unknown file format (NC_ENOTNC)’
Hello, I’ve encountered a problem with NetCDF library, I would be very grateful for any tips how to solve it.
I’m trying to create a netcdffile and write variables in it. But for some reason after creating a file I can’t reach it anyhow (nccreate, ncdisp are getting the same error):
ncid = netcdf.create(‘F:GLORYS_dayARCGLORYS_surf.nc’,’NETCDF4′);
nccreate(‘F:GLORYS_dayARCGLORYS_surf.nc’,’Lat’,’Dimensions’,{‘Lat’ 205});
Error using matlab.internal.imagesci.netcdflib
The NetCDF library encountered an error during execution of ‘open’ function – ‘Unknown file format (NC_ENOTNC)’.
Error in netcdf.open (line 77)
[varargout{:}] = matlab.internal.imagesci.netcdflib(‘open’, …
Error in internal.matlab.imagesci.nc/openToAppend (line 1250)
this.ncRootid = netcdf.open(this.Filename,’WRITE’);
Error in internal.matlab.imagesci.nc (line 126)
this.openToAppend();
Error in nccreate (line 159)
ncObj = internal.matlab.imagesci.nc(ncFile,’a’, formatStr);
Error in export_to_netcdf (line 10)
nccreate(‘F:GLORYS_dayARCGLORYS_surf.nc’,’Lat’,’Dimensions’,{‘Lat’ 205});Hello, I’ve encountered a problem with NetCDF library, I would be very grateful for any tips how to solve it.
I’m trying to create a netcdffile and write variables in it. But for some reason after creating a file I can’t reach it anyhow (nccreate, ncdisp are getting the same error):
ncid = netcdf.create(‘F:GLORYS_dayARCGLORYS_surf.nc’,’NETCDF4′);
nccreate(‘F:GLORYS_dayARCGLORYS_surf.nc’,’Lat’,’Dimensions’,{‘Lat’ 205});
Error using matlab.internal.imagesci.netcdflib
The NetCDF library encountered an error during execution of ‘open’ function – ‘Unknown file format (NC_ENOTNC)’.
Error in netcdf.open (line 77)
[varargout{:}] = matlab.internal.imagesci.netcdflib(‘open’, …
Error in internal.matlab.imagesci.nc/openToAppend (line 1250)
this.ncRootid = netcdf.open(this.Filename,’WRITE’);
Error in internal.matlab.imagesci.nc (line 126)
this.openToAppend();
Error in nccreate (line 159)
ncObj = internal.matlab.imagesci.nc(ncFile,’a’, formatStr);
Error in export_to_netcdf (line 10)
nccreate(‘F:GLORYS_dayARCGLORYS_surf.nc’,’Lat’,’Dimensions’,{‘Lat’ 205}); Hello, I’ve encountered a problem with NetCDF library, I would be very grateful for any tips how to solve it.
I’m trying to create a netcdffile and write variables in it. But for some reason after creating a file I can’t reach it anyhow (nccreate, ncdisp are getting the same error):
ncid = netcdf.create(‘F:GLORYS_dayARCGLORYS_surf.nc’,’NETCDF4′);
nccreate(‘F:GLORYS_dayARCGLORYS_surf.nc’,’Lat’,’Dimensions’,{‘Lat’ 205});
Error using matlab.internal.imagesci.netcdflib
The NetCDF library encountered an error during execution of ‘open’ function – ‘Unknown file format (NC_ENOTNC)’.
Error in netcdf.open (line 77)
[varargout{:}] = matlab.internal.imagesci.netcdflib(‘open’, …
Error in internal.matlab.imagesci.nc/openToAppend (line 1250)
this.ncRootid = netcdf.open(this.Filename,’WRITE’);
Error in internal.matlab.imagesci.nc (line 126)
this.openToAppend();
Error in nccreate (line 159)
ncObj = internal.matlab.imagesci.nc(ncFile,’a’, formatStr);
Error in export_to_netcdf (line 10)
nccreate(‘F:GLORYS_dayARCGLORYS_surf.nc’,’Lat’,’Dimensions’,{‘Lat’ 205}); netcdf MATLAB Answers — New Questions