Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
072e249
fix overwriting of p_max_pu
MarlonSchlemminger Apr 11, 2018
59f0a6d
Merge pull request #252 from openego/fix/#227
Apr 16, 2018
94cff08
Merge pull request #268 from openego/master
Jun 5, 2018
8780cdb
added sql scripts for creating version specific dumps for grid.ego_pf…
ulfmueller Jun 11, 2018
edb2fde
Merge pull request #301 from openego/master
Jun 27, 2018
b1f177d
Change capacity of foregin lines to border crossing lines
ClaraBuettner Jul 5, 2018
7454417
Update number of cables and s_nom manually in special cases
ClaraBuettner Jul 6, 2018
1ba6967
Adjust capacity of underground cables between Denmark and Sweden.
ClaraBuettner Jul 11, 2018
dbf52d3
owner to oeuser
Jul 16, 2018
19389ea
Create ego_dp_data_check.sql
Jul 16, 2018
a48eda0
generator single subset changed form mview to table
maltesc Jul 16, 2018
b46bfdf
Merge pull request #308 from openego/features/single_integration
Jul 17, 2018
4956b78
remove version clause
Jul 17, 2018
c998aeb
include supply.ego_aggr_weather
Jul 17, 2018
a2e861e
include versioning of supply.ego_aggr_weather
Jul 17, 2018
3f112f4
change pkey
Jul 17, 2018
06ac752
minor changes
Jul 18, 2018
ad3f12b
Minor changes.
ClaraBuettner Jul 18, 2018
909c3d1
Merge pull request #310 from openego/feature/new_neighbour_script
Jul 18, 2018
28ae2f4
Include ego_dp_data_check.sql in sql_snippets
Jul 18, 2018
5aa7616
include scenario_log
Jul 18, 2018
4b6fd40
include data check
Jul 18, 2018
d1d62c2
create table grid.ego_pf_hv_data_check
Jul 18, 2018
9503b17
Include versioning of ego_grid_pf_hv_data_check
Jul 18, 2018
31d3432
Fix x-value of transformer.
ClaraBuettner Jul 19, 2018
2456d7f
Merge pull request #312 from openego/feature/new_neighbour_script
Jul 23, 2018
cfc4e46
change version number to v0.4.4
Jul 24, 2018
a366b96
fix #302
Jul 27, 2018
003ed25
Merge pull request #313 from openego/fix-#302
Jul 27, 2018
7ebe22d
adjust eeg filter
Jul 27, 2018
8473c6e
Merge pull request #315 from openego/fix/#314
Jul 29, 2018
3b485cb
Merge branch 'release/v0.4.4' into fix/#302
Jul 29, 2018
5b914d1
Merge pull request #316 from openego/fix/#302
Jul 29, 2018
7581896
minor changes
ulfmueller Jul 29, 2018
2e4c73c
remove BOM
ulfmueller Aug 2, 2018
1761e15
Update x-values of trafos
ClaraBuettner Aug 2, 2018
cb4f69c
Merge pull request #317 from openego/feature/fix_extension_trafos
Aug 2, 2018
49d1f53
debugging for v0.4.4
ulfmueller Aug 10, 2018
8015cdf
change version number
Aug 13, 2018
2d9abac
adjust executing python script
ulfmueller Aug 18, 2018
21dab4a
remove and create column otg_id
Aug 18, 2018
1381c5d
Revert "remove and create column otg_id"
Aug 20, 2018
3008ce5
fix version select
Aug 21, 2018
b6697c6
Merge branch 'release/v0.4.5' into fix/Mview
Aug 21, 2018
83bbb45
add 'v0.4.5'
Aug 21, 2018
5246996
remove version except for RES NEP and ego100
Aug 21, 2018
ceece77
Merge pull request #320 from openego/fix/Mview
ulfmueller Aug 21, 2018
0f55f65
update version selection
Aug 23, 2018
d552ca8
include data_check in versioning
Aug 23, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 43 additions & 42 deletions dataprocessing/eGo_data_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,60 +41,60 @@ def data_processing():

