Repository navigation
New accessor for bitpacking and unbitpacking binary/boolean DataArrays #11623
Replies: 2 comments
|
Thanks for opening your first issue here at xarray! Be sure to follow the issue template! |
We have some code for this kind of thing in Does it make sense to merge your code into there, or build from whats already there? I'd be very happy to enhance functionality in this area in cf-xarray |
Uh oh!
There was an error while loading. Please reload this page.
What is your issue?
As part of a larger project I've been working on, I created bitpacking/unbitpacking methods that utilize numpy's packbits/unpackbits functions under the hood, but stores and reads all the relevant information about what each bit represents and how the packing was done as metadata on an xarray.DataArray.
I recently extracted that code from the larger project it was in, and wrote it up as a DataArray accessor extension that is available here. I'm planning on uploading it to PyPI in the near future to make it easier to install, but also wanted to post it here.
All reactions