Allow absence of offshore wind from sector-coupled networks
This commit is contained in:
parent
9c08af9989
commit
ccb43a5612
@ -808,6 +808,11 @@ rule prepare_sector_network:
|
|||||||
**rules.cluster_gas_network.output,
|
**rules.cluster_gas_network.output,
|
||||||
**rules.build_gas_input_locations.output,
|
**rules.build_gas_input_locations.output,
|
||||||
**build_sequestration_potentials_output,
|
**build_sequestration_potentials_output,
|
||||||
|
**{
|
||||||
|
f"profile_offwind_{tech}": RESOURCES + f"profile_offwind-{tech}.nc"
|
||||||
|
for tech in ["ac", "dc"]
|
||||||
|
if (f"offwind-{tech}" in config["electricity"]["renewable_carriers"])
|
||||||
|
},
|
||||||
network=RESOURCES + "networks/elec_s{simpl}_{clusters}_ec_l{ll}_{opts}.nc",
|
network=RESOURCES + "networks/elec_s{simpl}_{clusters}_ec_l{ll}_{opts}.nc",
|
||||||
energy_totals_name=RESOURCES + "energy_totals.csv",
|
energy_totals_name=RESOURCES + "energy_totals.csv",
|
||||||
eurostat=input_eurostat,
|
eurostat=input_eurostat,
|
||||||
@ -833,8 +838,6 @@ rule prepare_sector_network:
|
|||||||
if config["foresight"] == "overnight"
|
if config["foresight"] == "overnight"
|
||||||
else "data/costs_{planning_horizons}.csv"
|
else "data/costs_{planning_horizons}.csv"
|
||||||
),
|
),
|
||||||
profile_offwind_ac=RESOURCES + "profile_offwind-ac.nc",
|
|
||||||
profile_offwind_dc=RESOURCES + "profile_offwind-dc.nc",
|
|
||||||
h2_cavern=RESOURCES + "salt_cavern_potentials_s{simpl}_{clusters}.csv",
|
h2_cavern=RESOURCES + "salt_cavern_potentials_s{simpl}_{clusters}.csv",
|
||||||
busmap_s=RESOURCES + "busmap_elec_s{simpl}.csv",
|
busmap_s=RESOURCES + "busmap_elec_s{simpl}.csv",
|
||||||
busmap=RESOURCES + "busmap_elec_s{simpl}_{clusters}.csv",
|
busmap=RESOURCES + "busmap_elec_s{simpl}_{clusters}.csv",
|
||||||
|
@ -423,6 +423,8 @@ def update_wind_solar_costs(n, costs):
|
|||||||
# code adapted from pypsa-eur/scripts/add_electricity.py
|
# code adapted from pypsa-eur/scripts/add_electricity.py
|
||||||
for connection in ["dc", "ac"]:
|
for connection in ["dc", "ac"]:
|
||||||
tech = "offwind-" + connection
|
tech = "offwind-" + connection
|
||||||
|
if tech not in n.generators.carrier.values:
|
||||||
|
continue
|
||||||
profile = snakemake.input["profile_offwind_" + connection]
|
profile = snakemake.input["profile_offwind_" + connection]
|
||||||
with xr.open_dataset(profile) as ds:
|
with xr.open_dataset(profile) as ds:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user