xarray-contrib / xarray-contrib/xdggs
Alignment
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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