Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix emissions #245

Merged
merged 3 commits into from
Nov 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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()
hazemakhalek marked this conversation as resolved.
Show resolved Hide resolved

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
Loading