Extracting Attribute Info from .nc file

조회 수: 2 (최근 30일)
Robert
Robert 2018년 8월 4일
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개)

카테고리

Help CenterFile Exchange에서 NetCDF에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by