How open a nc file in matlab

133 次查看(过去 30 天)
Jonathan Demmer
Jonathan Demmer 2016-5-5
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

回答(1 个)

KSSV
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 个评论
suchitra rani
suchitra rani 2019-8-14
can we open an grey scale image which was in netcdf format in matlab.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Data Import and Analysis 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by