How to import a set of NetCDF Files?
1 次查看(过去 30 天)
显示 更早的评论
Hallo, Does someone know how to import a complete Dataset of NetCDF files. I have 54 files representing the sea levels from 1948 to 2011. so far I know how to read one file with ncread but I couldnt't find out how to import the entire set of the files.
0 个评论
采纳的回答
KSSV
2018-11-8
ncfiles = dir('*.nc') ; % you are in the folder where nc files are present
N = length(ncfiles) ; % number of files
% loop for each file
for i = 1:N
thisfile = ncfiles(i).name;
% load the data and do what you want
end
4 个评论
CHANG XV
2019-11-14
Have you sorted out this problem? I encounter the same problem this days. I have no idea about that. Thanks !
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 NetCDF 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!