From be876761f2f7e4727da6e2cf83e6b1b511738774 Mon Sep 17 00:00:00 2001 From: Parisra <102019906+Parisra@users.noreply.github.com> Date: Thu, 25 Apr 2024 11:37:53 +0200 Subject: [PATCH] Add remove option for solar-hsat Add function to remove solar-hsat if the config option is 'False' --- scripts/prepare_sector_network.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/prepare_sector_network.py b/scripts/prepare_sector_network.py index 589c28d4..20aa8959 100755 --- a/scripts/prepare_sector_network.py +++ b/scripts/prepare_sector_network.py @@ -3319,7 +3319,13 @@ def remove_h2_network(n): if "EU H2 Store" in n.stores.index: n.stores.drop("EU H2 Store", inplace=True) +def remove_solar_tracking(n): + for tech in ['solar-hsat']: + print('removing '+tech) + n.mremove("Generator" , n.generators.index[n.generators.carrier==tech]) + + def limit_individual_line_extension(n, maxext): logger.info(f"Limiting new HVAC and HVDC extensions to {maxext} MW") n.lines["s_nom_max"] = n.lines["s_nom"] + maxext @@ -3696,6 +3702,9 @@ if __name__ == "__main__": if options["electricity_distribution_grid"]: insert_electricity_distribution_grid(n, costs) + if not options["solar_utility_singla_axis_tracking"]: + remove_solar_tracking(n) + maybe_adjust_costs_and_potentials(n, snakemake.params["adjustments"]) if options["gas_distribution_grid"]: