Closed lee2430 closed 3 months ago
Thanks for raising this issue. I had no use case yet for bitshuffle and had no need yet to support it. Thanks to your sample file I will be able to work on this. I will definitely have a look into this, maybe today evening or tomorrow. If the bitshuffle algorithm is simple or if there is some external C# library there will be a solution rather quick. But if that is not the case I will probably need a while to support this.
I need to translate this file to C# and wrap the whole https://github.com/kiyo-masui/bitshuffle library into a Nuget package like I did previously for https://www.nuget.org/packages/Blosc2.PInvoke
and several other libraries. So both parts should not be too difficult. Still I think it will take one or two weeks for a first test version.
Thank you for your efforts. Looking forward to it.😁
I am about to release a new version with Bitshuffle support. I think I was able to decode the data and hope this image is what you would expect:
My unit tests are working and so I hope there are no bugs left. The new version should be available in ~ 30 minutes.
Version v2.1.0 is now released to Nuget.
Ah, I forgot to give you some example code :-)
Thank you so much, Apollo! I really appreciate it!
Hi, Apollo. Sorry to bother you as I don't know if this problem is caused by my code or because PureHDF currently does not support reading the "bitshuffle" compressed data. I've tried all the fillers in PureHDF to read an h5 file (which is generated by a third-party hardware), but got the error:
The file could be processed under python with h5py and hdf5plugin:
Some meta info about my target dataset:
My C# code is as follows.
The h5 file is at: https://drive.google.com/file/d/1J4ukBE_pxlCfW8Nj1J0wGeYaVxQLiDLc/view?usp=sharing
And at last, I have to say that the HDF5 support is too poor for those who are not dedicated on related work. Your PureHDF absolutely saved many people like me. Thank you very much, no matter if my ploblem is solved or not : )