低级函数
与 HDF4 库函数直接交互
MATLAB® 采用三个包来提供用于访问 HDF4 SD、GD 和 SW 接口的函数。此外,利用接口函数还可以直接访问其他 HDF4 API。要使用这些函数,必须熟悉 HDF 库。
MATLAB 支持 HDF4 版本 4.2.15。
包
matlab.io.hdf4.sd | 直接与 HDF4 多文件科学数据集 (SD) 接口交互 |
matlab.io.hdfeos.gd | 低级别访问 HDF-EOS 网格数据 |
matlab.io.hdfeos.sw | 对 HDF-EOS 分段文件的低级别访问 |
函数
hdfan | HDF 多文件注释 (AN) 接口的入口 |
hdfhx | HDF 外部数据 (HX) 接口的入口 |
hdfh | HDF H 接口的入口 |
hdfhd | HDF HD 接口的入口 |
hdfhe | HDF HE 接口的入口 |
hdfml | 与 MATLAB HDF 入口函数配合使用的实用工具 |
hdfpt | HDF-EOS 点对象的接口 |
hdfv | HDF Vgroup (V) 接口的入口 |
hdfvf | HDF Vdata 接口中 VF 函数的入口 |
hdfvh | HDF Vdata 接口中 VH 函数的入口 |
hdfvs | HDF Vdata 接口中 VS 函数的入口 |
hdfdf24 | HDF 24 位光栅图像 (DF24) 接口的入口 |
hdfdfr8 | HDF 8 位光栅图像 (DFR8) 接口的入口 |
示例和操作指南
- Map HDF4 to MATLAB Syntax
Each HDF4 API includes many individual routines that you use to read data from files, write data to files, and perform other related functions.
- Import HDF4 Files Using Low-Level Functions
This example shows how to read data from a Scientific Data Set in an HDF4 file, using the functions in the
matlat.io.hdf4.sd
package. - Export to HDF4 Files
This example shows how to write MATLAB® arrays to a Scientific Data Set in an HDF4 file.
概念
- About HDF4 and HDF-EOS
Hierarchical Data Format (HDF4) is a general-purpose, machine-independent standard for storing scientific data in files, developed by the National Center for Supercomputing Applications (NCSA).