Skip to content

Compression and chunk size outside of H5Easy #663

Answered by 1uc
ischoegl asked this question in Questions
Discussion options

You must be logged in to vote

In core HighFive it's called Deflate or SZip. You'd probably do something like:

auto file = HighFive::File(...);
auto dcpl = HighFive::DataSetCreateProps{};
dcpl.add(HighFive::Chunking(...));
dcpl.add(HighFive::Deflate(n));

// If you like, you can fuse creation and writing of the data set
// into a single operation:
sub.createDataSet<double>(name, data, dcpl);

Upstream documentation suggests that "deflate" refers to "zlib", see
https://docs.hdfgroup.org/hdf5/develop/_f_i_l_t_e_r.html

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@kdidkovsky
Comment options

@1uc
Comment options

Answer selected by ischoegl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants