hdf images hdf images

HDF5 Tutorial:   Learning The Basics
Creating a Compressed Dataset


Creating a Compressed Dataset

HDF5 requires you to use chunking to create a compressed dataset. (To use chunking efficiently, be sure to see the advanced topic, Chunking in HDF5.)

The following operations are required in order to create a compressed dataset:

For more information on compression, see the FAQ question on Using Compression in HDF5.

Programming Example


This example creates a chunked and ZLIB compressed dataset. It also includes comments for what needs to be done to create an SZIP compressed dataset. The example then reopens the dataset, prints the filter information, and reads the dataset.

For details on compiling an HDF5 application, click here .


- - Last modified: 21 December 2016