Problems in displaying contents of .nc file.
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello
I'm trying to display the contents of a .nc file that is in NetCDF4 format using Matlab 2016a. My code is:
clc;
close all;
ncdisp('MARv3.10-ERA-15km-2006.nc');
I'm getting the following error message:
Error using netcdflibUnable to open file. File may be corrupt or filename may have invalid characters. If the data
source was an OPeNDAP URL, see the OPeNDAP Troubleshooting section in the Users Guide.
Error in netcdf.open (line 59)
[varargout{:}] = netcdflib ( 'open', filename, varargin{1} );
Error in internal.matlab.imagesci.nc/openToRead (line 1265)
this.ncRootid = netcdf.open(this.Filename,'NOWRITE');
Error in internal.matlab.imagesci.nc (line 121)
this.openToRead();
Error in ncdisp (line 50)
ncObj = internal.matlab.imagesci.nc(ncFile);
Error in snow_dep_greenland (line 10)
ncdisp('MARv3.10-ERA-15km-2006.nc');
This is the first time that I got this error. I never faced this problem earlier. Can someone kindly help?
댓글 수: 0
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!