Please be sure to see HDF5 Filter Plugins, a convenience software that packages together many of the commonly used filters that users have created and registered.
Members of the HDF5 user community can create and register Third-Party (compression or other) filters for use with HDF5. See Example Code to Enable BZIP2 Compression in HDF5 for how to create a filter.
To register a filter please contact The HDF Helpdesk with the following information:
Here is the current policy regarding filter identifier assignment:
Please contact the maintainer of a filter for help with the filter/compression support in HDF5.
|LZO lossless compression used by PyTables
|BZIP2 lossless compression used by PyTables
|LZF lossless compression used by H5Py project
|Blosc lossless compression used by PyTables
|Modified LZMA compression filter, MAFISC (Multidimensional Adaptive Filtering Improved Scientific data Compression)
|Snappy lossless compression
|LZ4 fast lossless compression algorithm
|Samplify’s APAX Numerical Encoding Technology
|All imgCIF/CBF compressions and decompressions, including Canonical, Packed, Packed Version 2, Byte Offset and Nibble Offset
|Enables images to be compressed/decompressed with JPEG-XR compression
|Extreme version of shuffle filter that shuffles data at bit level instead of byte level
|SPDP fast lossless compression algorithm for single- and double-precision floating-point data
|LPC-Rice multi-threaded lossless compression
|ESA CCSDS-123 multi-threaded compression filter
|CharLS JPEG-LS multi-threaded compression filter
|Rate, accuracy or precision bounded compression for floating-point arrays
|Fast and Efficient Lossy or Lossless Compressor for Floating-Point Data
|Real-time compression algorithm with wide range of compression / speed trade-off and fast decoder
|GPU based image compression method developed for light-microscopy applications
|An error-bounded lossy compressor for scientific floating-point data
|EUMETSAT CharLS compression filter for use with netCDF
|Jpeg compression filter
|Compression filter for raw dna signal data used by Oxford Nanopore
|Versatile and efficient data compressor supporting many kinds of data and using an outlier-resilient entropy coder
|The BitGroom quantization algorithm
|Granular BitRound (GBR)
|The GBG quantization algorithm is a significant improvement to the BitGroom filter
|A modular error-bounded lossy compression framework for scientific datasets
|Lossless compression algorithm optimized for digitized analog signals based on delta encoding and rice coding
|The recent new-generation version of the Blosc compression library
|FLAC audio compression filter in HDF5
Please be aware that compression filters require that the library not use
H5_MEMORY_ALLOC_SANITY_CHECK. Building in debug mode automatically enables this feature in earlier releases, which causes memory allocation and free problems in filter applications. Future versions of HDF5 will not enable this feature.
bz_example.tar.gz file contains an example of implementing the BZIP2 filter to enable BZIP2 compression in HDF5. (This example is based on PyTables code that uses BZIP2 compression.). Download and uncompress this file as follows:
gzip -cd bz_example.tar.gz | tar xvf -
To compile the example, you will need to install the HDF5 library and use the h5cc compile script found in the bin/ directory of the HDF5 installation.
For information on h5cc, see Compiling Your HDF5 Application.
Please note that tools like h5dump that display information in an HDF5 file will not be able to display data that is compressed with BZIP2 compression, since BZIP2 is not implemented in HDF5.
However, as of HDF5-1.8.11, a new HDF5 feature will enable the
h5dump tool to determine that the data is compressed with an external compression filter such as BZIP2, and will automatically load the appropriate library and display the uncompressed data.
The bz_example example code can be used for modifying the HDF5 source to “include” BZIP2 as one of the “internal” filters. For information on how to do this, see how ZLIB (the deflate filter) is implemented in the HDF5 source code. Specifically look at these files:
H5Z.c, H5Zdeflate.c and H5Pocpl.c