Problems with netcdf files.
古いコメントを表示
I am trying to use the command ncdisp(source) for displaying the contents in a netcdf file. But I keep getting the following errors:
Error using netcdflib
The NetCDF library encountered an error during execution of 'open' function - 'Unknown file format (NC_ENOTNC)'.
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);
What am I doing wrong, I would like to know? Thank you!
9 件のコメント
What does
which ncdisp
show up?
Anamika Das
2022 年 3 月 10 日
編集済み: Anamika Das
2022 年 3 月 10 日
KSSV
2022 年 3 月 10 日
Is the file huge? Or small? If small one attach here.
Anamika Das
2022 年 3 月 10 日
KSSV
2022 年 3 月 10 日
Did you try with a samll ncfile? I suspect the file is corrupt (I might be wrong though).
Anamika Das
2022 年 3 月 10 日
Anamika Das
2022 年 3 月 10 日
KSSV
2022 年 3 月 10 日
You try out reading other nc files and check.
Anamika Das
2022 年 3 月 10 日
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で NetCDF についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!