electricity_demand

The central module containing all code dealing with processing data from demandRegio

class CtsElectricityDemand(dependencies)[source]

Bases: egon.data.datasets.Dataset

class EgonDemandRegioZensusElectricity(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

demand
scenario
sector
zensus_population_id
class HouseholdElectricityDemand(dependencies)[source]

Bases: egon.data.datasets.Dataset

create_tables()[source]

Create tables for demandregio data :returns: None.

distribute_cts_demands()[source]

Distribute electrical demands for cts to zensus cells.

The demands on nuts3-level from demandregio are linear distributed to the heat demand of cts in each zensus cell.

Returns:None.
get_annual_household_el_demand_cells()[source]

Annual electricity demand per cell is determined

Timeseries for every cell are accumulated, the maximum value determined and with the respective nuts3 factor scaled for 2035 and 2050 scenario.

Note

In test-mode ‘SH’ the iteration takes place by ‘cell_id’ to avoid intensive RAM usage. For whole Germany ‘nuts3’ are taken and RAM > 32GB is necessary.