Skip to content

Commit bef0aeb

Browse files
author
IlkaCu
committed
clean eGo_data_processing.py up
1 parent 51f0a25 commit bef0aeb

1 file changed

Lines changed: 52 additions & 52 deletions

File tree

dataprocessing/eGo_data_processing.py

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -44,70 +44,70 @@ def data_processing():
4444
# 'ego_dp_vacuum_full.sql',
4545

4646
## INPUT DATA CHECK eGoPP
47-
# 'ego_dp_structure_input_verification.sql', # Check input tables and versions from eGoPP
47+
'ego_dp_structure_input_verification.sql', # Check input tables and versions from eGoPP
4848

4949
## SUBSTATION
50-
# 'ego_dp_substation_hvmv.sql', # Abstract HVMV Substations of the high voltage level from OSM
51-
# 'ego_dp_substation_ehv.sql', # Abstract EHV Substations of the extra high voltage level from OSM
52-
# 'ego_dp_substation_otg.sql', # Assign osmTGmod-id to HVMV and EHV substations
53-
# 'ego_dp_substation_hvmv_voronoi.sql', # HVMV Voronoi cells based on HVMV substations
54-
# 'ego_dp_substation_ehv_voronoi.sql', # EHV Voronoi cells based on EHV substations
50+
'ego_dp_substation_hvmv.sql', # Abstract HVMV Substations of the high voltage level from OSM
51+
'ego_dp_substation_ehv.sql', # Abstract EHV Substations of the extra high voltage level from OSM
52+
'ego_dp_substation_otg.sql', # Assign osmTGmod-id to HVMV and EHV substations
53+
'ego_dp_substation_hvmv_voronoi.sql', # HVMV Voronoi cells based on HVMV substations
54+
'ego_dp_substation_ehv_voronoi.sql', # EHV Voronoi cells based on EHV substations
5555

5656
## GRIDDISTRICT
57-
# 'ego_dp_mv_griddistrict.sql', # MV Griddistricts from municipalities and Voronoi cells
58-
# 'ego_dp_substation_id_to_generator.sql', # Assign subst_id to pp lists
57+
'ego_dp_mv_griddistrict.sql', # MV Griddistricts from municipalities and Voronoi cells
58+
'ego_dp_substation_id_to_generator.sql', # Assign subst_id to pp lists
5959

6060
## LOADAREA
61-
# 'ego_dp_loadarea_landuse.sql', # OSM landuse sector
62-
# 'ego_dp_loadarea_industry_consumer.sql', # Industry consumer
63-
# 'ego_dp_loadarea_loads.sql', # Loads from OSM landuse
64-
# 'ego_dp_loadarea_census.sql', # Loads from Census
65-
# 'ego_dp_loadarea_loadmelt.sql', # Melt OSM landuse and Zensus loads
66-
# 'ego_dp_loadarea_loadcut_griddistrict.sql', # Cut Loadarea with MV Griddistrict
67-
# 'ego_dp_loadarea_loadcut_voronoi.sql', # Cut Loadarea with MV Voronoi cells
68-
# 'ego_dp_loadarea_consumption.sql', # Allocate consumption to Loadareas
69-
# 'ego_dp_loadarea_peakload.sql', # Peak loads per Loadarea
70-
# 'ego_dp_loadarea_griddistrict_results.sql', # Results for MV Griddistrict
71-
# 'ego_dp_loadarea_statistic.sql', # Results and statistics for eGoDP
61+
'ego_dp_loadarea_landuse.sql', # OSM landuse sector
62+
'ego_dp_loadarea_industry_consumer.sql', # Industry consumer
63+
'ego_dp_loadarea_loads.sql', # Loads from OSM landuse
64+
'ego_dp_loadarea_census.sql', # Loads from Census
65+
'ego_dp_loadarea_loadmelt.sql', # Melt OSM landuse and Zensus loads
66+
'ego_dp_loadarea_loadcut_griddistrict.sql', # Cut Loadarea with MV Griddistrict
67+
'ego_dp_loadarea_loadcut_voronoi.sql', # Cut Loadarea with MV Voronoi cells
68+
'ego_dp_loadarea_consumption.sql', # Allocate consumption to Loadareas
69+
'ego_dp_loadarea_peakload.sql', # Peak loads per Loadarea
70+
'ego_dp_loadarea_griddistrict_results.sql', # Results for MV Griddistrict
71+
'ego_dp_loadarea_statistic.sql', # Results and statistics for eGoDP
7272

7373
## LOWVOLTAGE
74-
# 'ego_dp_lv_substation.sql', # MVLV Substation inside Loadarea
75-
# 'ego_dp_lv_substation_voronoi.sql', # MVLV Substation Voronoi
76-
# 'ego_dp_lv_griddistrict.sql', # LV Griddistrict
77-
# 'ego_dp_lv_peakload.sql', # LV OSM areas
78-
# 'ego_dp_lv_consumption_peakload.sql', # LV Consumption and Peakload
74+
'ego_dp_lv_substation.sql', # MVLV Substation inside Loadarea
75+
'ego_dp_lv_substation_voronoi.sql', # MVLV Substation Voronoi
76+
'ego_dp_lv_griddistrict.sql', # LV Griddistrict
77+
'ego_dp_lv_peakload.sql', # LV OSM areas
78+
'ego_dp_lv_consumption_peakload.sql', # LV Consumption and Peakload
7979

