Main Content

Low-Level Functions

Interact directly with HDF4 library functions

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. For copyright information, see the hdf4copyright.txt file.

Packages directly with HDF4 multifile scientific data set (SD) interface access to HDF-EOS grid data access to HDF-EOS swath files


hdfanGateway to HDF multifile annotation (AN) interface
hdfhxGateway to HDF external data (HX) interface
hdfhGateway to HDF H interface
hdfhdGateway to HDF HD interface
hdfheGateway to HDF HE interface
hdfmlUtilities for working with MATLAB HDF gateway functions
hdfptInterface to HDF-EOS Point object
hdfvGateway to HDF Vgroup (V) interface
hdfvfGateway to VF functions in HDF Vdata interface
hdfvhGateway to VH functions in HDF Vdata interface
hdfvsGateway to VS functions in HDF Vdata interface
hdfdf24Gateway to HDF 24-bit raster image (DF24) interface
hdfdfr8Gateway to HDF 8-bit raster image (DFR8) interface

Exemples et procédures

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 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).