HDFGroup / HDF.PInvoke

Raw HDF5 Power for .NET
http://www.hdfgroup.org/HDF5
Other
80 stars 29 forks source link

[Question] How to use H5Z to set compressions and checksum #171

Closed LiorBanai closed 2 years ago

LiorBanai commented 3 years ago

HI, I was wondering how to enable compressions/filters and/or set checksums. Are the any examples to work with?

Apollo3zehn commented 3 years ago

Here is a small sample for shuffle and deflate (zlib): https://github.com/OneDAS-Group/OneDAS-Core/blob/dev/src/OneDas.DataManagement.Types/Hdf/IOHelper.cs#L650-L651

For checksum, have a look at fletcher32: https://support.hdfgroup.org/HDF5/doc1.8/RM/RM_H5P.html#Property-SetFletcher32

LiorBanai commented 3 years ago

Great :) Thanks a lot!