Extracting Attribute Info from .nc file
3 次查看(过去 30 天)
显示 更早的评论
Hi,
ncdisp('File.nc');
Source: C\Folders........\File.nc
Format: classic
Global Attributes:
YearInfo = '2100'
Dimensions: ...
Variables: ...
finfo=ncinfo('File.nc')
disp(finfo);
Attributes={info.Attributes.Name};
Attributes
The answer I get is:
ans = 1×1 cell array
{'YearInfo'}
...but what I am looking to extract is the info within YearInfo attribute...
'2100'
0 个评论
回答(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!