CDF Files
Common Data Format (CDF) is a self-describing data format for the storage of scalar and multidimensional data in a platform- and discipline-independent way. You can interact with CDF files in two ways:
The MATLAB® high-level CDF functions provide a simplified programmatic interface for reading data from CDF files.
The MATLAB low-level CDF functions provide finer control over the reading and writing process of CDF files by providing access to more than 90 functions in the CDF C library. To export data to a CDF file, you must use the low-level functions. To use these functions in MATLAB, prefix the function name with the
cdflib
namespace path. For example:cdfid = cdflib.open("example.cdf");
To use the MATLAB low-level CDF functions, you must be familiar with CDF C API programming concepts, described at
https://cdf.gsfc.nasa.gov/
.
MATLAB uses CDF C library version 3.8.1.
Functions
Topics
- Import CDF Files Using High-Level Functions
Use high-level functions to import a CDF file.
- Import CDF Files Using Low-Level Functions
Use low-level functions to read data from a CDF file.
- Represent CDF Time Values
Extract date and time information from CDF datasets.
- Export to CDF Files
Use low-level functions to write data to a CDF file.