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.

_images/ego_dp-pre_bpmn_sections.png

Scenario log

Prepare logging of data processing: create logging table and respective function that logs changes made to tables.

_images/ego_dp-pre_bpmn_section_scenario-log.png

RenpassG!S

Using repassG!S for creating time series of renewable power plants feedin.

_images/ego_dp-pre_bpmn_section_renpassGIS.png

COSMO-CLM grid

Import spatial data grid for COSMO-CLM climate data.

_images/ego_dp-pre_bpmn_section_cosmoclmgrid.png

Zensus

Import Zensus data.

_images/ego_dp-pre_bpmn_section_zensus.png

Import data for administrative boundaries from VG250 data set.

_images/ego_dp-pre_bpmn_section_bkg-vg250.png

OpenStreetMap

Import OpenStreetMap (OSM) data from Geofabrik data dumps.

_images/ego_dp-pre_bpmn_section_openstreetmap.png

Standard load profile

Insert standard load profile (SLP) parameters to database table.

_images/ego_dp-pre_bpmn_section_slp.png

Wind potential areas

Import wind potential area data from VerNETZen project.

_images/ego_dp-pre_bpmn_section_wind_potential_areas.png

Demand at federal states

Insert annual demand data at federal state level for different energy use sectors and disaggregate further.

_images/ego_dp-pre_bpmn_section_demand_federalstate.png

osmTGmod

EHV and HV level grid obtained from OSM with osmTGmod.

_images/ego_dp-pre_bpmn_section_osmtgmod.png

Power plant data

Basic preparation of power plant data.

_images/ego_dp-pre_bpmn_section_supply.png

Data processing

The data processing is organized into separate parts which are executed in desired order.

_images/ego_dp_bpmn_sections.png

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.

Input data chech

Check of data prepared for HV/EHV power grid calculations.

_images/ego_dp_bpmn_section_input_data_check.png

Substation

Process data for sub-stations in grid levels from EHV to MV and create Voronoi cuts around HV sub-stations.

_images/ego_dp_bpmn_section_substation.png

Grid district

Derive medium-voltage grid districts from administrative boundaries and HV/MV sub-station locations.

_images/ego_dp_bpmn_section_griddistrict.png

Load area

Define areas of electricity consumption categorized into energy consumption sectors.

_images/ego_dp_bpmn_section_loadarea.png

Low-voltage

Estimate medium/low-voltage sub-station locations and respective low-voltage grid districts.

_images/ego_dp_bpmn_section_lowvoltage.png

Renewable energy allocation (REA)

Enrich renewable power plant data base with more plausible locations for power plants with unprecise information about the location.

_images/ego_dp_bpmn_section_REA.png

Power flow

Prepare PyPSA-compatible tables for power-flow calculation in the EHV/HV grid level.

_images/ego_dp_bpmn_section_powerflow.png

Post-processing

Post-process Power flow data.

_images/ego_dp_bpmn_section_postprocessing.png

Versioning

Move resulting data to versioned schemas of the database.

_images/ego_dp_bpmn_section_versioning.png

Additional information on SQL-Scripts