Skip to content

New accessor for bitpacking and unbitpacking binary/boolean DataArrays #11610

Closed

Description

@zyjux

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.

Activity

  1. added
    needs triageIssue that has not been reviewed by xarray team member
    on Sep 25, 2026
  2. welcome commented on Sep 25, 2026

    @welcome

    Thanks for opening your first issue here at xarray! Be sure to follow the issue template!
    If you have an idea for a solution, we would really welcome a Pull Request with proposed changes.
    See the Contributing Guide for more.
    It may take us a while to respond here, but we really value your contribution. Contributors like you help make xarray better.
    Thank you!

  3. locked and limited conversation to collaborators on Sep 27, 2026
  4. converted this issue into a discussion #11623 on Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageIssue that has not been reviewed by xarray team member

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions