pumped_hydro¶
The module containing code allocating pumped hydro plants based on data from MaStR and NEP.
-
apply_voltage_level_thresholds
(power_plants)[source]¶ Assigns voltage level to power plants based on thresholds defined for the egon project.
Parameters: power_plants (pandas.DataFrame) – Power plants and their electrical capacity Returns: pandas.DataFrame – Power plants including voltage_level
-
get_location
(unmatched)[source]¶ Gets a geolocation for units which couldn’t be matched using MaStR data. Uses geolocator and the city name from NEP data to create longitude and latitude for a list of unmatched units.
Parameters: unmatched (pandas.DataFrame) – storage units from NEP which are not matched to MaStR but containing a city information Returns: - unmatched (pandas.DataFrame) – Units for which no geolocation could be identified
- located (pandas.DataFrame) – Units with a geolocation based on their city information
-
match_storage_units
(nep, mastr, matched, buffer_capacity=0.1, consider_location='plz', consider_carrier=True, consider_capacity=True)[source]¶ Match storage_units (in this case only pumped hydro) from MaStR to list of power plants from NEP
Parameters: - nep (pandas.DataFrame) – storage units from NEP which are not matched to MaStR
- mastr (pandas.DataFrame) – Pstorage_units from MaStR which are not matched to NEP
- matched (pandas.DataFrame) – Already matched storage_units
- buffer_capacity (float, optional) – Maximum difference in capacity in p.u. The default is 0.1.
Returns: - matched (pandas.DataFrame) – Matched CHP
- mastr (pandas.DataFrame) – storage_units from MaStR which are not matched to NEP
- nep (pandas.DataFrame) – storage_units from NEP which are not matched to MaStR