PyPSA / PyPSA/pypsa-usa

Reformat demand per bus into an xarray

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

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
148
Forks
55
Avg merge
2d 11h
Merged PRs (30d)
18

Description

Feature Request

PR #288 introduces sectorally explicit demand files (ie. res-elec, res-heat, ect...). This is outputted as separate csv files, due to me just being more comfortable with pandas than xarray to get the workflow running. This should get switched to xarray though.

Suggested Solution

I believe the dataset should have the coordinates: snapshot, bus, sector, end-use, and the variable will be the demand

Additional Info

No response

Contributor guide

No contributing guide indexed for this repository

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 reading PR #288 and tracing where the sectorally explicit demand CSV files are produced. Identify the demand data workflow and determine how its outputs can be represented as an xarray dataset with snapshot, bus, sector, and end-use coordinates and demand as the variable. Done means the separate CSV output is replaced by that dataset representation.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.