Merge branch 'master' of github.com:PyPSA/pypsa-eur
This commit is contained in:
commit
58c0242312
@ -263,6 +263,8 @@ clustering:
|
|||||||
algorithm: kmeans # choose from: [hac, kmeans]
|
algorithm: kmeans # choose from: [hac, kmeans]
|
||||||
feature: solar+onwind-time # only for hac. choose from: [solar+onwind-time, solar+onwind-cap, solar-time, solar-cap, solar+offwind-cap] etc.
|
feature: solar+onwind-time # only for hac. choose from: [solar+onwind-time, solar+onwind-cap, solar-time, solar-cap, solar+offwind-cap] etc.
|
||||||
exclude_carriers: []
|
exclude_carriers: []
|
||||||
|
remove_stubs: true
|
||||||
|
remove_stubs_across_borders: true
|
||||||
cluster_network:
|
cluster_network:
|
||||||
algorithm: kmeans
|
algorithm: kmeans
|
||||||
feature: solar+onwind-time
|
feature: solar+onwind-time
|
||||||
|
@ -24,3 +24,5 @@ Gridlink,Kingsnorth (UK),Warande (FR),160,,1400,in permitting,,https://tyndp.ent
|
|||||||
NeuConnect,Grain (UK),Fedderwarden (DE),680,,1400,in permitting,,https://tyndp.entsoe.eu/tyndp2018/projects/projects/309,0.716666666666667,51.44,8.046524,53.562763
|
NeuConnect,Grain (UK),Fedderwarden (DE),680,,1400,in permitting,,https://tyndp.entsoe.eu/tyndp2018/projects/projects/309,0.716666666666667,51.44,8.046524,53.562763
|
||||||
NordBalt,Klaipeda (LT),Nybro (SE),450,,700,built,,https://en.wikipedia.org/wiki/NordBalt,21.256667,55.681667,15.854167,56.767778
|
NordBalt,Klaipeda (LT),Nybro (SE),450,,700,built,,https://en.wikipedia.org/wiki/NordBalt,21.256667,55.681667,15.854167,56.767778
|
||||||
Estlink 1,Harku (EE),Espoo (FI),105,,350,built,,https://en.wikipedia.org/wiki/Estlink,24.560278,59.384722,24.551667,60.203889
|
Estlink 1,Harku (EE),Espoo (FI),105,,350,built,,https://en.wikipedia.org/wiki/Estlink,24.560278,59.384722,24.551667,60.203889
|
||||||
|
Greenlink,Waterford (IE),Pembroke (UK),,180,500,under construction,,https://tyndp2022-project-platform.azurewebsites.net/projectsheets/transmission/286,-6.987,52.260,-4.986,51.686
|
||||||
|
Celtic Interconnector,Aghada (IE),La Martyre (FR),,572,700,under consideration,,https://tyndp2022-project-platform.azurewebsites.net/projectsheets/transmission/107,-8.16642,51.91413,-4.184,48.459
|
||||||
|
|
@ -36,12 +36,20 @@ Link:
|
|||||||
"5583": "7428" # bus0 == bus1 to remove link in remove_unconnected_components (Sardinia)
|
"5583": "7428" # bus0 == bus1 to remove link in remove_unconnected_components (Sardinia)
|
||||||
"13588": "7428" # bus0 == bus1 to remove link in remove_unconnected_components (Sardinia)
|
"13588": "7428" # bus0 == bus1 to remove link in remove_unconnected_components (Sardinia)
|
||||||
"T23": "6355" # bus0 == bus1 to remove link in remove_unconnected_components (NordBalt)
|
"T23": "6355" # bus0 == bus1 to remove link in remove_unconnected_components (NordBalt)
|
||||||
|
"14815": "5939" # Kainachtal
|
||||||
|
"8706": "6448"
|
||||||
bus1:
|
bus1:
|
||||||
index:
|
index:
|
||||||
"12931": "8152" # BorWin3
|
"12931": "8152" # BorWin3
|
||||||
"5582": "2382" # combine link 5583 + 5582 in 5582 (Sardinia)
|
"5582": "2382" # combine link 5583 + 5582 in 5582 (Sardinia)
|
||||||
"13589": "1349" # combine link 13589 + 13588 in 13589 (Sardinia)
|
"13589": "1349" # combine link 13589 + 13588 in 13589 (Sardinia)
|
||||||
"14820": "6354" # NordBalt
|
"14820": "6354" # NordBalt
|
||||||
|
"14810": "6365" # Skagerrak
|
||||||
|
"8708": "6448"
|
||||||
|
"8394": "6695"
|
||||||
|
"14813": "7052"
|
||||||
|
"8009": "5939"
|
||||||
|
"5601": "7052" # Link Sweden - Lübeck
|
||||||
length:
|
length:
|
||||||
index:
|
index:
|
||||||
"5582": 26.39 # new length of combined links (sum)
|
"5582": 26.39 # new length of combined links (sum)
|
||||||
@ -53,6 +61,7 @@ Line:
|
|||||||
bus0:
|
bus0:
|
||||||
index:
|
index:
|
||||||
"14573": "7179" #fix bus-id substation in PT (220/380kV issue)
|
"14573": "7179" #fix bus-id substation in PT (220/380kV issue)
|
||||||
|
"14756": "8577" # Deeside connection
|
||||||
v_nom:
|
v_nom:
|
||||||
index:
|
index:
|
||||||
"14573": 220 # 220/380kV issue of substation in PT
|
"14573": 220 # 220/380kV issue of substation in PT
|
||||||
|
@ -129,6 +129,8 @@ def countries(naturalearth, country_list):
|
|||||||
s = df.set_index("name")["geometry"].map(_simplify_polys)
|
s = df.set_index("name")["geometry"].map(_simplify_polys)
|
||||||
if "RS" in country_list:
|
if "RS" in country_list:
|
||||||
s["RS"] = s["RS"].union(s.pop("KV"))
|
s["RS"] = s["RS"].union(s.pop("KV"))
|
||||||
|
# cleanup shape union
|
||||||
|
s["RS"] = Polygon(s["RS"].exterior.coords)
|
||||||
|
|
||||||
return s
|
return s
|
||||||
|
|
||||||
|
@ -395,7 +395,9 @@ def simplify_links(n, costs, config, output, aggregation_strategies=dict()):
|
|||||||
def remove_stubs(n, costs, config, output, aggregation_strategies=dict()):
|
def remove_stubs(n, costs, config, output, aggregation_strategies=dict()):
|
||||||
logger.info("Removing stubs")
|
logger.info("Removing stubs")
|
||||||
|
|
||||||
busmap = busmap_by_stubs(n) # ['country'])
|
across_borders = config["clustering"]["simplify_network"].get("remove_stubs_across_borders", True)
|
||||||
|
matching_attrs = [] if across_borders else ['country']
|
||||||
|
busmap = busmap_by_stubs(n, matching_attrs)
|
||||||
|
|
||||||
connection_costs_to_bus = _compute_connection_costs_to_bus(n, busmap, costs, config)
|
connection_costs_to_bus = _compute_connection_costs_to_bus(n, busmap, costs, config)
|
||||||
|
|
||||||
@ -530,6 +532,10 @@ if __name__ == "__main__":
|
|||||||
n, technology_costs, snakemake.config, snakemake.output, aggregation_strategies
|
n, technology_costs, snakemake.config, snakemake.output, aggregation_strategies
|
||||||
)
|
)
|
||||||
|
|
||||||
|
busmaps = [trafo_map, simplify_links_map]
|
||||||
|
|
||||||
|
cluster_config = snakemake.config["clustering"]["simplify_network"]
|
||||||
|
if cluster_config.get("remove_stubs", True):
|
||||||
n, stub_map = remove_stubs(
|
n, stub_map = remove_stubs(
|
||||||
n,
|
n,
|
||||||
technology_costs,
|
technology_costs,
|
||||||
@ -537,15 +543,9 @@ if __name__ == "__main__":
|
|||||||
snakemake.output,
|
snakemake.output,
|
||||||
aggregation_strategies=aggregation_strategies,
|
aggregation_strategies=aggregation_strategies,
|
||||||
)
|
)
|
||||||
|
busmaps.append(stub_map)
|
||||||
|
|
||||||
busmaps = [trafo_map, simplify_links_map, stub_map]
|
if cluster_config.get("to_substations", False):
|
||||||
|
|
||||||
cluster_config = snakemake.config.get("clustering", {}).get("simplify_network", {})
|
|
||||||
if (
|
|
||||||
cluster_config.get("clustering", {})
|
|
||||||
.get("simplify_network", {})
|
|
||||||
.get("to_substations", False)
|
|
||||||
):
|
|
||||||
n, substation_map = aggregate_to_substations(n, aggregation_strategies)
|
n, substation_map = aggregate_to_substations(n, aggregation_strategies)
|
||||||
busmaps.append(substation_map)
|
busmaps.append(substation_map)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user