You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
allows you to easily access atrributes and variables from a netcdf file.
And can also convert the netcdf dates to datenums.
Example1:
o=netcdfobj('e:\meanstationpressure.cdf');
o.vars
pressure=o.vars.pressure.value;
EXAMPLE2:
n=netcdfobj('ice5g_v1.2_21.0k_1deg.nc');
>> n.vars
lat
bounds_lat
long
bounds_long
orog
sftgit
sftgif
>> n.vars.lat.atts
bounds: bounds_lat
standard_name: latitude
units: degrees_north
axis: Y
>> lat=n.vars.lat.value;
>> imagesc(n.vars.long.value,lat,n.vars.orog.value')
>> axis xy
Cite As
Aslak Grinsted (2026). netcdfobj - netcdf made easy. (https://se.mathworks.com/matlabcentral/fileexchange/31615-netcdfobj-netcdf-made-easy), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.2.0.0 (4.57 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