snippets = [
## INPUT DATA CHECK (eGoPP)
'ego_dp_structure_input_verification.sql', # Input verification (eGoPP)
# 'ego_dp_structure_input_verification.sql', # Input verification (eGoPP)

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

## GRIDDISTRICT
'ego_dp_mv_griddistrict.sql', # MV GridDistricts from municipalities and Voronoi cells
'ego_dp_substation_id_to_generator.sql', # Assign Substation ID (subst_id) to Generator (Conventional and Renewable)
# 'ego_dp_mv_griddistrict.sql', # MV GridDistricts from municipalities and Voronoi cells
# 'ego_dp_substation_id_to_generator.sql', # Assign Substation ID (subst_id) to Generator (Conventional and Renewable)

## LOADAREA
'ego_dp_loadarea_landuse.sql', # OSM landuse sectors
'ego_dp_loadarea_industry_consumer.sql', # OSM Industry consumer
'ego_dp_loadarea_loads.sql', # OSM Loads from landuse
'ego_dp_loadarea_census.sql', # Loads from Census 2011
'ego_dp_loadarea_loadmelt.sql', # Melt loads from OSM landuse and Census 2011
'ego_dp_loadarea_loadcut_griddistrict.sql', # Cut Loadarea with MV Griddistrict
'ego_dp_loadarea_loadcut_voronoi.sql', # Cut Loadarea with MV Voronoi cells
'ego_dp_loadarea_consumption.sql', # Allocate consumption to Loadareas
'ego_dp_loadarea_peakload.sql', # Peak loads per Loadarea
'ego_dp_loadarea_griddistrict_results.sql', # Results for MV Griddistrict
'ego_dp_loadarea_statistic.sql', # Results and statistics for eGoDP data
# 'ego_dp_loadarea_landuse.sql', # OSM landuse sectors
# 'ego_dp_loadarea_industry_consumer.sql', # OSM Industry consumer
# 'ego_dp_loadarea_loads.sql', # OSM Loads from landuse
# 'ego_dp_loadarea_census.sql', # Loads from Census 2011
# 'ego_dp_loadarea_loadmelt.sql', # Melt loads from OSM landuse and Census 2011
# 'ego_dp_loadarea_loadcut_griddistrict.sql', # Cut Loadarea with MV Griddistrict
# 'ego_dp_loadarea_loadcut_voronoi.sql', # Cut Loadarea with MV Voronoi cells
# 'ego_dp_loadarea_consumption.sql', # Allocate consumption to Loadareas
# 'ego_dp_loadarea_peakload.sql', # Peak loads per Loadarea
# 'ego_dp_loadarea_griddistrict_results.sql', # Results for MV Griddistrict
# 'ego_dp_loadarea_statistic.sql', # Results and statistics for eGoDP data

## LOWVOLTAGE
'ego_dp_lv_substation.sql', # MVLV Substation (ONT)
'ego_dp_lv_substation_voronoi.sql', # MVLV Substation Voronoi
'ego_dp_lv_loadcut.sql', # LV Loadcut
'ego_dp_lv_griddistrict.sql', # LV Griddistrict
'ego_dp_lv_consumption_peakload.sql', # LV Consumption and Peakload
# 'ego_dp_lv_substation.sql', # MVLV Substation (ONT)
# 'ego_dp_lv_substation_voronoi.sql', # MVLV Substation Voronoi
# 'ego_dp_lv_loadcut.sql', # LV Loadcut
# 'ego_dp_lv_griddistrict.sql', # LV Griddistrict
# 'ego_dp_lv_consumption_peakload.sql', # LV Consumption and Peakload

## REA
'rea/ego_dp_lattice_500m.sql', # Lattice (point grid) 500m
'rea/ego_dp_lattice_50m.sql', # Lattice (point grid) 50m
'rea/ego_dp_rea_wpa_per_mvgd.sql', # Wind potential area (WPA)
'rea/ego_dp_rea_lattice_per_area_500m.sql', # Prepare 500m lattice
'rea/ego_dp_rea_lattice_per_area_50m.sql', # Prepare 50m lattice
'rea/ego_dp_rea_setup.sql', # Setup tables for REA
'rea/ego_dp_rea_m1.sql', # M1 biomass and solar to OSM agricultural
'rea/ego_dp_rea_m2.sql', # M2 wind farms
'rea/ego_dp_rea_m3.sql', # M3 wind turbines to WPA
'rea/ego_dp_rea_m4.sql', # M4 other and rest
'rea/ego_dp_rea_m5.sql', # M5 LV to Loadarea
'rea/ego_dp_rea_results.sql', # Results and statistics
# 'rea/ego_dp_lattice_500m.sql', # Lattice (point grid) 500m
# 'rea/ego_dp_lattice_50m.sql', # Lattice (point grid) 50m
# 'rea/ego_dp_rea_wpa_per_mvgd.sql', # Wind potential area (WPA)
# 'rea/ego_dp_rea_lattice_per_area_500m.sql', # Prepare 500m lattice
# 'rea/ego_dp_rea_lattice_per_area_50m.sql', # Prepare 50m lattice
# 'rea/ego_dp_rea_setup.sql', # Setup tables for REA
# 'rea/ego_dp_rea_m1.sql', # M1 biomass and solar to OSM agricultural
# 'rea/ego_dp_rea_m2.sql', # M2 wind farms
# 'rea/ego_dp_rea_m3.sql', # M3 wind turbines to WPA
# 'rea/ego_dp_rea_m4.sql', # M4 other and rest
# 'rea/ego_dp_rea_m5.sql', # M5 LV to Loadarea
# 'rea/ego_dp_rea_results.sql', # Results and statistics

## POWERFLOW

'ego_dp_powerflow_hv_setup.sql', # Set schema/tables for EHV/HV powerflow calculations up
'ego_dp_powerflow_osmtgmod_to_pypsa.sql', # Include data from osmTGmod into EHV/HV powerflow schema
'ego_dp_powerflow_electrical_neighbour.sql', # Create border crossing lines and buses in neighbouring countries
'ego_dp_powerflow_fix_ehv_subnetworks.sql', # Fix topological errors in eHV grid
'ego_dp_powerflow_grid_future_scenarios.sql', # Copy grid to future scenarios
# 'ego_dp_powerflow_hv_setup.sql', # Set schema/tables for EHV/HV powerflow calculations up
# 'ego_dp_powerflow_osmtgmod_to_pypsa.sql', # Include data from osmTGmod into EHV/HV powerflow schema
# 'ego_dp_powerflow_electrical_neighbour.sql', # Create border crossing lines and buses in neighbouring countries
# 'ego_dp_powerflow_fix_ehv_subnetworks.sql', # Fix topological errors in eHV grid
# 'ego_dp_powerflow_grid_future_scenarios.sql', # Copy grid to future scenarios
'ego_dp_powerflow_assignment_otgid.sql', # assign otg_id to pp lists
'ego_dp_powerflow_assignment_unid.sql', # create a unified_id over all pp (res and conv)
'ego_dp_powerflow_create_pp_mview.sql', # create mviews to display power plants per scenario
Expand All @@ -105,12 +105,13 @@ def data_processing():
'ego_dp_powerflow_griddistrict_demand.py', # Demand per MV Griddistrict
'ego_dp_powerflow_timeseries_demand.sql', # Insert demand series into corresponding powerflow table (SQ, NEP2035, eGo100)
'ego_dp_powerflow_lopf_data.sql', # Set marginal costs for generators and storages
'ego_dp_data_check.sql', # Check powerflow data for plausibility
## POST-PROCESSING
'ego_pp_nep2035_grid_variations.sql' # Create extension_tables and insert NEP-data

## VERSIONING
'ego_dp_versioning.sql', # Versioning
'ego_dp_versioning_mviews.sql' , # Versioning of mviews
# 'ego_dp_versioning_mviews.sql' , # Versioning of mviews



Expand Down
4 changes: 2 additions & 2 deletions dataprocessing/python_scripts/ego_dp_loadarea_peakload.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def add_sectoral_peak_load(load_areas, **kwargs):
columns=columns)

