diff --git a/config.default.yaml b/config.default.yaml index 45903b80..ab0e2f8e 100755 --- a/config.default.yaml +++ b/config.default.yaml @@ -61,7 +61,7 @@ electricity: H2: 168 # use pandas query strings here, e.g. Country not in ['Germany'] - powerplants_filter: (DateOut >= 2021 or DateOut != DateOut) + powerplants_filter: (DateOut >= 2022 or DateOut != DateOut) # use pandas query strings here, e.g. Country in ['Germany'] custom_powerplants: false conventional_carriers: [nuclear, oil, OCGT, CCGT, coal, lignite, geothermal, biomass] diff --git a/envs/environment.yaml b/envs/environment.yaml index 9772d882..9c50d8dd 100644 --- a/envs/environment.yaml +++ b/envs/environment.yaml @@ -56,4 +56,4 @@ dependencies: - pip: - vresutils>=0.3.1 - tsam>=1.1.0 - - powerplantmatching>=0.5.1 + - powerplantmatching>=0.5.3 diff --git a/scripts/build_powerplants.py b/scripts/build_powerplants.py index 9a7c9e23..00b1a9a3 100755 --- a/scripts/build_powerplants.py +++ b/scripts/build_powerplants.py @@ -115,6 +115,14 @@ if __name__ == "__main__": .replace({'Technology': {'Steam Turbine': 'OCGT', "Combustion Engine": "OCGT"}}) .assign(Fueltype=replace_natural_gas_by_technology)) + # Correct bioenergy for countries where possible + opsd = pm.data.OPSD_VRE().powerplant.convert_country_to_alpha2() + opsd = opsd.query('Country in @countries and Fueltype == "Bioenergy"') + opsd['Fueltype'] = 'biomass' + available_countries = opsd.Country.unique() + ppl = ppl.query('not (Country in @available_countries and Fueltype == "Bioenergy")') + ppl = pd.concat([ppl, opsd]) + ppl_query = snakemake.config['electricity']['powerplants_filter'] if isinstance(ppl_query, str): ppl.query(ppl_query, inplace=True)