-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5a29192
commit 32a85ff
Showing
9 changed files
with
1,515 additions
and
10,219 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,25 @@ | ||
from pathways import Pathways | ||
|
||
p = Pathways(datapackage="/Users/romain/GitHub/premise/dev/image-SSP2/datapackage.json") | ||
p = Pathways(datapackage="./image-SSP2-RCP19/datapackage.json") | ||
|
||
for scenario in [ | ||
# "SSP2-Base", | ||
"SSP2-RCP19" | ||
]: | ||
p.calculate( | ||
methods=[ | ||
"EF v3.1 - acidification - accumulated exceedance (AE)", | ||
"EF v3.1 - climate change - global warming potential (GWP100)", | ||
"EF v3.1 - ecotoxicity: freshwater - comparative toxic unit for ecosystems (CTUe)", | ||
"EF v3.1 - energy resources: non-renewable - abiotic depletion potential (ADP): fossil fuels", | ||
"EF v3.1 - eutrophication: freshwater - fraction of nutrients reaching freshwater end compartment (P)", | ||
"EF v3.1 - human toxicity: carcinogenic - comparative toxic unit for human (CTUh)", | ||
"EF v3.1 - material resources: metals/minerals - abiotic depletion potential (ADP): elements (ultimate reserves)", | ||
"EF v3.1 - particulate matter formation - impact on human health", | ||
"EF v3.1 - water use - user deprivation potential (deprivation-weighted water consumption)", | ||
"RELICS - metals extraction - Aluminium", | ||
"RELICS - metals extraction - Cobalt", | ||
"RELICS - metals extraction - Copper", | ||
"RELICS - metals extraction - Graphite", | ||
"RELICS - metals extraction - Lithium", | ||
"RELICS - metals extraction - Molybdenum", | ||
"RELICS - metals extraction - Neodymium", | ||
"RELICS - metals extraction - Nickel", | ||
"RELICS - metals extraction - Platinum", | ||
"RELICS - metals extraction - Vanadium", | ||
"RELICS - metals extraction - Zinc", | ||
"RELICS - metals extraction - Molybdenum" | ||
], | ||
regions=[r for r in p.scenarios.coords["region"].values if r != "World"], | ||
regions=["WEU",], | ||
scenarios=[scenario], | ||
years=[2020, 2030, 2040, 2050, 2060, 2070, 2080, 2090, 2100], | ||
years=[2020, ], | ||
variables=[ | ||
v | ||
for v in p.scenarios.coords["variables"].values | ||
if any(i in v for i in ["Industry", "Transport", "Heating"]) | ||
], | ||
demand_cutoff=0.01, | ||
) | ||
arr = p.display_results(cutoff=0.0001) | ||
|
||
arr = p.display_results() | ||
arr.to_netcdf(f"results_image_{scenario}.nc") |
Oops, something went wrong.