netcdfobj - netcdf made easy.
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
Cita come
Aslak Grinsted (2024). netcdfobj - netcdf made easy. (https://www.mathworks.com/matlabcentral/fileexchange/31615-netcdfobj-netcdf-made-easy), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- Mathematics and Optimization > Mapping Toolbox > Coordinate Reference Systems >
- Radar > Mapping Toolbox > Coordinate Reference Systems >
- MATLAB > Data Import and Analysis > Data Import and Export > Standard File Formats > NetCDF >
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.