Skip to content

Commit d2bfd52

Browse files
committed
minor debugging
1 parent e0ac18c commit d2bfd52

3 files changed

Lines changed: 13 additions & 10 deletions

File tree

dataprocessing/eGo_data_processing.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@ def data_processing():
9595
# 'ego_dp_powerflow_electrical_neighbour.sql', # Create border crossing lines and buses in neighbouring countries
9696
# 'ego_dp_powerflow_fix_ehv_subnetworks.sql', # Fix topological errors in eHV grid
9797
# 'ego_dp_powerflow_grid_future_scenarios.sql', # Copy grid to future scenarios
98-
'ego_dp_powerflow_assignment_otgid.sql', # assign otg_id to pp lists
99-
'ego_dp_powerflow_assignment_unid.sql', # create a unified_id over all pp (res and conv)
100-
'ego_dp_powerflow_create_pp_mview.sql', # create mviews to display power plants per scenario
101-
'ego_dp_powerflow_assignment_generator.sql', # Assign generators to corresponding substation (SQ, NEP2035, eGo100)
102-
'ego_dp_powerflow_assignment_load.sql', # Assign loads to their corresponding substation (SQ, NEP2035, eGo100)
103-
'ego_dp_powerflow_assignment_storage.sql', # Assign storages to their corresponding substation (SQ, NEP 2035, eGo 100)
104-
'ego_dp_powerflow_timeseries_generator.sql', # Transfer renpassG!S results into the corresponding powerflow table
98+
# 'ego_dp_powerflow_assignment_otgid.sql', # assign otg_id to pp lists
99+
# 'ego_dp_powerflow_assignment_unid.sql', # create a unified_id over all pp (res and conv)
100+
# 'ego_dp_powerflow_create_pp_mview.sql', # create mviews to display power plants per scenario
101+
# 'ego_dp_powerflow_assignment_generator.sql', # Assign generators to corresponding substation (SQ, NEP2035, eGo100)
102+
# 'ego_dp_powerflow_assignment_load.sql', # Assign loads to their corresponding substation (SQ, NEP2035, eGo100)
103+
# 'ego_dp_powerflow_assignment_storage.sql', # Assign storages to their corresponding substation (SQ, NEP 2035, eGo 100)
104+
# 'ego_dp_powerflow_timeseries_generator.sql', # Transfer renpassG!S results into the corresponding powerflow table
105105
'ego_dp_powerflow_griddistrict_demand.py', # Demand per MV Griddistrict
106106
'ego_dp_powerflow_timeseries_demand.sql', # Insert demand series into corresponding powerflow table (SQ, NEP2035, eGo100)
107107
'ego_dp_powerflow_lopf_data.sql', # Set marginal costs for generators and storages

dataprocessing/sql_snippets/ego_dp_powerflow_hv_setup.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@ COMMENT ON TABLE model_draft.ego_grid_pf_hv_bus IS '{
389389
"metadata_version": "1.3"
390390
}';
391391

392+
/*
392393
-- PF HV busmap
393394
DROP TABLE IF EXISTS model_draft.ego_grid_pf_hv_busmap CASCADE;
394395
CREATE TABLE model_draft.ego_grid_pf_hv_busmap (
@@ -476,6 +477,8 @@ COMMENT ON TABLE model_draft.ego_grid_pf_hv_busmap IS '{
476477
"metadata_version": "1.3"
477478
}';
478479
480+
*/
481+
479482
-- select description
480483
SELECT obj_description('model_draft.ego_grid_pf_hv_bus' ::regclass) ::json;
481484

dataprocessing/sql_snippets/ego_dp_powerflow_timeseries_generator.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ FROM
684684
neighbours.bus_id AS bus_id,
685685
weather.gid AS w_id
686686
FROM model_draft.ego_grid_hv_electrical_neighbours_bus AS neighbours,
687-
coastdat.cosmoclmgrid AS weather
687+
climate.cosmoclmgrid AS weather
688688
WHERE ST_Intersects(weather.geom, neighbours.geom))
689689
AS buses,
690690
model_draft.ego_grid_pf_hv_generator AS generators
@@ -785,7 +785,7 @@ FROM
785785
neighbours.bus_id AS bus_id,
786786
weather.gid AS w_id
787787
FROM model_draft.ego_grid_hv_electrical_neighbours_bus AS neighbours,
788-
coastdat.cosmoclmgrid AS weather
788+
climate.cosmoclmgrid AS weather
789789
WHERE ST_Intersects(weather.geom, neighbours.geom))
790790
AS buses,
791791
model_draft.ego_grid_pf_hv_generator AS generators
@@ -886,7 +886,7 @@ FROM
886886
neighbours.bus_id AS bus_id,
887887
weather.gid AS w_id
888888
FROM model_draft.ego_grid_hv_electrical_neighbours_bus AS neighbours,
889-
coastdat.cosmoclmgrid AS weather
889+
climate.cosmoclmgrid AS weather
890890
WHERE ST_Intersects(weather.geom, neighbours.geom))
891891
AS buses,
892892
model_draft.ego_grid_pf_hv_generator AS generators

0 commit comments

Comments
 (0)