netcdfobj - netcdf made easy.

版本 1.2.0.0 (4.6 KB) 作者: Aslak Grinsted
Easy interface for reading netcdf files.
1.1K 次下载
更新时间 2015/2/4

查看许可证

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

引用格式

Aslak Grinsted (2024). netcdfobj - netcdf made easy. (https://www.mathworks.com/matlabcentral/fileexchange/31615-netcdfobj-netcdf-made-easy), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2010a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.2.0.0

fixed serious bug in cdfdate2num

1.1.0.0

added a netcdf date -> datenum parser

1.0.0.0