Page tree

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.

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


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: Compiling HDF5 Applications