Low-Level Functions for HDF4 Files
MATLAB® provides functions in three packages for accessing the HDF4 SD, GD, and SW interfaces. In addition, interface functions allow direct access to other HDF4 APIs. To use these functions, you must be familiar with the HDF library.
MATLAB supports HDF4 version 4.2.15.
Packages
matlab.io.hdf4.sd | Interact directly with HDF4 multifile scientific data set (SD) interface |
matlab.io.hdfeos.gd | Low-level access to HDF-EOS grid data |
matlab.io.hdfeos.sw | Low-level access to HDF-EOS swath files |
Functions
hdfan | Gateway to HDF multifile annotation (AN) interface |
hdfhx | Gateway to HDF external data (HX) interface |
hdfh | Gateway to HDF H interface |
hdfhd | Gateway to HDF HD interface |
hdfhe | Gateway to HDF HE interface |
hdfml | Utilities for working with MATLAB HDF gateway functions |
hdfpt | Interface to HDF-EOS Point object |
hdfv | Gateway to HDF Vgroup (V) interface |
hdfvf | Gateway to VF functions in HDF Vdata interface |
hdfvh | Gateway to VH functions in HDF Vdata interface |
hdfvs | Gateway to VS functions in HDF Vdata interface |
hdfdf24 | Gateway to HDF 24-bit raster image (DF24) interface |
hdfdfr8 | Gateway to HDF 8-bit raster image (DFR8) interface |
Examples and How To
- 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.
Concepts
- 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).