NetCDF Files
Read or write netCDF files using MATLAB® high-level functions or the netCDF library package of low-level functions. High-level functions simplify the process of reading data from a netCDF file or writing a variable from the MATLAB workspace into a netCDF file.
For more control over the reading and writing process, use the NetCDF Library Package containing low-level functions. The low-level functions enable more control over the reading and writing process by providing access to the routines in the NetCDF C library.
MATLAB supports netCDF version 4.8.1.
Functions
Topics
- Import NetCDF Files and OPeNDAP Data
Read data from a NetCDF file using the high-level functions, and then read the file by using the
netcdf
package low-level functions. - Export to NetCDF Files
Create, merge, and write NetCDF files using high-level functions and the
netcdf
package low-level functions. - Map NetCDF API Syntax to MATLAB Syntax
The MATLAB
netcdf
package of low-level functions map to the corresponding routines and data types in the NetCDF C library.
Troubleshooting
Resolve Errors Reading OPeNDAP Data
When you have trouble reading OPeNDAP data, consider these factors.