Skip to content

OPSD EU: use energy_source_level_3 for Fueltype classification#288

Open
MaykThewessen wants to merge 3 commits intoPyPSA:masterfrom
MaykThewessen:fix/opsd-efficiency-and-biomass
Open

OPSD EU: use energy_source_level_3 for Fueltype classification#288
MaykThewessen wants to merge 3 commits intoPyPSA:masterfrom
MaykThewessen:fix/opsd-efficiency-and-biomass

Conversation

@MaykThewessen
Copy link

Summary

  • Use the most specific energy source from OPSD's three-level hierarchy for Fueltype
  • When energy_source_level_3 is set (e.g. "Biomass and biogas" for coal plants with biomass co-firing), prefer it over the top-level energy_source
  • Falls back through level_3energy_sourcelevel_1

This is a 3-line defensive change in the OPSD EU loader. Currently energy_source_level_3 is loaded from the CSV but silently dropped by .reindex(columns=target_columns) before it can influence Fueltype.

Context

The OPSD EU dataset uses a three-level energy source hierarchy. While level_3 currently 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 to Fueltype correctly.

See also:

Test plan

  • OPSD() loader runs without errors
  • NL plants load correctly with expected fueltypes
  • Full powerplantmatching.powerplants() pipeline produces valid output

🤖 Generated with Claude Code

MaykThewessen and others added 3 commits March 18, 2026 11:11
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>
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.

1 participant