motorized_individual_travel_charging_infrastructure

Motorized Individual Travel (MIT) Charging Infrastructure

Main module for preparation of static model data for charging infrastructure for motorized individual travel.

class MITChargingInfrastructure(dependencies)[source]

Bases: Dataset

name: str = 'MITChargingInfrastructure'
sources: DatasetSources = DatasetSources(tables={'mv_grid_districts': 'grid.egon_mv_grid_district', 'buildings': 'demand.egon_map_houseprofiles_buildings'}, files={'tracbev_parameters': {'tracbev_config': {'srid': 3035, 'files_to_use': ['hpc_positions.gpkg', 'landuse.gpkg', 'poi_cluster.gpkg', 'public_positions.gpkg']}, 'work_weight_retail': 0.8, 'work_weight_commercial': 1.25, 'work_weight_industrial': 1, 'single_family_home_share': 0.6, 'single_family_home_spots': 1.5, 'multi_family_home_share': 0.4, 'multi_family_home_spots': 10, 'random_seed': 5, 'cols_to_export': ['mv_grid_id', 'use_case', 'weight', 'geometry']}}, urls={'tracbev': 'https://zenodo.org/record/6466480/files/data.zip?download=1'})

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

targets: DatasetTargets = DatasetTargets(tables={'charging_infrastructure': 'grid.egon_emob_charging_infrastructure'}, files={'tracbev_download': 'charging_infrastructure/data.zip'})

Preparation of static model data for charging infrastructure for motorized individual travel.

The following is done:

  • Creation of DB tables

  • Download and preprocessing of vehicle registration data from zenodo

  • Determination of all potential charging locations for the four charging use cases home, work, public and hpc per MV grid district

  • Write results to DB

For more information see data documentation on Motorized individual travel.

Dependencies
Resulting tables

Configuration

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

Charging Infrastructure

The charging infrastructure allocation is based on TracBEV. TracBEV is a tool for the regional allocation of charging infrastructure. In practice this allows users to use results generated via SimBEV and place the corresponding charging points on a map. These are split into the four use cases home, work, public and hpc.

version: str = '0.0.9'
create_tables() None[source]

Create tables for charging infrastructure

Returns:

None

download_zip(url: str, target: Path, chunk_size: int | None = 128) None[source]

Download zip file from URL.

Parameters:
  • url (str) – URL to download the zip file from

  • target (pathlib.Path) – Directory to save zip to

  • chunk_size (int or None) – Size of chunks to download

get_tracbev_data() None[source]

Wrapper function to get TracBEV data provided on Zenodo.

unzip_file(source: Path, target: Path) None[source]

Unzip zip file

Parameters:
  • source (Path) – Zip file path to unzip

  • target (Path) – Directory to save unzipped content to