@@ -412,26 +412,28 @@ def get_data_DEA(tech, data_in, expectation=None):
412
412
413
413
if tech == "air separation unit" :
414
414
415
- # Calculate ASU cost separate to HB facility in terms of t N2 output
416
- # To add the cost of an ASU a multiplication factor of 1.06-1.09
417
- # should be applied to the total Specific Investment
415
+ # Calculate ASU cost separate to HB facility in terms of t N2 output
418
416
df .loc [[
419
- "Specific investment [MEUR /MW Ammonia output]" ,
420
- "Fixed O&M [kEUR/MW Ammonia/year]" ,
421
- "Variable O&M [EUR/MWh Ammonia]"
422
- ]] *= df .loc ["Specific investment mark-up factor optional ASU" ]
423
- # / excel.loc["N2 Consumption, [t/t] Ammonia"]
424
-
417
+ "Specific investment [MEUR /TPD Ammonia output]" ,
418
+ "Fixed O&M [kEUR /TPD Ammonia]" ,
419
+ "Variable O&M [EUR /t Ammonia]"
420
+ ]] *= (df .loc ["Specific investment mark-up factor optional ASU" ] - 1. ) / excel .loc ["N2 Consumption, [t/t] Ammonia" ]
421
+ # Convert output to hourly generation
422
+ df .loc [[
423
+ "Specific investment [MEUR /TPD Ammonia output]" ,
424
+ "Fixed O&M [kEUR /TPD Ammonia]" ,
425
+ ]] *= 24
426
+
425
427
# Rename costs for correct units
426
- # df.index = df.index.str.replace("MEUR /MW Ammonia output", "MEUR/MW_N2 /h")
427
- # df.index = df.index.str.replace("kEUR/MW Ammonia/year ", "kEUR/MW_N2 /h/year")
428
- # df.index = df.index.str.replace("EUR/MWh Ammonia", "EUR/MWh_N2 ")
428
+ df .index = df .index .str .replace ("MEUR /TPD Ammonia output" , "MEUR/t_N2 /h" )
429
+ df .index = df .index .str .replace ("kEUR /TPD Ammonia" , "kEUR/t_N2 /h/year" )
430
+ df .index = df .index .str .replace ("EUR /t Ammonia" , "EUR/t_N2 " )
429
431
430
432
df .drop (df .loc [df .index .str .contains ("Specific investment mark-up factor optional ASU" )].index , inplace = True )
431
- # df.drop(df.loc[df.index.str.contains("Specific investment [MEUR /MW Ammonia output]", regex=False)].index, inplace=True)
432
- # df.drop(df.loc[df.index.str.contains("Fixed O&M [kEUR/MW Ammonia/year]", regex=False)].index, inplace=True)
433
- # df.drop(df.loc[df.index.str.contains("Variable O&M [EUR/MWh Ammonia]", regex=False)].index, inplace=True)
434
-
433
+ df .drop (df .loc [df .index .str .contains ("Specific investment [MEUR /MW Ammonia output]" , regex = False )].index , inplace = True )
434
+ df .drop (df .loc [df .index .str .contains ("Fixed O&M [kEUR/MW Ammonia/year]" , regex = False )].index , inplace = True )
435
+ df .drop (df .loc [df .index .str .contains ("Variable O&M [EUR/MWh Ammonia]" , regex = False )].index , inplace = True )
436
+
435
437
if "solid biomass power" in tech :
436
438
df .index = df .index .str .replace ("EUR/MWeh" , "EUR/MWh" )
437
439
0 commit comments