NetCDF 文件
网络通用数据格式
使用 MATLAB® 高级函数或包含低级函数的 netCDF 库程序包读取或写入 netCDF 文件。高级函数简化了从 netCDF 文件读取数据或将变量从 MATLAB 工作区写入 netCDF 文件的过程。
为了对读写过程进行更多控制,请使用包含低级函数的 NetCDF 库程序包。低级函数让您能够访问 NetCDF C 库中的例程,从而可以对读写过程进行更多控制。
MATLAB 支持 netCDF 版本 4.8.1。
函数
主题
- 导入 NetCDF 文件和 OPeNDAP 数据
本文先后使用
netcdf
包中的高级函数和低级函数读取 NetCDF 文件。 - 导出到 NetCDF 文件
使用高级函数和
netcdf
包低级函数创建、合并和写入 NetCDF 文件。 - 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.
疑难解答
Resolve Errors Reading OPeNDAP Data
When you have trouble reading OPeNDAP data, consider these factors.