heavy_duty_transport

Main module for preparation of model data (static and timeseries) for heavy duty transport.

Contents of this module

  • Creation of DB tables

  • Download and preprocessing of vehicle registration data from BAST

  • Calculation of hydrogen demand based on a Voronoi distribution of counted truck traffic among NUTS 3 regions.

  • Writing results to DB

  • Mapping demand to H2 buses and writing to DB

class HeavyDutyTransport(dependencies)[source]

Bases: Dataset

Class for preparation of static and timeseries data for heavy duty transport.

For more information see data documentation on Heavy-duty transport.

Dependencies
Resulting tables

Configuration

The config of this dataset can be found in datasets.yml in section mobility_hgv.

name: str = 'HeavyDutyTransport'
sources: DatasetSources = DatasetSources(tables={'vg250_lan': 'boundaries.vg250_lan', 'mv_grid': 'grid.egon_mv_grid_district'}, files={'original_data': {'original_data': {'sources': {'BAST': {'file': 'Jawe2020.csv', 'relevant_columns': ['DTV_SV_MobisSo_Q', 'Koor_WGS84_E', 'Koor_WGS84_N'], 'srid': 4326}}}, 'tables': {'srid': 3035, 'srid_buses': 4326}, 'constants': {'leakage': True, 'leakage_rate': 0.005, 'hydrogen_consumption': 6.68, 'fcev_share': 1.0, 'scenarios': ['eGon2035', 'eGon100RE'], 'carrier': 'H2_hgv_load', 'energy_value_h2': 39.4, 'hours_per_year': 8760, 'fac': 0.001}, 'hgv_mileage': {'eGon2035': 10000000000, 'eGon100RE': 40000000000}}}, urls={'BAST': 'https://www.bast.de/DE/Themen/Digitales/HF_1/Massnahmen/verkehrszaehlung/Daten/2020_1/Jawe2020.csv?view=renderTcDataExportCSV&strTyp=A'})

The sources used by the datasets. Could be tables, files and urls

targets: DatasetTargets = DatasetTargets(tables={'voronoi': 'demand.egon_heavy_duty_transport_voronoi', 'etrago_load': 'grid.egon_etrago_load', 'etrago_load_timeseries': 'grid.egon_etrago_load_timeseries'}, files={'BAST_download': 'heavy_duty_transport/Jawe2020.csv'})

The targets created by the datasets. Could be tables and files

version: str = '0.0.5'
create_tables()[source]

Drops existing demand.egon_heavy_duty_transport_voronoi is extended table and creates new one.

download_hgv_data()[source]

Downloads BAST data.

The data is downloaded to file specified in datasets.yml in section mobility_hgv/original_data/sources/BAST/file.