write_ego_scenario_log(conn=conn,
version='v0.4.0',
version='v0.4.5',
io='input',
schema='model_draft',
table=table,
Expand Down Expand Up @@ -276,7 +276,7 @@ def add_sectoral_peak_load(load_areas, **kwargs):
metadata.submit_comment(conn, json_str, schema, target_table)

write_ego_scenario_log(conn=conn,
version='v0.4.0',
version='v0.4.5',
io='output',
schema='model_draft',
table=target_table,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def demand_per_mv_grid_district():
annual_demand_df = annual_demand_df.loc[~pd.isnull(annual_demand_df.index)]

write_scenario_log(conn=conn,
version='v0.4.2',
version='v0.4.5',
project='eGoDP',
io='input',
schema='model_draft',
Expand All @@ -80,7 +80,7 @@ def demand_per_mv_grid_district():
index_col='polygon_id')

write_scenario_log(conn=conn,
version='v0.4.2',
version='v0.4.5',
project='eGoDP',
io='input',
schema='model_draft',
Expand Down Expand Up @@ -188,7 +188,7 @@ def demand_per_mv_grid_district():
metadata.submit_comment(conn, json_str, schema, target_table)

write_scenario_log(conn=conn,
version='v0.4.2',
version='v0.4.5',
project='eGoDP',
io='output',
schema=schema,
Expand Down
2 changes: 1 addition & 1 deletion dataprocessing/python_scripts/setup_ego_mv_powerflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def create_powerflow_schema(engine, schema, tables):
tools.grant_db_access(conn, schema, table, group)

write_ego_scenario_log(conn=conn,
version='v0.4.2',
version='v0.4.5',
io='output',
schema=schema,
table=table,
Expand Down
Loading