NetCDF Files
Network Common Data Form (netCDF) is a set of software libraries and machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data. You can interact with netCDF files in several ways:
The Import Tool app (in MATLAB® Online™) and the Import Data Live Editor task provide intuitive graphical interfaces for exploring and reading data from netCDF files.
The MATLAB high-level netCDF functions provide a simplified programmatic interface for reading data from netCDF files and writing data from the MATLAB workspace to netCDF files.
The MATLAB low-level netCDF functions provide finer control over the reading and writing process of netCDF files by providing access to more than 50 functions in the netCDF C library.
To use the MATLAB low-level netCDF functions, you must be familiar with netCDF C API programming concepts, described at
https://www.unidata.ucar.edu/software/netcdf/
.
MATLAB uses netCDF C library version 4.9.2.
Live Editor Tasks
Import Data | Import data from a file in the Live Editor (Seit R2023a) |
Apps
Import Tool | Import data from file |
Funktionen
Themen
- Import NetCDF Files and OPeNDAP Data
Read data from a netCDF file using the high-level functions, the low-level functions, and the Import Data Live Editor task.
- Export to NetCDF Files
Create, merge, and write netCDF files using high-level functions and the
netcdf
namespace low-level functions. - Map NetCDF API Syntax to MATLAB Syntax
The low-level functions in the MATLAB
netcdf
namespace map to the corresponding functions and data types in the netCDF C library.
Fehlersuche
Resolve Errors Reading OPeNDAP Data
When you have trouble reading OPeNDAP data, consider these factors.