Data processing scripts¶
The preparation of data in organized into Preprocessing and Data processing. Scripts contained in the Preprocessing include import of raw and basic preparation for later use in scripts of Data processing.
Preprocessing¶
Overview on pre-processing scripts that import data and do basic preparation. Data pre-processing steps partially depend on each other which is shown in the following figure.
Scenario log¶
Prepare logging of data processing: create logging table and respective function that logs changes made to tables.
OpenStreetMap¶
Import OpenStreetMap (OSM) data from Geofabrik data dumps.
Demand at federal states¶
Insert annual demand data at federal state level for different energy use sectors and disaggregate further.
Power plant data¶
Basic preparation of power plant data.
Data processing¶
The data processing is organized into separate parts which are executed in desired order.
Each of these parts consists of multiple data processing steps that are stored in separate SQL files. The following sections explain what is done in each section, which data is accessed, created or manipulated, and which tables results of each script.
Substation¶
Process data for sub-stations in grid levels from EHV to MV and create Voronoi cuts around HV sub-stations.
Grid district¶
Derive medium-voltage grid districts from administrative boundaries and HV/MV sub-station locations.
Load area¶
Define areas of electricity consumption categorized into energy consumption sectors.
Low-voltage¶
Estimate medium/low-voltage sub-station locations and respective low-voltage grid districts.
Renewable energy allocation (REA)¶
Enrich renewable power plant data base with more plausible locations for power plants with unprecise information about the location.
Power flow¶
Prepare PyPSA-compatible tables for power-flow calculation in the EHV/HV grid level.
Versioning¶
Move resulting data to versioned schemas of the database.