Hi there! I’m new to HDF5. I’m trying to use h5repack, but I get a lot of warnings saying Warning: dataset <a_dataset> cannot be read, deflate filter is not available
This page says that ZLIB is the deflate filter. If I understood correctly, the HDF group portal also says that ZLIB (and SZIP) already come within the pre-built binaries, which was the way I installed HDF5 at an Ubuntu distribution in WSL.
Is there something I understood incorrectly? How can I use the deflate filter in h5repack?
Thank you!
Yes it should be there, you could check the lib/libhdf5.settings file and around line 80 there should be a line like: I/O filters (external): DEFLATE DECODE ENCODE
That’s strange. When I execute h5repack --enable-error-stack -l "/GROUP/ENTITY/Data:CHUNK=1024x1x1" "input_file" "outputs/test", the following error is printed:
Warning: dataset </GROUP/ENTITY/Data> cannot be read, deflate filter is not available
One more info: h5repack works if installed in another way — through apt-get —, but the version installed is 1.10.8 instead of 1.14.2, which is the one I’d like to use if possible (because generally it’s more secure and efficient to use updated software).
It worked like a charm. Thank you very much for all your replies!!
Would you mind taking a look at the post I’ve written a few minutes ago, please? Thanks!
@byrn hi there, again! Actually, I need to understand better why the Github version worked and the one on the ftp didn’t, please. I thought all HDF5 1.14.2 binaries/sources would come with GZIP/SHUFFLE filters. Could you clarify this, please?
We have updated the binaries on the download page. There was a configuration error in our binary build script - not anything in the source or the library. We fixed the issue and everything built properly. We also had to regenerate the HDFView binaries as well.
Thank you very much for your reply! That’s great news that you’ve fixed that! Can you just confirm this to me, then, please: any install of HDF5 1.14 will have GZIP/SHUFFLE filters, is that correct?
The binaries that we provide on the download page should have zlib and szip support builtin. Other compression filters are provided as plugins, with some subset provided in the downloaded binaries.
The releases on Github also should have zlib and szip support builtin - the plugins are not currently in the Github released binaries.