PyPSA / PyPSA/atlite

Adapt unit aware xarray structures [revist in the future]

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

Nobody has claimed this yet.

type: enhancement type: info
Dominant language
Python
Stars
402
Forks
134
PR merge metrics
No merged PRs in 30d

Description

Working on #194 for CSP lead to #195 as units have always a been intransparent in atlite.

There has been some progress in recent time in implementing unit-aware xarray datastructure, although it is not full ready yet.

We should revisted their progress and think about adapting unit aware datastructures, especially for .convert_and_aggregate(...) with it's different function parameters and return values.

https://pint-xarray.readthedocs.io/en/stable/creation.html

https://github.com/pydata/xarray/issues/525

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 reviewing the current .convert_and_aggregate(...) interface and the linked pint-xarray creation guide and xarray issue #525. Determine which function parameters and return values need to change for unit-aware xarray structures; the work is complete when the intended behavior and compatibility boundaries are defined and implemented.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.