Skip to content

Conversation

@fneum
Copy link
Member

@fneum fneum commented Sep 8, 2025

Closes #1810 .

Changes proposed in this Pull Request

Distributing country-level electricity demand time series to subnational model
regions of EU countries now uses data from the JRC Energy Atlas.
This dataset provides electricity consumption on a 1 km by 1 km raster for the year, which is more accurate than the previous NUTS3-based distribution.

Another dataset is used for Great Britain from the Department for Energy Security and Net Zero.

Other non-EU countries still use NUTS3-based distribution keys from GDP and population.

New Dataset Visualization

image

Area-normalized demand (master versus feature)

image

Checklist

  • I tested my contribution locally and it works as intended.
  • Code and workflow changes are sufficiently documented.
  • Changed dependencies are added to envs/environment.yaml.
  • Changes in configuration options are added in config/config.default.yaml.
  • Changes in configuration options are documented in doc/configtables/*.csv.
  • Sources of newly added data are documented in doc/data_sources.rst.
  • A release note doc/release_notes.rst is added.

@coroa
Copy link
Member

coroa commented Sep 8, 2025

At first glance, i am very surprised how well the naive electricity demand downscaling by gdp/pop did in comparison to this detailed dataset.

@fneum fneum requested a review from Copilot September 8, 2025 15:16
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the electricity demand distribution methodology to use more accurate data sources. Instead of relying solely on NUTS3-based distribution using GDP and population, it now incorporates high-resolution raster data from the JRC Energy Atlas for EU countries and specific consumption statistics for Great Britain.

  • Implements new distribution methods using JRC Energy Atlas 1km×1km raster data for EU countries
  • Adds Great Britain-specific distribution using local authority electricity consumption data
  • Maintains NUTS3-based fallback for non-EU countries
  • Adds configuration option for substation-only distribution

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
scripts/build_electricity_demand_base.py Complete refactor of distribution logic with new functions for different data sources
rules/retrieve.smk Adds data retrieval rules for JRC Energy Atlas, GB consumption data, and UK local authorities
rules/build_electricity.smk Updates input dependencies for new data sources
envs/environment.yaml Adds rasterstats dependency for raster processing
doc/retrieve.rst Documents new data retrieval rules
doc/release_notes.rst Adds release notes for the feature
doc/data-retrieval.rst Documents new data sources with licensing information
doc/configtables/load.csv Documents new substation_only configuration option
config/config.default.yaml Adds substation_only configuration with default value

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@fneum fneum enabled auto-merge (squash) November 1, 2025 13:29
@fneum fneum added this to the v2025.11.0 milestone Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve regional electricity demand distribution

3 participants