fill_etrago_gen

class Egon_etrago_gen(dependencies)[source]

Bases: egon.data.datasets.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'
version: str = '0.0.8'
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.