scenarios: add collect function plot_elec_networks
This commit is contained in:
parent
91eff472a7
commit
ebb5da655e
@ -76,6 +76,16 @@ rule solve_sector_networks:
|
|||||||
),
|
),
|
||||||
|
|
||||||
|
|
||||||
|
rule plot_elec_networks:
|
||||||
|
input:
|
||||||
|
expand(
|
||||||
|
RESULTS
|
||||||
|
+ "figures/.statistics_plots_elec_s{simpl}_{clusters}_ec_l{ll}_{opts}",
|
||||||
|
**config["scenario"],
|
||||||
|
run=config["run"]["name"]
|
||||||
|
),
|
||||||
|
|
||||||
|
|
||||||
rule plot_networks:
|
rule plot_networks:
|
||||||
input:
|
input:
|
||||||
expand(
|
expand(
|
||||||
|
@ -61,7 +61,7 @@ if __name__ == "__main__":
|
|||||||
fig, ax = plt.subplots()
|
fig, ax = plt.subplots()
|
||||||
ds = n.statistics.installed_capacity().dropna()
|
ds = n.statistics.installed_capacity().dropna()
|
||||||
ds = ds.drop("Line")
|
ds = ds.drop("Line")
|
||||||
ds = ds.drop(("Generator", "Load"))
|
ds = ds.drop(("Generator", "Load"), errors="ignore")
|
||||||
ds = ds / 1e3
|
ds = ds / 1e3
|
||||||
ds.attrs["unit"] = "GW"
|
ds.attrs["unit"] = "GW"
|
||||||
plot_static_per_carrier(ds, ax)
|
plot_static_per_carrier(ds, ax)
|
||||||
@ -70,7 +70,7 @@ if __name__ == "__main__":
|
|||||||
fig, ax = plt.subplots()
|
fig, ax = plt.subplots()
|
||||||
ds = n.statistics.optimal_capacity()
|
ds = n.statistics.optimal_capacity()
|
||||||
ds = ds.drop("Line")
|
ds = ds.drop("Line")
|
||||||
ds = ds.drop(("Generator", "Load"))
|
ds = ds.drop(("Generator", "Load"), errors="ignore")
|
||||||
ds = ds / 1e3
|
ds = ds / 1e3
|
||||||
ds.attrs["unit"] = "GW"
|
ds.attrs["unit"] = "GW"
|
||||||
plot_static_per_carrier(ds, ax)
|
plot_static_per_carrier(ds, ax)
|
||||||
|
Loading…
Reference in New Issue
Block a user