feat: introduce PEMMDB data and tyndp trajectories - #97
Merged
Conversation
… and build rule to collect the data in one file per planning year
…ed readability and improve error handling
(cherry picked from commit ce66349d5dca6bb5328a011190a939695fa9db88)
This reverts commit 0cd9505.
Member
Author
|
@tgilon I've addressed all of your comments now which included improvements on the size of the PEMMDB profiles netcdf file and efficiency gains in processing thermal capacities and profiles. Once the CI has passed, you can have another look at the changes. |
…ailable pemmdb years
tgilon
reviewed
Oct 7, 2025
tgilon
left a comment
Member
There was a problem hiding this comment.
Thank you @daniel-rdt for all the improvements! They have certainly improved the code. I do have a few follow up comments, though. However, nothing major and the PR is in good shape to be merged soon.
Co-authored-by: Thomas Gilon <thomas.gilon@openenergytransition.org>
for more information, see https://pre-commit.ci
tgilon
reviewed
Oct 8, 2025
tgilon
left a comment
Member
There was a problem hiding this comment.
Looks good! No additional comments on my side. Thanks @daniel-rdt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #128.
Changes proposed in this Pull Request
This PR introduces the processing of PEMMDb v2.4 data and TYNDP trajectories for power plants. The final processed output of the newly added rules will be three files:
resources/tyndp_trajectories.csvin long format including information on trajectories (p_nom_minandp_nom_max) for RES technologies, nuclear power plants, electrolyzers and batteries.resources/pemdb_capacties_{planning_horizon}.csvin long format including information onp_nom,e_nom(optional),efficiency,carrier,index_carrier,bus,country,unitresources/pemmdb_profiles_{planning_horizon}.ncwith the following structure:p_max_pu) and must-run obligations (p_min_pu) for each bus and technologyAs documented in the 2024 TYNDP methodology report, p.13, the data collected within the PEMMDB used for the Scenario Building includes information on NT capacities, must-run obligations and availabilities for power plants. The following information is covered within the dataset:
trajectories for deviation scenarios)
p_min_pu)p_max_pu)Note: Similar to #71 and #77 , this PR serves to facilitate a sub-workflow for extraction and processing of PEMMDB data but does not yet attach them to any technologies yet. This will be added in a follow up PR.
Additionally required steps are:
Tasks
p_max_putime series for CHP (Other Non-RES)pemmcb_profiles.ncfilesWorkflow
The introduced workflow data pipeline for the PEMMDB capacity and must-run data includes the following steps:
retrieve_pemmdb_data: Rule to retrieve the 2024 TYNDP PEMMDB data and save in the tyndp_2024_bundle directorybuild_pemmdb_data: Reads, processes and merges the available PEMMDB v2.4 capacities and profiles for different PEMMDB technologies from TYNDP data bundle for a given planning horizon. Returns a cleaned csv file with all NT capacities (p_nom) in long format and netcdf file with must run obligations (p_min_pu) and availability (p_max_pu) for all different PEMMDB technologies.build_tyndp_trajectories: Rule to load and clean the 2024 TYNDP capacity trajectories from the investment dataset. Returns a csv file with trajectories for all available technologies and planning_horizons.build_tyndp_datas: Collect rule to produce processed capacities and profiles for all specified planning_horizons.Example workflow for three planning years (2030, 2035, 2040, 2045, 2050) and various different PEMMDB technologies:

Open issues
BUILDOUTsheet of theTRAJECTORIES.xlsxused for the modelling and if so how?Notes
Checklist
config/config.default.yaml.doc/configtables/*.csv.config/test/*.yaml.doc/data_sources.rst.doc/release_notes.rstis added.READMEanddoc/index.rst.