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

Support for RLE, HUFF and AHUFF compression? #280

Open
ericthewizard opened this issue Oct 31, 2024 · 1 comment
Open

Support for RLE, HUFF and AHUFF compression? #280

ericthewizard opened this issue Oct 31, 2024 · 1 comment

Comments

@ericthewizard
Copy link
Contributor

I saw the issue for this (#3) was closed - were these ever added? I'm particularly interested in variable level compression (reading and writing) for these types, and if they are supported, how to find out which one is being used.

For example, when opening a CDF with a variable that uses RLE compression:

>>> import cdflib
>>> c = cdflib.CDF("rle.cdf")
>>> vdr = c.vdr_info("rle")
>>> vdr
VDR(data_type=21, section_type=8, next_vdr_location=0, variable_number=1, head_vxr=0, last_vxr=0, max_rec=-1, name='rle', num_dims=0, dim_sizes=[], compression_bool=True, compression_level=0, blocking_factor=0, dim_vary=[], record_vary=True, num_elements=1, sparse=0, pad=array([-1.e+30], dtype=float32))

compression_bool is set to True, but there doesn't seem to be any way to determine that it's RLE.

@bryan-harter
Copy link
Member

Gotcha! I wasn't sure how useful different types of compressions are, so I had initially dropped it in favor of simply using gzip everywhere. But if it's useful to be able to specify RLE, HUFF and AHUFF I can keep this on the to-do list

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

No branches or pull requests

2 participants