ianhi / ianhi/xarray-linked-indexes

Use Intervals as a way to reshape

Open
#3 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Given intervals over time it would be great to be able to use them to split their respective continuous dimension (e.g. time) and make a new axis:

Image

Shape `C x T` (5, 100) -> `C x interval_id x T_new` (5, 4, 25)

@dcherian suggests that what I want here would `groupby_construct`

In the case where the intervals are equal length this shouldn't be too hard. But if they are different lengths I think it will necessarily become a datatree?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.