fill_etrago_gen
- class Egon_etrago_gen(dependencies)[source]
Bases:
DatasetGroup generators based on Scenario, carrier and bus. Marginal costs are assigned to generators without this data. Grouped generators are sent to the egon_etrago_generator table and a timeseries is assigned to the weather dependent ones.
- Dependencies
- Resulting tables
grid.egon_etrago_generatoris extendedgrid.egon_etrago_generator_timeseriesis filled
- name: str = 'etrago_generators'
- sources: DatasetSources = DatasetSources(tables={'power_plants': 'supply.egon_power_plants', 'renewable_feedin': 'supply.egon_era5_renewable_feedin', 'weather_cells': 'supply.egon_era5_weather_cells', 'bus': 'grid.egon_etrago_bus'}, files={}, urls={})
The sources used by the datasets. Could be tables, files and urls
- targets: DatasetTargets = DatasetTargets(tables={'etrago_generators': 'grid.egon_etrago_generator', 'etrago_gen_time': 'grid.egon_etrago_generator_timeseries'}, files={})
The targets created by the datasets. Could be tables and files
- version: str = '0.0.10'
- set_timeseries(power_plants, renew_feedin)[source]
Create a function to calculate the feed-in timeseries for power plants.
- Parameters:
power_plants (DataFrame) – A DataFrame containing information about power plants, including their bus IDs, carriers, weather cell IDs, and electrical capacities.
renew_feedin (DataFrame) – A DataFrame containing feed-in values for different carriers and weather cell IDs.
- Returns:
function – A function that takes a power plant object and returns its feed-in value based on either its direct weather cell ID or the aggregated feed-in of all power plants connected to the same bus and having the same carrier.