scenario_parameters
The central module containing all code dealing with scenario table.
- class EgonScenario(**kwargs)[source]
Bases:
Base- description
- electricity_parameters
- gas_parameters
- global_parameters
- heat_parameters
- mobility_parameters
- name
- class ScenarioParameters(dependencies)[source]
Bases:
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'
- sources: DatasetSources = DatasetSources(tables={}, files={}, urls={'pypsa_technology_data': {'url': 'https://zenodo.org/record/5544025/files/PyPSA/technology-data-v0.3.0.zip'}})
The sources used by the datasets. Could be tables, files and urls
- targets: DatasetTargets = DatasetTargets(tables={'egon_scenario_parameters': 'scenario.egon_scenario_parameters'}, files={'pypsa_zip': 'pypsa_technology_data_egon_data.zip', 'data_dir': 'PyPSA-technology-data-94085a8/outputs/', 'technology_data': 'pypsa_technology_data/technology_data.xlsx'})
The targets created by the datasets. Could be tables and files
- version: str = '0.0.21'
- 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