xarray-contrib / xarray-contrib/xdggs

Alignment

Open
#7 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
138
Forks
25
Avg merge
1d 15h
Merged PRs (30d)
11

Description

Because a DGGSIndex wraps a PandasIndex, we can (should?) support alignment of Dataset / DataArray objects just like with Xarray default (pandas) indexes, here based on cell ids.

At the very least, we should raise an error during alignment if the grid type and parameters of the objects to align don't match exactly.

Later, I guess it will be possible to support fancier, grid-aware alignment like, e.g., align two objects on the same grid but at two different resolutions. That said, I'm not sure that it is a good idea to do that in an automated way.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating DGGSIndex and the alignment path used for Dataset and DataArray objects, then compare it with Xarray's default PandasIndex behavior. Done means matching grid types and parameters align by cell IDs, while mismatched grids raise an error; the proposed cross-resolution alignment remains an unresolved design question.

Written by the indexing model from the issue text.

Assessment

Tech stack
pandas, python
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.