How open a nc file in matlab
92 views (last 30 days)
Show older comments
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 Comments
Answers (1)
KSSV
on 5 May 2016
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 Comments
See Also
Categories
Find more on NetCDF in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!