Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blosc compression and compatibility with existing files #3

Open
braingram opened this issue Nov 9, 2023 · 0 comments
Open

Blosc compression and compatibility with existing files #3

braingram opened this issue Nov 9, 2023 · 0 comments

Comments

@braingram
Copy link
Collaborator

braingram commented Nov 9, 2023

There are 2 known examples of blosc compression support for asdf files:

Investigate if these are compatible and if they are compatible with asdf-compression.

asdf-cxx blosc

So far, a simple test attempting to read the example file produced for the asdf-cxx example:
https://github.com/eschnett/asdf-cxx/blob/main/demo-compression.cpp
in asdf (with asdf-compression installed) succeeds and all arrays equal the non-compressed array.
I was not able to test blosc2 as I don't have it installed (and I didn't immediately see it available through homebrew).

abacusutils blosc

Testing with the abacus test file:
https://github.com/abacusorg/abacusutils/blob/main/tests/Mini_N64_L32/halos/z0.000/field_rv_A/field_rv_A_000.asdf
and the asdf-compression code at 2cc262d
I get the following error:

error: Error 19295 : not a Blosc buffer or header info is corrupted

This is possibly due to how the abacus compressor splits up the contents into blocks:
https://github.com/abacusorg/abacusutils/blob/b76af8f302f45b7064d7929f3c1bcd9960329788/abacusnbody/data/asdf.py#L82-L88

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant