Reading information of a NetCDF file

Version 1.0.0 (1.65 KB) by Leon
"ncdisp" does not indicate the N number of a variable. Here is an alternative function. Var = netcdf.getVar(ncid, N);
29 Downloads
Updated 10 Nov 2020

View License

To get the value of a variable, you would need the N number as below:

Var = netcdf.getVar(ncid, N);

Currently, the "ncdisp" function does not indicate the N number of a variable. This new function called "ncwhos" indicates the N number along with the other info.

Cite As

Leon (2026). Reading information of a NetCDF file (https://www.mathworks.com/matlabcentral/fileexchange/82655-reading-information-of-a-netcdf-file), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2020b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags
Version Published Release Notes
1.0.0