Fix H2 underground potentials from TWh to MWh; simplify H2 data

This commit is contained in:
Tom Brown 2020-09-25 16:23:45 +02:00
parent de52711700
commit b862bb95cd
2 changed files with 38 additions and 37 deletions

View File

@ -1,31 +1,31 @@
,,TWh
AT,False,
BA,False,
BE,False,
BG,False,
CH,False,
CZ,False,
DE,True,4500
DK,True,700
EE,False,
ES,True,350
FI,False,
FR,False,
GB,True,1050
GR,True,120
HR,False,
HU,False,
IE,False,
IT,False,
LT,False,
LU,False,
LV,False,
NL,True,150
NO,False,
PL,True,120
PT,True,400
RO,False,
RS,False,
SE,False,
SI,False,
SK,False,
ct,TWh
AT,
BA,
BE,
BG,
CH,
CZ,
DE,4500
DK,700
EE,
ES,350
FI,
FR,
GB,1050
GR,120
HR,
HU,
IE,
IT,
LT,
LU,
LV,
NL,150
NO,
PL,120
PT,400
RO,
RS,
SE,
SI,
SK,

1 ct TWh
2 AT False
3 BA False
4 BE False
5 BG False
6 CH False
7 CZ False
8 DE True 4500
9 DK True 700
10 EE False
11 ES True 350
12 FI False
13 FR False
14 GB True 1050
15 GR True 120
16 HR False
17 HU False
18 IE False
19 IT False
20 LT False
21 LU False
22 LV False
23 NL True 150
24 NO False
25 PL True 120
26 PT True 400
27 RO False
28 RS False
29 SE False
30 SI False
31 SK False

View File

@ -805,17 +805,18 @@ def add_storage(network):
if options['hydrogen_underground_storage']:
h2_salt_cavern_potential = pd.read_csv(snakemake.input.h2_cavern,
index_col=0, skiprows=[0],
names=["potential", "TWh"])
h2_cavern_ct = h2_salt_cavern_potential[h2_salt_cavern_potential.potential]
index_col=0,squeeze=True)
h2_cavern_ct = h2_salt_cavern_potential[~h2_salt_cavern_potential.isna()]
cavern_nodes = pop_layout[pop_layout.ct.isin(h2_cavern_ct.index)]
h2_capital_cost = costs.at["hydrogen storage underground", "fixed"]
# assumptions: weight storage potential in a country by population
h2_pot = (h2_cavern_ct.loc[cavern_nodes.ct, "TWh"].astype(float)
.reset_index().set_index(cavern_nodes.index))
h2_pot = h2_pot.TWh * cavern_nodes.fraction
# TODO: fix with real geographic potentials
#convert TWh to MWh with 1e6
h2_pot = h2_cavern_ct.loc[cavern_nodes.ct]
h2_pot.index = cavern_nodes.index
h2_pot = h2_pot * cavern_nodes.fraction * 1e6
network.madd("Store",
cavern_nodes.index + " H2 Store",