2024-02-19 15:21:48 +00:00
|
|
|
# SPDX-FileCopyrightText: : 2023-2024 The PyPSA-Eur Authors
|
2023-03-08 16:29:01 +00:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
2023-03-08 16:46:14 +00:00
|
|
|
|
|
|
|
localrules:
|
|
|
|
all,
|
2023-03-15 16:00:06 +00:00
|
|
|
cluster_networks,
|
|
|
|
extra_components_networks,
|
|
|
|
prepare_elec_networks,
|
2023-03-08 16:46:14 +00:00
|
|
|
prepare_sector_networks,
|
2023-03-15 16:00:06 +00:00
|
|
|
solve_elec_networks,
|
|
|
|
solve_sector_networks,
|
2023-03-08 16:29:01 +00:00
|
|
|
|
2023-03-08 16:44:25 +00:00
|
|
|
|
2023-03-15 16:00:06 +00:00
|
|
|
rule cluster_networks:
|
2023-03-08 16:29:01 +00:00
|
|
|
input:
|
2023-04-29 10:41:37 +00:00
|
|
|
expand(
|
2024-03-04 16:48:56 +00:00
|
|
|
resources("networks/elec_s{simpl}_{clusters}.nc"),
|
2023-08-15 13:02:41 +00:00
|
|
|
**config["scenario"],
|
2024-02-10 16:22:36 +00:00
|
|
|
run=config["run"]["name"],
|
2023-04-29 10:41:37 +00:00
|
|
|
),
|
2023-03-08 16:29:01 +00:00
|
|
|
|
|
|
|
|
2023-03-15 16:00:06 +00:00
|
|
|
rule extra_components_networks:
|
2023-03-08 16:29:01 +00:00
|
|
|
input:
|
|
|
|
expand(
|
2024-03-04 16:48:56 +00:00
|
|
|
resources("networks/elec_s{simpl}_{clusters}_ec.nc"),
|
2023-08-15 13:02:41 +00:00
|
|
|
**config["scenario"],
|
2024-02-10 16:22:36 +00:00
|
|
|
run=config["run"]["name"],
|
2023-03-08 16:29:01 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
|
2023-03-15 16:00:06 +00:00
|
|
|
rule prepare_elec_networks:
|
2023-03-08 16:29:01 +00:00
|
|
|
input:
|
|
|
|
expand(
|
2024-03-01 12:24:02 +00:00
|
|
|
resources(
|
2024-03-04 16:48:56 +00:00
|
|
|
"networks/elec_s{simpl}_{clusters}_ec_l{ll}_{opts}.nc"
|
2024-03-01 12:24:02 +00:00
|
|
|
),
|
2023-08-15 13:02:41 +00:00
|
|
|
**config["scenario"],
|
2024-02-10 16:22:36 +00:00
|
|
|
run=config["run"]["name"],
|
2023-03-08 16:29:01 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
rule prepare_sector_networks:
|
|
|
|
input:
|
|
|
|
expand(
|
|
|
|
RESULTS
|
2024-03-04 16:48:56 +00:00
|
|
|
+ "prenetworks/elec_s{simpl}_{clusters}_l{ll}_{opts}_{sector_opts}_{planning_horizons}.nc",
|
2023-08-15 13:02:41 +00:00
|
|
|
**config["scenario"],
|
2024-02-10 16:22:36 +00:00
|
|
|
run=config["run"]["name"],
|
2023-03-08 16:29:01 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
|
2023-03-15 16:00:06 +00:00
|
|
|
rule solve_elec_networks:
|
2023-03-08 16:29:01 +00:00
|
|
|
input:
|
|
|
|
expand(
|
2024-03-01 12:24:02 +00:00
|
|
|
RESULTS
|
2024-03-04 16:48:56 +00:00
|
|
|
+ "networks/elec_s{simpl}_{clusters}_ec_l{ll}_{opts}.nc",
|
2023-08-15 13:02:41 +00:00
|
|
|
**config["scenario"],
|
2024-02-10 16:22:36 +00:00
|
|
|
run=config["run"]["name"],
|
2023-03-08 16:29:01 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
|
2023-03-15 16:00:06 +00:00
|
|
|
rule solve_sector_networks:
|
2023-03-08 16:29:01 +00:00
|
|
|
input:
|
|
|
|
expand(
|
|
|
|
RESULTS
|
2024-03-04 16:48:56 +00:00
|
|
|
+ "postnetworks/elec_s{simpl}_{clusters}_l{ll}_{opts}_{sector_opts}_{planning_horizons}.nc",
|
2023-08-15 13:02:41 +00:00
|
|
|
**config["scenario"],
|
2024-02-10 16:22:36 +00:00
|
|
|
run=config["run"]["name"],
|
2023-03-08 16:29:01 +00:00
|
|
|
),
|
|
|
|
|
|
|
|
|
2023-04-03 15:39:47 +00:00
|
|
|
rule solve_sector_networks_perfect:
|
2023-03-08 16:29:01 +00:00
|
|
|
input:
|
|
|
|
expand(
|
|
|
|
RESULTS
|
2024-03-04 16:48:56 +00:00
|
|
|
+ "maps/elec_s{simpl}_{clusters}_l{ll}_{opts}_{sector_opts}-costs-all_{planning_horizons}.pdf",
|
2023-08-15 13:02:41 +00:00
|
|
|
**config["scenario"],
|
2024-02-10 16:22:36 +00:00
|
|
|
run=config["run"]["name"],
|
2023-03-08 16:46:14 +00:00
|
|
|
),
|
2023-07-03 15:13:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
rule validate_elec_networks:
|
|
|
|
input:
|
|
|
|
expand(
|
|
|
|
RESULTS
|
2024-03-04 16:48:56 +00:00
|
|
|
+ "figures/.statistics_plots_elec_s{simpl}_{clusters}_ec_l{ll}_{opts}",
|
2023-08-15 13:02:41 +00:00
|
|
|
**config["scenario"],
|
2024-02-10 16:22:36 +00:00
|
|
|
run=config["run"]["name"],
|
2023-07-05 09:07:36 +00:00
|
|
|
),
|
|
|
|
expand(
|
|
|
|
RESULTS
|
2024-03-04 16:48:56 +00:00
|
|
|
+ "figures/.validation_{kind}_plots_elec_s{simpl}_{clusters}_ec_l{ll}_{opts}",
|
2023-07-05 13:50:57 +00:00
|
|
|
**config["scenario"],
|
2023-08-15 13:02:41 +00:00
|
|
|
run=config["run"]["name"],
|
2024-02-10 16:22:36 +00:00
|
|
|
kind=["production", "prices", "cross_border"],
|
2023-07-03 15:13:16 +00:00
|
|
|
),
|