motorized_individual_travel

Main module for preparation of model data (static and timeseries) for motorized individual travel (MIT).

Contents of this module
  • Creation of DB tables
  • Download and preprocessing of vehicle registration data from KBA and BMVI
  • Calculate number of electric vehicles and allocate on different spatial levels.
  • Extract and write pre-generated trips to DB
class MotorizedIndividualTravel(dependencies)[source]

Bases: egon.data.datasets.Dataset

Class to set up static and timeseries data for motorized individual travel (MIT).

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 emobility_mit.

name = 'MotorizedIndividualTravel'
version = '0.0.7'
adapt_numpy_float64(numpy_float64)[source]
adapt_numpy_int64(numpy_int64)[source]
create_tables()[source]

Create tables for electric vehicles

Returns:None
download_and_preprocess()[source]

Downloads and preprocesses data from KBA and BMVI

Returns:
  • pandas.DataFrame – Vehicle registration data for registration district
  • pandas.DataFrame – RegioStaR7 data
extract_trip_file()[source]

Extract trip file from data bundle

write_evs_trips_to_db()[source]

Write EVs and trips generated by simBEV from data bundle to database table

write_metadata_to_db()[source]

Write used SimBEV metadata per scenario to database.