Extracting Attribute Info from .nc file
    7 views (last 30 days)
  
       Show older comments
    
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 Comments
Answers (0)
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!