forked from tum-ewk/message_ix_south_africa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.py
32 lines (25 loc) · 1.03 KB
/
run.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from utils.run_scenarios import *
from utils.pp_db_to_xlsx import results_to_xlsx
from utils.pp_plot_emissions import plot_emissions
from utils.pp_plot_power_sector import plot_power_sector
from utils.pp_plot_heatmaps import plot_heatmap_comparison
# define database and the baseline scenario
model = 'MESSAGE South Africa'
baseline = 'baseline'
database = 'message_sa'
# shale gas extraction costs (USDpMWh) & carbon costs (USDtCO2) to model
# shale_cost = list(range(1, 32, 2)) + [10000]
# carbon_cost = list(range(0, 62, 2))
shale_cost = [1, 10, 30, 1000]
carbon_cost = [0, 5, 15, 30]
# run the scenarios
run_scenarios(model, baseline, database, shale_cost, carbon_cost)
# run the postprocessing
results_to_xlsx(model, baseline, database, shale_cost, carbon_cost)
# plot ghg-emissions over the model horizon
plot_emissions()
# plot energy and capacity mix of the power sector
plot_power_sector()
# plot the scenario analysis heat maps - the variable 'years' indicates
# which years are presented in the plot
plot_heatmap_comparison(years=[2050])