From 31f9864daf45fda94102ec197227b4297981cb3b Mon Sep 17 00:00:00 2001 From: Fabian Neumann Date: Sun, 20 Mar 2022 21:01:07 +0100 Subject: [PATCH] omit NATURA from testing and tutorial due to file size# --- Snakefile | 4 +++- config.tutorial.yaml | 8 ++++---- test/config.test1.yaml | 8 ++++---- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/Snakefile b/Snakefile index 7d2eff1d..50e0d2f8 100644 --- a/Snakefile +++ b/Snakefile @@ -169,7 +169,9 @@ rule build_renewable_profiles: input: base_network="networks/base.nc", corine="data/bundle/corine/g250_clc06_V18_5.tif", - natura="data/bundle/natura/Natura2000_end2015.shp", + natura=lambda w: ("data/bundle/natura/Natura2000_end2015.shp" + if config["renewable"][w.technology]["natura"] + else []), gebco=lambda w: ("data/bundle/GEBCO_2014_2D.nc" if "max_depth" in config["renewable"][w.technology].keys() else []), diff --git a/config.tutorial.yaml b/config.tutorial.yaml index 67176fdf..da3e10cc 100755 --- a/config.tutorial.yaml +++ b/config.tutorial.yaml @@ -77,7 +77,7 @@ renewable: 24, 25, 26, 27, 28, 29, 31, 32] distance: 1000 distance_grid_codes: [1, 2, 3, 4, 5, 6] - natura: true + natura: false potential: simple # or conservative clip_p_max_pu: 1.e-2 offwind-ac: @@ -88,7 +88,7 @@ renewable: capacity_per_sqkm: 3 # correction_factor: 0.93 corine: [44, 255] - natura: true + natura: false max_shore_distance: 30000 potential: simple # or conservative clip_p_max_pu: 1.e-2 @@ -101,7 +101,7 @@ renewable: capacity_per_sqkm: 3 # correction_factor: 0.93 corine: [44, 255] - natura: true + natura: false min_shore_distance: 30000 potential: simple # or conservative clip_p_max_pu: 1.e-2 @@ -123,7 +123,7 @@ renewable: # correction_factor: 0.854337 corine: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 26, 31, 32] - natura: true + natura: false potential: simple # or conservative clip_p_max_pu: 1.e-2 diff --git a/test/config.test1.yaml b/test/config.test1.yaml index d017cafc..7a48ea87 100755 --- a/test/config.test1.yaml +++ b/test/config.test1.yaml @@ -76,7 +76,7 @@ renewable: 24, 25, 26, 27, 28, 29, 31, 32] distance: 1000 distance_grid_codes: [1, 2, 3, 4, 5, 6] - natura: true + natura: false potential: simple # or conservative clip_p_max_pu: 1.e-2 offwind-ac: @@ -87,7 +87,7 @@ renewable: capacity_per_sqkm: 3 # correction_factor: 0.93 corine: [44, 255] - natura: true + natura: false max_shore_distance: 30000 potential: simple # or conservative clip_p_max_pu: 1.e-2 @@ -100,7 +100,7 @@ renewable: capacity_per_sqkm: 3 # correction_factor: 0.93 corine: [44, 255] - natura: true + natura: false min_shore_distance: 30000 potential: simple # or conservative clip_p_max_pu: 1.e-2 @@ -121,7 +121,7 @@ renewable: correction_factor: 0.854337 corine: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 26, 31, 32] - natura: true + natura: false potential: simple # or conservative clip_p_max_pu: 1.e-2