diff --git a/config.default.yaml b/config.default.yaml index 924d5f85..b287b87b 100755 --- a/config.default.yaml +++ b/config.default.yaml @@ -122,6 +122,7 @@ renewable: distance: 1000 distance_grid_codes: [1, 2, 3, 4, 5, 6] natura: true + excluder_resolution: 100 potential: simple # or conservative clip_p_max_pu: 1.e-2 offwind-ac: @@ -139,6 +140,7 @@ renewable: ship_threshold: 400 max_depth: 50 max_shore_distance: 30000 + excluder_resolution: 200 potential: simple # or conservative clip_p_max_pu: 1.e-2 offwind-dc: @@ -157,6 +159,7 @@ renewable: ship_threshold: 400 max_depth: 50 min_shore_distance: 30000 + excluder_resolution: 200 potential: simple # or conservative clip_p_max_pu: 1.e-2 solar: @@ -179,6 +182,7 @@ renewable: 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 + excluder_resolution: 100 potential: simple # or conservative clip_p_max_pu: 1.e-2 hydro: diff --git a/config.tutorial.yaml b/config.tutorial.yaml index 8f7e227a..5f81dbae 100755 --- a/config.tutorial.yaml +++ b/config.tutorial.yaml @@ -78,6 +78,7 @@ renewable: distance: 1000 distance_grid_codes: [1, 2, 3, 4, 5, 6] natura: true + excluder_resolution: 200 potential: simple # or conservative clip_p_max_pu: 1.e-2 offwind-ac: @@ -91,6 +92,7 @@ renewable: natura: true ship_threshold: 400 max_shore_distance: 30000 + excluder_resolution: 200 potential: simple # or conservative clip_p_max_pu: 1.e-2 offwind-dc: @@ -105,6 +107,7 @@ renewable: natura: true ship_threshold: 400 min_shore_distance: 30000 + excluder_resolution: 200 potential: simple # or conservative clip_p_max_pu: 1.e-2 solar: @@ -126,6 +129,7 @@ renewable: 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 + excluder_resolution: 200 potential: simple # or conservative clip_p_max_pu: 1.e-2 diff --git a/scripts/build_renewable_profiles.py b/scripts/build_renewable_profiles.py index bcc1549b..05866551 100644 --- a/scripts/build_renewable_profiles.py +++ b/scripts/build_renewable_profiles.py @@ -228,7 +228,8 @@ if __name__ == '__main__': regions = regions.set_index('name').rename_axis('bus') buses = regions.index - excluder = atlite.ExclusionContainer(crs=3035, res=100) + res = config.get("excluder_resolution", 100) + excluder = atlite.ExclusionContainer(crs=3035, res=res) if config['natura']: excluder.add_raster(snakemake.input.natura, nodata=0, allow_no_overlap=True) diff --git a/test/config.test1.yaml b/test/config.test1.yaml index 71cc6903..4ed1e904 100755 --- a/test/config.test1.yaml +++ b/test/config.test1.yaml @@ -77,6 +77,7 @@ renewable: distance: 1000 distance_grid_codes: [1, 2, 3, 4, 5, 6] natura: true + excluder_resolution: 200 potential: simple # or conservative clip_p_max_pu: 1.e-2 offwind-ac: @@ -90,6 +91,7 @@ renewable: natura: true ship_threshold: 400 max_shore_distance: 30000 + excluder_resolution: 200 potential: simple # or conservative clip_p_max_pu: 1.e-2 offwind-dc: @@ -104,6 +106,7 @@ renewable: natura: true ship_threshold: 400 min_shore_distance: 30000 + excluder_resolution: 200 potential: simple # or conservative clip_p_max_pu: 1.e-2 solar: @@ -124,6 +127,7 @@ renewable: 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 + excluder_resolution: 200 potential: simple # or conservative clip_p_max_pu: 1.e-2