필터 지우기
필터 지우기

Problems in displaying contents of .nc file.

조회 수: 2 (최근 30일)
prateek gantayat
prateek gantayat 2019년 10월 22일
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개)

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by