From 58b018e624ed384dc4812b663de8e414c2b4bf76 Mon Sep 17 00:00:00 2001 From: lisazeyen Date: Mon, 8 Aug 2022 13:52:41 +0200 Subject: [PATCH] drop powerplants which are already decommissioned --- scripts/add_existing_baseyear.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/scripts/add_existing_baseyear.py b/scripts/add_existing_baseyear.py index 5a2c226e..a209f8dc 100644 --- a/scripts/add_existing_baseyear.py +++ b/scripts/add_existing_baseyear.py @@ -131,7 +131,8 @@ def add_power_capacities_installed_before_baseyear(n, grouping_years, costs, bas 'Oil': 'oil', 'OCGT': 'OCGT', 'CCGT': 'CCGT', - 'Natural Gas': 'gas' + 'Natural Gas': 'gas', + 'Bioenergy': 'urban central solid biomass CHP', } fueltype_to_drop = [ @@ -139,7 +140,6 @@ def add_power_capacities_installed_before_baseyear(n, grouping_years, costs, bas 'Wind', 'Solar', 'Geothermal', - 'Bioenergy', 'Waste', 'Other', 'CCGT, Thermal' @@ -150,6 +150,11 @@ def add_power_capacities_installed_before_baseyear(n, grouping_years, costs, bas 'Storage Technologies' ] + # drop assets which are already phased out / decomissioned + phased_out = df_agg[df_agg["DateOut"]