storages

The central module containing all code dealing with power plant data.

class EgonStorages(**kwargs)[source]

Bases: Base

bus_id
carrier
el_capacity
geom
id
scenario
source_id
sources
voltage_level
class Storages(dependencies)[source]

Bases: Dataset

name: str = 'Storages'
sources: DatasetSources = DatasetSources(tables={'capacities': 'supply.egon_scenario_capacities', 'generators': 'grid.egon_etrago_generator', 'bus': 'grid.egon_etrago_bus', 'egon_mv_grid_district': 'grid.egon_mv_grid_district', 'ehv_voronoi': 'grid.egon_ehv_substation_voronoi', 'nep_conv': 'supply.egon_nep_2021_conventional_powerplants', 'etrago_storage': 'grid.egon_etrago_storage'}, files={'mastr_storage': './bnetza_mastr/dump_2025-02-09/bnetza_mastr_storage_cleaned.csv', 'nep_capacities': 'NEP2035_V2021_scnC2035.xlsx', 'mastr_location': 'location_elec_generation_raw.csv'}, urls={})

The sources used by the datasets. Could be tables, files and urls

targets: DatasetTargets = DatasetTargets(tables={'storages': 'supply.egon_storages', 'home_batteries': 'supply.egon_home_batteries'}, files={})

Allocates storage units such as pumped hydro and home batteries

This data set creates interim tables to store information on storage units. In addition the target value for the installed capacity of pumped hydro storage units are spatially allocated using information of existing plants from the official registry Markstammdatenregister. After allocating the plants missing information such as the voltage level and the correct grid connection point are added. This data set also allocates the target value of home batteries spatially on different aggregation levels. In a first step function allocate_pv_home_batteries_to_grids() spatially distributes the installed battery capacities to all mv grid districts based on their installed pv rooftop capacity. Function allocate_home_batteries_to_buildings() further distributes the home battery storage systems to buildings with pv rooftop systems.

Dependencies
Resulting tables
version: str = '0.0.10'
allocate_other_storage_units()[source]
allocate_pumped_hydro(scn, export=True)[source]

Allocates pumped_hydro plants for eGon2035 and scenario2019 scenarios and either exports results to data base or returns as a dataframe

Parameters:

export (bool) – Choose if allocated pumped hydro plants should be exported to the data base. The default is True. If export=False a data frame will be returned

Returns:

power_plants (pandas.DataFrame) – List of pumped hydro plants in ‘eGon2035’ and ‘scenario2019’ scenarios

allocate_pumped_hydro_eGon100RE()[source]

Allocates pumped_hydro plants for eGon100RE scenario based on a prox-to-now method applied on allocated pumped-hydro plants in the eGon2035 scenario.

Parameters:

None

Returns:

None

allocate_pumped_hydro_scn()[source]
allocate_pv_home_batteries_to_grids()[source]
allocate_storage_units_sq(scn_name, storage_types)[source]

Allocate storage units by mastr data only. Capacities outside germany are assigned to foreign buses.

Parameters:
  • scn_name (str) – Scenario name

  • storage_types (list) – contains all the required storage units carriers to be imported

create_tables()[source]

Create tables for power plant data :returns: None.

home_batteries_per_scenario(scenario)[source]

Allocates home batteries which define a lower boundary for extendable battery storage units. The overall installed capacity is taken from NEP for eGon2035 scenario. The spatial distribution of installed battery capacities is based on the installed pv rooftop capacity.

Parameters:

None

Returns:

None