This script loads netCDF files into MATLAB and displays info about the dimensions and variables.
The code should at least work on ERA-40, ERA-interim and NCEP/NCAR reanalysis data.
I wrote the script since I can't find a function in the built-in set of netCDF functions included in MATLAB that displays all header info of the file, equivalent to the old 'ncdump' function.
Christian Stranne (2022). Read netCDF files and display variable information (https://www.mathworks.com/matlabcentral/fileexchange/31284-read-netcdf-files-and-display-variable-information), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!