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:

C    F90   C++   Python

For details on compiling an HDF5 application: Compiling HDF5 Applications