OPSD EU: use energy_source_level_3 for Fueltype classification#288
Open
MaykThewessen wants to merge 3 commits intoPyPSA:masterfrom
Open
OPSD EU: use energy_source_level_3 for Fueltype classification#288MaykThewessen wants to merge 3 commits intoPyPSA:masterfrom
MaykThewessen wants to merge 3 commits intoPyPSA:masterfrom
Conversation
Use the most specific energy source classification from OPSD's three-level hierarchy. When energy_source_level_3 is set (e.g. "Biomass and biogas" for coal plants with biomass co-firing), use it instead of the top-level energy_source. Falls back through level_3 → energy_source → level_1. Closes PyPSA#286 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- NL_plants_comparison.xlsx: side-by-side comparison of OPSD vs PPM for
Netherlands thermal plants with color-coded diffs
- powerplants_custom.csv: PPM powerplants.csv with manually verified NL fixes:
- Split Eemshaven into Eemshavencentrale (coal/biomass) + Eemscentrale EC3-7
(CCGT) + EC20 (OCGT peaker) — were wrongly merged
- Remove duplicate "Eem" entry (same EIC codes as Eemscentrale)
- Fix Maasvlakte MPP3: 1070 MW coal, eff 0.47, since 2016
- Fix Maasstroom: 428 MW CCGT (= Rijnmond 2), eff 0.578
- Fix Borssele 1: nuclear only 486 MW, eff 0.350
- Fix Hemweg coal: eff 0.38, torn down 2024
- Rename Merwedekanaal 11/12 with correct capacities
- Update Leiden: GE turbines since 2006, eff 0.43
- Retire Purmerend (Pu): replaced by heat-only plant in 2014
- Set 21 waste/biomass/biogas plants as CHP
- Apply OPSD efficiency to 37 additional NL plants
- All efficiencies are true electrical (no CHP heat credit baked in)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Amer biomass: eff 0.39 → 0.42 (large CHP converted coal unit) - Rijnmond 1: capacity 810 → 750 MW (verified from operator data) - Maasstroom (Rijnmond 2): capacity 428 → 426 MW (verified) - Hemweg coal: already retired 2024, confirmed torn down Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
Fueltypeenergy_source_level_3is set (e.g. "Biomass and biogas" for coal plants with biomass co-firing), prefer it over the top-levelenergy_sourcelevel_3→energy_source→level_1This is a 3-line defensive change in the OPSD EU loader. Currently
energy_source_level_3is loaded from the CSV but silently dropped by.reindex(columns=target_columns)before it can influenceFueltype.Context
The OPSD EU dataset uses a three-level energy source hierarchy. While
level_3currently only contains "Biomass and biogas" entries (156 plants across EU), this change ensures that if future OPSD releases or enriched data add co-firing flags for coal/waste plants, the information flows through toFueltypecorrectly.See also:
Test plan
OPSD()loader runs without errorspowerplantmatching.powerplants()pipeline produces valid output🤖 Generated with Claude Code