Skip to content

Provide a shorthand for "one bin along this axis" in .rebin #737

@Cadair

Description

@Cadair

Describe the feature

If you want to "drop" an axis by averaging along an axis then you need to know the length of that axis to do rebin((nx, 540, 20)) it would be nice to provide a shorthand for this, I propose a -1 sentinel so for a cube with dimensions (100, 100, 100) .rebin((-1, -1, 50)) would give you a cube with shape (1, 1, 2).

Proposed solution

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions