Are hyperslabs and compression compatible?

Hi, I was looking to add more capability to my hdf5.node https://github.com/HDF-NI/hdf5.node/issues/55 project where a user wanted to use hyperslabs on a dataset that was gzip compressed to level 2 during creation.

Now user wants to read back a row at a time. Are hyperslabs and compression compatible?
If so , is there any c example?

Yes, they are compatible.

Maybe this helps…

https://support.hdfgroup.org/HDF5/faq/compression.html

“roger” wrote:

roger

February 28

Hi, I was looking to add more capability to my hdf5.node https://github.com/HDF-NI/hdf5.node/issues/55
project where a user wanted to use hyperslabs on a dataset that was gzip compressed to level 2 during creation.

Now user wants to read back a row at a time. Are hyperslabs and compression compatible?

If so , is there any c example?

Attached is an example. h5_subsetcmp.c (5.6 KB)

Good to know. Gives me impetus to look deeper for the way. It may require a more carefully created access property list. Looking thru docs some more.

Thank you

I don’t think hdf5-1.8.11 version has compatibility. Hdf5-1.10 or later might work.

A post was split to a new topic: Forum email notification options

Hmm. I think compression and hyperslabbing have always been compatible in HDF5. Maybe you are thinking in the context of parallel?

Yes, I think in the context of parallel.