013b705ee4
* Cluster first: build renewable profiles and add all assets after clustering * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * correction: pass landfall_lengths through functions * assign landfall_lenghts correctly * remove parameter add_land_use_constraint * fix network_dict * calculate distance to shoreline, remove underwater_fraction * adjust simplification parameter to exclude Crete from offshore wind connections * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * remove unused geth2015 hydro capacities * removing remaining traces of {simpl} wildcard * add release notes and update workflow graphics * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: lisazeyen <lisa.zeyen@web.de>
118 lines
3.7 KiB
Plaintext
118 lines
3.7 KiB
Plaintext
# SPDX-FileCopyrightText: : 2023-2024 The PyPSA-Eur Authors
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
PRODUCTION_PLOTS = [
|
|
"production_bar",
|
|
"production_deviation_bar",
|
|
"seasonal_operation_area",
|
|
]
|
|
CROSS_BORDER_PLOTS = ["trade_time_series", "cross_border_bar"]
|
|
PRICES_PLOTS = ["price_bar", "price_line"]
|
|
|
|
|
|
rule build_electricity_production:
|
|
"""
|
|
This rule builds the electricity production for each country and technology from ENTSO-E data.
|
|
The data is used for validation of the optimization results.
|
|
"""
|
|
params:
|
|
snapshots=config_provider("snapshots"),
|
|
countries=config_provider("countries"),
|
|
output:
|
|
resources("historical_electricity_production.csv"),
|
|
log:
|
|
logs("build_electricity_production.log"),
|
|
resources:
|
|
mem_mb=5000,
|
|
script:
|
|
"../scripts/build_electricity_production.py"
|
|
|
|
|
|
rule build_cross_border_flows:
|
|
"""
|
|
This rule builds the cross-border flows from ENTSO-E data.
|
|
The data is used for validation of the optimization results.
|
|
"""
|
|
params:
|
|
snapshots=config_provider("snapshots"),
|
|
countries=config_provider("countries"),
|
|
input:
|
|
network=resources("networks/base.nc"),
|
|
output:
|
|
resources("historical_cross_border_flows.csv"),
|
|
log:
|
|
logs("build_cross_border_flows.log"),
|
|
resources:
|
|
mem_mb=5000,
|
|
script:
|
|
"../scripts/build_cross_border_flows.py"
|
|
|
|
|
|
rule build_electricity_prices:
|
|
"""
|
|
This rule builds the electricity prices from ENTSO-E data.
|
|
The data is used for validation of the optimization results.
|
|
"""
|
|
params:
|
|
snapshots=config_provider("snapshots"),
|
|
countries=config_provider("countries"),
|
|
output:
|
|
resources("historical_electricity_prices.csv"),
|
|
log:
|
|
logs("build_electricity_prices.log"),
|
|
resources:
|
|
mem_mb=5000,
|
|
script:
|
|
"../scripts/build_electricity_prices.py"
|
|
|
|
|
|
rule plot_validation_electricity_production:
|
|
input:
|
|
network=RESULTS + "networks/base_s_{clusters}_elec_l{ll}_{opts}.nc",
|
|
electricity_production=resources("historical_electricity_production.csv"),
|
|
output:
|
|
**{
|
|
plot: RESULTS
|
|
+ f"figures/validation_{plot}_base_s_{{clusters}}_elec_l{{ll}}_{{opts}}.pdf"
|
|
for plot in PRODUCTION_PLOTS
|
|
},
|
|
plots_touch=RESULTS
|
|
+ "figures/.validation_production_plots_base_s_{clusters}_elec_l{ll}_{opts}",
|
|
script:
|
|
"../scripts/plot_validation_electricity_production.py"
|
|
|
|
|
|
rule plot_validation_cross_border_flows:
|
|
params:
|
|
countries=config_provider("countries"),
|
|
input:
|
|
network=RESULTS + "networks/base_s_{clusters}_elec_l{ll}_{opts}.nc",
|
|
cross_border_flows=resources("historical_cross_border_flows.csv"),
|
|
output:
|
|
**{
|
|
plot: RESULTS
|
|
+ f"figures/validation_{plot}_base_s_{{clusters}}_elec_l{{ll}}_{{opts}}.pdf"
|
|
for plot in CROSS_BORDER_PLOTS
|
|
},
|
|
plots_touch=RESULTS
|
|
+ "figures/.validation_cross_border_plots_base_s_{clusters}_elec_l{ll}_{opts}",
|
|
script:
|
|
"../scripts/plot_validation_cross_border_flows.py"
|
|
|
|
|
|
rule plot_validation_electricity_prices:
|
|
input:
|
|
network=RESULTS + "networks/base_s_{clusters}_elec_l{ll}_{opts}.nc",
|
|
electricity_prices=resources("historical_electricity_prices.csv"),
|
|
output:
|
|
**{
|
|
plot: RESULTS
|
|
+ f"figures/validation_{plot}_base_s_{{clusters}}_elec_l{{ll}}_{{opts}}.pdf"
|
|
for plot in PRICES_PLOTS
|
|
},
|
|
plots_touch=RESULTS
|
|
+ "figures/.validation_prices_plots_base_s_{clusters}_elec_l{ll}_{opts}",
|
|
script:
|
|
"../scripts/plot_validation_electricity_prices.py"
|