8080
## REA
81-
# 'rea/ego_dp_lattice_500m.sql', # lattice (point grid) 500m
82-
# 'rea/ego_dp_lattice_50m.sql', # lattice (point grid) 50m
83-
# 'rea/ego_dp_rea_wpa_per_mvgd.sql', # wind potential area
84-
85-
# 'rea/ego_dp_rea_lattice_per_area_500m.sql', # prepare 500m lattice
86-
# 'rea/ego_dp_rea_lattice_per_area_50m.sql', # prepare 50m lattice
87-
# 'rea/ego_dp_rea_setup.sql', # setup table for allocation
88-
# 'rea/ego_dp_rea_m1.sql', # M1 biomass and solar to farmyard
89-
# 'rea/ego_dp_rea_m2.sql', # M2 windfarms
90-
# 'rea/ego_dp_rea_m3.sql', # M3 wind turbines to wpa
91-
# 'rea/ego_dp_rea_m4.sql', # M4 other and rest
92-
# 'rea/ego_dp_rea_m5.sql', # M5 LV to LA
93-
# 'rea/ego_dp_rea_results.sql', # results and statistics
81+
'rea/ego_dp_lattice_500m.sql', # lattice (point grid) 500m
82+
'rea/ego_dp_lattice_50m.sql', # lattice (point grid) 50m
83+
'rea/ego_dp_rea_wpa_per_mvgd.sql', # wind potential area
84+
85+
'rea/ego_dp_rea_lattice_per_area_500m.sql', # prepare 500m lattice
86+
'rea/ego_dp_rea_lattice_per_area_50m.sql', # prepare 50m lattice
87+
'rea/ego_dp_rea_setup.sql', # setup table for allocation
88+
'rea/ego_dp_rea_m1.sql', # M1 biomass and solar to farmyard
89+
'rea/ego_dp_rea_m2.sql', # M2 windfarms
90+
'rea/ego_dp_rea_m3.sql', # M3 wind turbines to wpa
91+
'rea/ego_dp_rea_m4.sql', # M4 other and rest
92+
'rea/ego_dp_rea_m5.sql', # M5 LV to LA
93+
'rea/ego_dp_rea_results.sql', # results and statistics
9494

9595
## POWERFLOW
96-
# 'ego_dp_powerflow_assignment_otgid.sql', # assign otg_id to pp lists
97-
# 'ego_dp_powerflow_assignment_unid.sql', # create a unified_id over all pp (res and conv)
98-
# 'ego_dp_powerflow_create_pp_mview.sql', # create mviews to display power plants per scenario
99-
# 'ego_dp_powerflow_voronoi_weatherpoint.sql', # Create voronoi cells based on weather points
100-
# 'ego_dp_powerflow_hv_setup.sql', # Set schema/tables for EHV/HV powerflow calculations up
101-
# 'ego_dp_powerflow_osmtgmod_to_pypsa.sql', # Include data from osmTGmod into EHV/HV powerflow schema
102-
# 'ego_dp_powerflow_electrical_neighbour.sql', # Create border crossing lines and buses in neighbouring countries
103-
# 'ego_dp_powerflow_grid_future_scenarios.sql', # Copy grid to future scenarios
104-
# 'ego_dp_powerflow_assignment_generator.sql', # Assign generators to corresponding substation (SQ, NEP2035, eGo100)
105-
# 'ego_dp_powerflow_assignment_load.sql', # Assign loads to their corresponding substation (SQ, NEP2035, eGo100)
106-
# 'ego_dp_powerflow_assignment_storage.sql', # Assign storages to their corresponding substation (SQ, NEP 2035, eGo 100)
107-
# 'ego_dp_powerflow_timeseries_generator.sql', # Transfer renpassG!S results into the corresponding powerflow table
108-
# 'ego_dp_powerflow_griddistrict_demand.py', # Demand per MV Griddistrict
109-
# 'ego_dp_powerflow_timeseries_demand.sql', # Insert demand series into corresponding powerflow table (SQ, NEP2035, eGo100)
110-
# 'ego_dp_powerflow_lopf_data.sql', # Set marginal costs for generators and storages
96+
'ego_dp_powerflow_assignment_otgid.sql', # assign otg_id to pp lists
97+
'ego_dp_powerflow_assignment_unid.sql', # create a unified_id over all pp (res and conv)
98+
'ego_dp_powerflow_create_pp_mview.sql', # create mviews to display power plants per scenario
99+
'ego_dp_powerflow_voronoi_weatherpoint.sql', # Create voronoi cells based on weather points
100+
'ego_dp_powerflow_hv_setup.sql', # Set schema/tables for EHV/HV powerflow calculations up
101+
'ego_dp_powerflow_osmtgmod_to_pypsa.sql', # Include data from osmTGmod into EHV/HV powerflow schema
102+
'ego_dp_powerflow_electrical_neighbour.sql', # Create border crossing lines and buses in neighbouring countries
103+
'ego_dp_powerflow_grid_future_scenarios.sql', # Copy grid to future scenarios
104+
'ego_dp_powerflow_assignment_generator.sql', # Assign generators to corresponding substation (SQ, NEP2035, eGo100)
105+
'ego_dp_powerflow_assignment_load.sql', # Assign loads to their corresponding substation (SQ, NEP2035, eGo100)
106+
'ego_dp_powerflow_assignment_storage.sql', # Assign storages to their corresponding substation (SQ, NEP 2035, eGo 100)
107+
'ego_dp_powerflow_timeseries_generator.sql', # Transfer renpassG!S results into the corresponding powerflow table
108+
'ego_dp_powerflow_griddistrict_demand.py', # Demand per MV Griddistrict
109+
'ego_dp_powerflow_timeseries_demand.sql', # Insert demand series into corresponding powerflow table (SQ, NEP2035, eGo100)
110+
'ego_dp_powerflow_lopf_data.sql', # Set marginal costs for generators and storages
111111

112112

113113
## VERSIONING

0 commit comments

Comments
 (0)