power_plants
The central module containing all code dealing with the distribution and allocation of data on conventional and renewable power plants.
- class EgonPowerPlants(**kwargs)[source]
Bases:
sqlalchemy.orm.decl_api.Base- bus_id
- carrier
- el_capacity
- geom
- id
- scenario
- source_id
- sources
- voltage_level
- weather_cell_id
- class PowerPlants(dependencies)[source]
Bases:
egon.data.datasets.DatasetThis dataset deals with the distribution and allocation of power plants
For the distribution and allocation of power plants to their corresponding grid connection point different technology-specific methods are applied. In a first step separate tables are created for wind, pv, hydro and biomass based power plants by running
create_tables(). Different methods rely on the locations of existing power plants retrieved from the official power plant registry ‘Marktstammdatenregister’ applying functionìmport_mastr().Hydro and Biomass Hydro and biomass power plants are distributed based on the status quo locations of existing power plants assuming that no further expansion of these technologies is to be expected in Germany. Hydro power plants include reservoir and run-of-river plants. Power plants without a correct geolocation are not taken into account. To compensate this, the installed capacities of the suitable plants are scaled up to meet the target value using function
scale_prox2now()Conventional power plants without CHP The distribution of conventional plants, excluding CHPs, takes place in function
allocate_conventional_non_chp_power_plants(). Therefore information about future power plants from the grid development plan function as the target value and are matched with actual existing power plants with correct geolocations from MaStR registry.Wind onshore
Wind offshore
PV ground-mounted
PV rooftop
others
- Dependencies
-
<egon.data.datasets.electricity_demand.CtsElectricityDemand>` *
HouseholdElectricityDemand*mastr_data*define_mv_grid_districts*RePotentialAreas*ZensusVg250*ScenarioCapacities*ScenarioParameters*Setup*substation_extraction*Vg250MvGridDistricts*ZensusMvGridDistricts - Resulting tables
:py:class:`supply.egon_power_plants
<egon.data.datasets.power_plants.EgonPowerPlants>` is filled
- name: str = 'PowerPlants'
- version: str = '0.0.28'
- allocate_conventional_non_chp_power_plants()[source]
Allocate conventional power plants without CHPs based on the NEP target values and data from power plant registry (MaStR) by assigning them in a cascaded manner.
- Returns
None.
- assign_bus_id(power_plants, cfg, drop_missing=False)[source]
Assigns bus_ids to power plants according to location and voltage level
- Parameters
power_plants (pandas.DataFrame) – Power plants including voltage level
- Returns
power_plants (pandas.DataFrame) – Power plants including voltage level and bus_id
- assign_voltage_level(mastr_loc, cfg, mastr_working_dir)[source]
Assigns voltage level to power plants.
If location data inluding voltage level is available from Marktstammdatenregister, this is used. Otherwise the voltage level is assigned according to the electrical capacity.
- Parameters
mastr_loc (pandas.DataFrame) – Power plants listed in MaStR with geometry inside German boundaries
- Returns
pandas.DataFrame – Power plants including voltage_level
- filter_mastr_geometry(mastr, federal_state=None)[source]
Filter data from MaStR by geometry
- Parameters
mastr (pandas.DataFrame) – All power plants listed in MaStR
federal_state (str or None) – Name of federal state whoes power plants are returned. If None, data for Germany is returned
- Returns
mastr_loc (pandas.DataFrame) – Power plants listed in MaStR with geometry inside German boundaries
- insert_biomass_plants(scenario)[source]
Insert biomass power plants of future scenario
- Parameters
scenario (str) – Name of scenario.
- Returns
None.
- insert_hydro_plants(scenario)[source]
Insert hydro power plants of future scenario.
Hydro power plants are diveded into run_of_river and reservoir plants according to Marktstammdatenregister. Additional hydro technologies (e.g. turbines inside drinking water systems) are not considered.
- Parameters
scenario (str) – Name of scenario.
- Returns
None.
- scale_prox2now(df, target, level='federal_state')[source]
Scale installed capacities linear to status quo power plants
- Parameters
df (pandas.DataFrame) – Status Quo power plants
target (pandas.Series) – Target values for future scenario
level (str, optional) – Scale per ‘federal_state’ or ‘country’. The default is ‘federal_state’.
- Returns
df (pandas.DataFrame) – Future power plants