Skip to content

Commit 2e1b77b

Browse files
committed
split 2019 and 2020 cost data
1 parent 0a50a76 commit 2e1b77b

File tree

1 file changed

+56
-44
lines changed

1 file changed

+56
-44
lines changed

scripts/compile_cost_assumptions.py

+56-44
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,15 @@
6565
}
6666

6767
# [DEA-sheet-names]
68-
sheet_names = {'onwind': '20 Onshore turbines', # 2015
69-
'offwind': '21 Offshore turbines', # 2020
70-
'solar-utility': '22 Utility-scale PV', #2020
68+
sheet_names = {'onwind': '20 Onshore turbines', # 2015dc
69+
'offwind': '21 Offshore turbines', # 2020dc
70+
'solar-utility': '22 Utility-scale PV', #2020dc
7171
'solar-utility single-axis tracking': '22 Utility-scale PV tracker', # 2020
7272
'solar-rooftop residential': '22 Rooftop PV residential', # 2020
7373
'solar-rooftop commercial': '22 Rooftop PV commercial', # 2020
74-
'OCGT': '52 OCGT - Natural gas', # 2015?
75-
'CCGT': '05 Gas turb. CC, steam extract.', # 2015
76-
'oil': '50 Diesel engine farm', # 2015?
74+
'OCGT': '52 OCGT - Natural gas', # 2015dc
75+
'CCGT': '05 Gas turb. CC, steam extract.', # 2015dc
76+
'oil': '50 Diesel engine farm', # 2015dc
7777
'biomass CHP': '09c Straw, Large, 40 degree', # 2015
7878
'biomass EOP': '09c Straw, Large, 40 degree', # 2015
7979
'biomass HOP': '09c Straw HOP', # 2015
@@ -89,44 +89,44 @@
8989
'central ground-sourced heat pump': '40 Absorption heat pump, DH', # 2015
9090
'central resistive heater': '41 Electric Boilers', # 2015
9191
'central gas boiler': '44 Natural Gas DH Only', # 2015
92-
'decentral gas boiler': '202 Natural gas boiler', # <2018
93-
'direct firing gas': '312.a Direct firing Natural Gas', # 2019
94-
'direct firing gas CC': '312.a Direct firing Natural Gas', # 2019
95-
'direct firing solid fuels': '312.b Direct firing Sold Fuels', # 2019
96-
'direct firing solid fuels CC': '312.b Direct firing Sold Fuels', # 2019
97-
'decentral ground-sourced heat pump': '207.7 Ground source existing', # <2018
98-
'decentral air-sourced heat pump': '207.3 Air to water existing', # <2018
92+
'decentral gas boiler': '202 Natural gas boiler', # 2015
93+
'direct firing gas': '312.a Direct firing Natural Gas', # 2019dc
94+
'direct firing gas CC': '312.a Direct firing Natural Gas', # 2019dc
95+
'direct firing solid fuels': '312.b Direct firing Sold Fuels', # 2019dc
96+
'direct firing solid fuels CC': '312.b Direct firing Sold Fuels', # 2019dc
97+
'decentral ground-sourced heat pump': '207.7 Ground source existing', # 2015
98+
'decentral air-sourced heat pump': '207.3 Air to water existing', # 2015dc
9999
# 'decentral resistive heater': '216 Electric heating',
100100
'central water tank storage': '140 PTES seasonal', # 2015
101101
# 'decentral water tank storage': '142 Small scale hot water tank',
102102
'fuel cell': '12 LT-PEMFC CHP', # 2015
103-
'hydrogen storage underground': '151c Hydrogen Storage - Caverns', # 2015
104-
'hydrogen storage tank type 1 including compressor': '151a Hydrogen Storage - Tanks', # 2015
105-
'micro CHP': '219 LT-PEMFC mCHP - natural gas', # 2015
106-
'biogas' : '81 Biogas, Basic plant, small', # 2020
107-
'biogas CC' : '81 Biogas, Basic plant, small', # 2020
108-
'biogas upgrading': '82 Upgrading 3,000 Nm3 per h', # 2020
103+
'hydrogen storage underground': '151c Hydrogen Storage - Caverns', # 2015dc
104+
'hydrogen storage tank type 1 including compressor': '151a Hydrogen Storage - Tanks', # 2015dc
105+
'micro CHP': '219 LT-PEMFC mCHP - natural gas', # 2015dc
106+
'biogas' : '81 Biogas, Basic plant, small', # 2020dc
107+
'biogas CC' : '81 Biogas, Basic plant, small', # 2020dc
108+
'biogas upgrading': '82 Upgrading 3,000 Nm3 per h', # 2020dc
109109
'battery': '180 Lithium Ion Battery', # 2015
110-
'industrial heat pump medium temperature': '302.a High temp. hp Up to 125 C', # 2019
111-
'industrial heat pump high temperature': '302.b High temp. hp Up to 150', # 2019
112-
'electric boiler steam': '310.1 Electric boiler steam ', # 2019
113-
'gas boiler steam': '311.1c Steam boiler Gas', # 2019
114-
'solid biomass boiler steam': '311.1e Steam boiler Wood', # 2019
115-
'solid biomass boiler steam CC': '311.1e Steam boiler Wood', # 2019
110+
'industrial heat pump medium temperature': '302.a High temp. hp Up to 125 C', # 2019dcd
111+
'industrial heat pump high temperature': '302.b High temp. hp Up to 150', # 2019dc
112+
'electric boiler steam': '310.1 Electric boiler steam ', # 2019dc
113+
'gas boiler steam': '311.1c Steam boiler Gas', # 2019dc
114+
'solid biomass boiler steam': '311.1e Steam boiler Wood', # 2019dc
115+
'solid biomass boiler steam CC': '311.1e Steam boiler Wood', # 2019dc
116116
'biomass boiler': '204 Biomass boiler, automatic', # <2018
117-
'electrolysis': '86 AEC 100 MW', # 2020
118-
'direct air capture': '403.a Direct air capture', # 2020
119-
'biomass CHP capture': '401.a Post comb - small CHP', # 2020
120-
'cement capture': '401.c Post comb - Cement kiln', # 2020
121-
'BioSNG': '84 Gasif. CFB, Bio-SNG', # 2020
122-
'BtL': '85 Gasif. Ent. Flow FT, liq fu ', # 2020
123-
'biomass-to-methanol': '97 Methanol from biomass gasif.', # 2020
124-
'biogas plus hydrogen': '99 SNG from methan. of biogas', # 2020
125-
'methanolisation': '98 Methanol from hydrogen', # 2020
126-
'Fischer-Tropsch': '102 Hydrogen to Jet', # 2020
117+
'electrolysis': '86 AEC 100 MW', # 2020dc
118+
'direct air capture': '403.a Direct air capture', # 2020dc
119+
'biomass CHP capture': '401.a Post comb - small CHP', # 2020dc
120+
'cement capture': '401.c Post comb - Cement kiln', # 2020dc
121+
'BioSNG': '84 Gasif. CFB, Bio-SNG', # 2020dc
122+
'BtL': '85 Gasif. Ent. Flow FT, liq fu ', # 2020dc
123+
'biomass-to-methanol': '97 Methanol from biomass gasif.', # 2020dc
124+
'biogas plus hydrogen': '99 SNG from methan. of biogas', # 2020dc
125+
'methanolisation': '98 Methanol from hydrogen', # 2020dc
126+
'Fischer-Tropsch': '102 Hydrogen to Jet', # 2020dc
127127
'central hydrogen CHP': '12 LT-PEMFC CHP', # 2015
128-
'Haber-Bosch': '103 Hydrogen to Ammonia', # 2020
129-
'air separation unit': '103 Hydrogen to Ammonia', # 2020
128+
'Haber-Bosch': '103 Hydrogen to Ammonia', # 2015dc
129+
'air separation unit': '103 Hydrogen to Ammonia', # 2015dc
130130
'waste CHP': '08 WtE CHP, Large, 50 degree', # 2015
131131
'waste CHP CC': '08 WtE CHP, Large, 50 degree', # 2015
132132
# 'electricity distribution rural': '101 2 el distri Rural',
@@ -209,7 +209,7 @@
209209
# since February 2022 DEA uses a new format for the technology data
210210
# all excel sheets of updated technologies have a different layout and are
211211
# given in EUR_2020 money (instead of EUR_2015)
212-
new_format = ['solar-utility',
212+
cost_year_2020 = ['solar-utility',
213213
'solar-utility single-axis tracking',
214214
'solar-rooftop residential',
215215
'solar-rooftop commercial',
@@ -226,9 +226,21 @@
226226
'biomass-to-methanol',
227227
'biogas plus hydrogen',
228228
'methanolisation',
229-
'Fischer-Tropsch',
230-
'Haber-Bosch',
231-
'air separation unit']
229+
'Fischer-Tropsch'
230+
]
231+
232+
cost_year_2019 = ['direct firing gas',
233+
'direct firing gas CC',
234+
'direct firing solid fuels',
235+
'direct firing solid fuels CC',
236+
'industrial heat pump medium temperature',
237+
'industrial heat pump high temperature',
238+
'electric boiler steam',
239+
'gas boiler steam',
240+
'solid biomass boiler steam',
241+
'solid biomass boiler steam CC',
242+
]
243+
232244

233245
# %% -------- FUNCTIONS ---------------------------------------------------
234246

@@ -287,7 +299,7 @@ def get_data_DEA(tech, data_in, expectation=None):
287299
usecols += f",{uncrtnty_lookup[tech]}"
288300

289301

290-
if (tech in new_format) or ("renewable_fuels" in excel_file):
302+
if (tech in cost_year_2019) or (tech in cost_year_2020) or ("renewable_fuels" in excel_file):
291303
skiprows = [0]
292304
else:
293305
skiprows = [0,1]
@@ -468,7 +480,7 @@ def get_data_DEA(tech, data_in, expectation=None):
468480
df_final = df_final.ffill(axis=1)
469481

470482
df_final["source"] = source_dict["DEA"] + ", " + excel_file.replace("inputs/","")
471-
if tech in new_format and (tech!="electrolysis"):
483+
if tech in (cost_year_2019+cost_year_2020) and (tech!="electrolysis"):
472484
for attr in ["investment", "Fixed O&M"]:
473485
to_drop = df[df.index.str.contains(attr) &
474486
~df.index.str.contains("\(\*total\)")].index
@@ -2198,7 +2210,7 @@ def prepare_inflation_rate(fn):
21982210
data = add_carbon_capture(data, tech_data)
21992211

22002212
# adjust for inflation
2201-
data["currency_year"] = [2015 if x not in new_format else 2020 for x in
2213+
data["currency_year"] = [2015 if x not in (cost_year_2020 or cost_year_2019) else 2019 if x in cost_year_2019 else 2020 for x in
22022214
data.index.get_level_values(0)]
22032215

22042216

0 commit comments

Comments
 (0)