How open a nc file in matlab
97 次查看(过去 30 天)
显示 更早的评论
hi everybody,
I tried to open a file.nc downloaded on aviso+ website. However, a message error appears:
>> load E:\cool.nc Error using load Number of columns on line 2 of ASCII file E:\cool.nc must be the same as previous lines.
Could someone help me please?
Thank you
jonathan
0 个评论
回答(1 个)
KSSV
2016-5-5
You cannot use load to read a nc file.....
ncfile = 'yourfile.nc' ; % nc file name
% To get information about the nc file
ncinfo(ncfile)
% to display nc file
ncdisp(ncfile)
% to read a vriable 'var' exisiting in nc file
myvar = ncread(ncfile,'var') ;
2 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 NetCDF 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!