pypsa-eur icon indicating copy to clipboard operation
pypsa-eur copied to clipboard

Fix fill missing in industry sector ratios intermediate

Open tgi-climact opened this issue 2 years ago • 0 comments

Changes proposed in this Pull Request

I found a strange behaviour of build_industry_sector_ratios_intermediate. When looking to intermediate steps between current and futur industry, missing values were wrongly filled with futur data.

I suggest to use futur data only when we miss the full description of the technology (carrier whise).

Here is an example of Ammonia in Belgium where we see a mix of current and futur data.

Ammonia / BE new new new old old old
MWh/tMaterial 2020 2030 2050 2020 2030 2050
elec 0.2473 0.17311 0 0.2473 0.17311 0
coal 0 0 0 0 0 0
coke 0 0 0 0 0 0
biomass 0 0 0 0 0 0
methane 0 0 0 0 0 0
hydrogen 5.93 4.151 0 5.93 4.151 0
heat 0 0 0 0 0 0
naphtha 0 0 0 0 0 0
ammonia 0 1.5498 5.166 5.166 5.166 5.166
process emission 0 0 0 0 0 0
process emission from feedstock 0 0 0 0 0 0

I used to following values for sector_ratios_fraction_future:

  sector_ratios_fraction_future:
    2020: 0.0
    2025: 0.1
    2030: 0.3
    2035: 0.5
    2040: 0.7
    2045: 0.9
    2050: 1.0

Checklist

  • [x] I tested my contribution locally and it seems to work fine.
  • [x] Code and workflow changes are sufficiently documented.
  • [ ] Changed dependencies are added to envs/environment.yaml.
  • [ ] Changes in configuration options are added in all of config.default.yaml.
  • [ ] Changes in configuration options are also documented in doc/configtables/*.csv.
  • [x] A release note doc/release_notes.rst is added.

tgi-climact avatar Apr 04 '24 13:04 tgi-climact