hdf images hdf images

HDF5 Tutorial:   Learning HDF5 with HDFView

This tutorial enables you to get a feel for HDF5 by using the HDFView browser. It does NOT require any programming experience. You just need to download and install HDFView (and a couple of other files).

Installation

Download and install HDFView. It can be downloaded from the HDFView Home Page.

The following text file and tool are used in this tutorial. You may wish to obtain them beforehand:

NOTE:   The storm1.txt file uses a space as a delimiter. Be sure that your version of HDFView is using a space delimiter (see Tools->User Options).

You can obtain h5dump from the Obtain Latest page. In the right-most column of the table at the end, you can separately download the HDF5 utilities, including h5dump.

Begin Tutorial

If you have HDFView installed, then bring it up and you are ready to begin the tutorial.

Here are some facts about HDF5 which may help in this tutorial:

  1. All HDF5 files contain a root group "/".
  2. There are two primary objects in HDF5, a group and a dataset.
      • By use of groups your data can be organized in a tree-like (or even more complex) structure.

Following are the topics covered in the tutorial. Do the first one to create the file, and then the others can be done in any order:

  1. Creating a New HDF5 file with a Contiguous Dataset
  2. Creating a Compressed and Chunked Dataset
  3. Creating an Image and a Subset
  4. Creating a Table

Creating a New HDF5 File with a Contiguous Dataset

Creating a Compressed and Chunked Dataset:

Create an Image and a Subset:

Create a Table or Compound Dataset:


- - Last modified:May 16th 2011