Skip to content

Commit b862bb9

Browse files
committed
Fix H2 underground potentials from TWh to MWh; simplify H2 data
1 parent de52711 commit b862bb9

File tree

2 files changed

+38
-37
lines changed

2 files changed

+38
-37
lines changed
Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
,,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,
1+
ct,TWh
2+
AT,
3+
BA,
4+
BE,
5+
BG,
6+
CH,
7+
CZ,
8+
DE,4500
9+
DK,700
10+
EE,
11+
ES,350
12+
FI,
13+
FR,
14+
GB,1050
15+
GR,120
16+
HR,
17+
HU,
18+
IE,
19+
IT,
20+
LT,
21+
LU,
22+
LV,
23+
NL,150
24+
NO,
25+
PL,120
26+
PT,400
27+
RO,
28+
RS,
29+
SE,
30+
SI,
31+
SK,

scripts/prepare_sector_network.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -805,17 +805,18 @@ def add_storage(network):
805805

806806
if options['hydrogen_underground_storage']:
807807
h2_salt_cavern_potential = pd.read_csv(snakemake.input.h2_cavern,
808-
index_col=0, skiprows=[0],
809-
names=["potential", "TWh"])
810-
h2_cavern_ct = h2_salt_cavern_potential[h2_salt_cavern_potential.potential]
808+
index_col=0,squeeze=True)
809+
h2_cavern_ct = h2_salt_cavern_potential[~h2_salt_cavern_potential.isna()]
811810
cavern_nodes = pop_layout[pop_layout.ct.isin(h2_cavern_ct.index)]
812811

813812
h2_capital_cost = costs.at["hydrogen storage underground", "fixed"]
814813

815814
# assumptions: weight storage potential in a country by population
816-
h2_pot = (h2_cavern_ct.loc[cavern_nodes.ct, "TWh"].astype(float)
817-
.reset_index().set_index(cavern_nodes.index))
818-
h2_pot = h2_pot.TWh * cavern_nodes.fraction
815+
# TODO: fix with real geographic potentials
816+
#convert TWh to MWh with 1e6
817+
h2_pot = h2_cavern_ct.loc[cavern_nodes.ct]
818+
h2_pot.index = cavern_nodes.index
819+
h2_pot = h2_pot * cavern_nodes.fraction * 1e6
819820

820821
network.madd("Store",
821822
cavern_nodes.index + " H2 Store",

0 commit comments

Comments
 (0)