fill_etrago_gen

class Egon_etrago_gen(dependencies)[source]

Bases: Dataset

Group 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
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'
add_marginal_costs(power_plants)[source]
adjust_renew_feedin_table(renew_feedin, cfg)[source]
consistency(data)[source]
delete_previuos_gen(cfg, con, etrago_gen_orig, power_plants)[source]
fill_etrago_gen_table(etrago_pp2, etrago_gen_orig, cfg, con)[source]
fill_etrago_gen_time_table(etrago_pp, power_plants, renew_feedin, pp_time, cfg, con)[source]
fill_etrago_generators()[source]
group_power_plants(power_plants, renew_feedin, etrago_gen_orig, cfg)[source]
load_tables(con, cfg)[source]
numpy_nan(data)[source]
power_timeser(weather_data)[source]
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.