osmtgmod
- class Osmtgmod(dependencies)[source]
Bases:
DatasetRun the tool osmtgmod to generate transmission grid topology
Executes the tool osmtgmod which create a electricity grid topology based on OSM data for the voltage levels 110 - 380 kV. For further information on osmtgmod please refer our osmtgmod fork. Standard electrical line parameters are added to the grid topology and resulting data on buses, lines and transformers are exported to the data base.
- Dependencies
- Resulting tables
grid.egon_etrago_busis extendedgrid.egon_etrago_lineis extendedgrid.egon_etrago_transformeris extended
- name: str = 'Osmtgmod'
- sources: DatasetSources = DatasetSources(tables={'osmtgmod_bus': 'osmtgmod_results.bus_data', 'osmtgmod_branch': 'osmtgmod_results.branch_data', 'osmtgmod_dcline_data': 'osmtgmod_results.dcline_data', 'osmtgmod_results_meta': 'osmtgmod_results.results_metadata', 'ehv_transfer_buses': 'grid.egon_ehv_transfer_buses', 'hvmv_transfer_buses': 'grid.egon_hvmv_transfer_buses'}, files={'file': 'germany-250101.osm.pbf', 'file_testmode': 'schleswig-holstein-250101.osm.pbf'}, urls={})
The sources used by the datasets. Could be tables, files and urls
- targets: DatasetTargets = DatasetTargets(tables={'etrago_bus': 'grid.egon_etrago_bus', 'etrago_line': 'grid.egon_etrago_line', 'etrago_transformer': 'grid.egon_etrago_transformer', 'ehv_substation': 'grid.egon_ehv_substation', 'hvmv_substation': 'grid.egon_hvmv_substation'}, files={})
The targets created by the datasets. Could be tables and files
- version: str = '0.0.12'
- osmtgmod(config_database='egon-data', config_basepath='osmTGmod/egon-data', config_continue_run=False, filtered_osm_pbf_path_to_file=None, docker_db_config=None)[source]
- reset_etrago_sequences_to_max_id()[source]
Resets all grid.etrago_* sequences so that their next value is one more than the maximum ID currently stored in their corresponding table.
Example: - If grid.egon_etrago_line.line_id has max value 123,
then grid.etrago_line_id_seq will be set to start at 124.
Notes
Assumes each table has an ID column named {component}_id or ‘trafo_id’ for ‘transformer’.
If a table is empty, sequence is reset to 1.