scenario_parameters
The central module containing all code dealing with scenario table.
- class EgonScenario(**kwargs)[source]
Bases:
sqlalchemy.orm.decl_api.Base- description
- electricity_parameters
- gas_parameters
- global_parameters
- heat_parameters
- mobility_parameters
- name
- class ScenarioParameters(dependencies)[source]
Bases:
egon.data.datasets.DatasetCreate and fill table with central parameters for each scenario
This dataset creates and fills a table in the database that includes central parameters for each scenarios. These parameters are mostly from extrernal sources, they are defined and referenced within this dataset. The table is acced by various datasets to access the parameters for all sectors.
- Dependencies
- Resulting tables
scenario.egon_scenario_parametersis created and filled
- name: str = 'ScenarioParameters'
- version: str = '0.0.18'
- get_scenario_year(scenario_name)[source]
Derives scenarios year from scenario name. Scenario eGon100RE is an exception as year is not in the name.
- get_sector_parameters(sector, scenario=None)[source]
Returns parameters for each sector as dictionary.
If scenario=None data for all scenarios is returned as pandas.DataFrame. Otherwise the parameters of the specific scenario are returned as a dict.
- Parameters
sector (str) – Name of the sector. Options are: [‘global’, ‘electricity’, ‘heat’, ‘gas’, ‘mobility’]
scenario (str, optional) – Name of the scenario. The default is None.
- Returns
values (dict or pandas.DataFrane) – List or table of parameters for the selected sector