-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathscenarios.py
63 lines (54 loc) · 1.87 KB
/
scenarios.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import streamlit as st
from utils.helper_functions import update_slider, reset_sliders
scenarios_dict={
"Business as Usual":{
},
"Green Alliance - Balance Food, Nature and Climate priorities":{
"dairy": 45,
"pig_poultry_eggs": 45,
"labmeat": 45,
"waste_BECCS": 27,
"DACCS": 5,
"agroforestry": 60,
"silvopasture": 60,
# missing forestation: a third of currently farmed land
},
"Green Alliance - Business as Usual + Engineered gas removal":{
"waste_BECCS": 33,
"DACCS": 5,
"overseas_BECCS": 67,
},
"Green Alliance - Agroecological farming on all land":{
"agroforestry": 100,
"silvopasture": 100,
"ruminant": 0,
"dairy": 50,
"ruminant": 50,
"pig_poultry_eggs": 50,
"waste_BECCS": 33,
"DACCS": 5,
"overseas_BECCS": 40,
},
"Green Alliance - Self-sufficiency":{
"land_beccs": 12, # This should result in 48 [Mt CO2e / yr] but is giving 12
"waste_BECCS": 33,
"DACCS": 5,
"ruminant": 60,
"dairy": 60,
"pig_poultry_eggs": 60,
},
"Green Alliance - Avoid engineered greenhouse gas removal":{
"ruminant": 70,
"dairy": 70,
"pig_poultry_eggs": 70,
"agroforestry": 33, # of 2050 farmed land
"silvopasture": 33, # of 2050 farmed land
# missing forestation: half of currently farmed land
},
}
def call_scenarios():
# reset all states
reset_sliders()
# get scenario state
scenario = st.session_state["scenario"]
update_slider(scenarios_dict[scenario].keys(), scenarios_dict[scenario].values())