Skip to content

Commit

Permalink
Merge pull request #245 from pypsa-meets-earth/fix_oil_emissions
Browse files Browse the repository at this point in the history
Fix emissions
  • Loading branch information
hazemakhalek authored Nov 28, 2023
2 parents 6b6f04f + 086e235 commit 3076e7e
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions scripts/prepare_sector_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -1049,9 +1049,7 @@ def add_shipping(n, costs):
p_set=ports["p_set"],
)

co2 = (
shipping_oil_share * ports["p_set"].sum() * costs.at["oil", "CO2 intensity"]
)
co2 = ports["p_set"].sum() * costs.at["oil", "CO2 intensity"]

n.add(
"Load",
Expand Down Expand Up @@ -2058,8 +2056,9 @@ def add_agriculture(n, costs):
co2 = (
nodal_energy_totals.loc[nodes, "agriculture oil"]
* 1e6
/ 8760
* costs.at["oil", "CO2 intensity"]
)
).sum()

n.add(
"Load",
Expand Down Expand Up @@ -2212,16 +2211,6 @@ def add_residential(n, costs):
p_set=-co2,
)

co2 = (p_set_oil.sum().sum() * costs.at["solid biomass", "CO2 intensity"]) / 8760

n.add(
"Load",
"residential biomass emissions",
bus="co2 atmosphere",
carrier="biomass emissions",
p_set=-co2,
)

for country in countries:
rem_heat_demand = (
energy_totals.loc[country, "total residential space"]
Expand Down

0 comments on commit 3076e7e

Please sign in to comment.