Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make resolution of exclusion calculation a configurable option #400

Merged
merged 1 commit into from
Aug 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions config.default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,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:
Expand All @@ -136,6 +137,7 @@ renewable:
natura: true
max_depth: 50
max_shore_distance: 30000
excluder_resolution: 200
potential: simple # or conservative
clip_p_max_pu: 1.e-2
offwind-dc:
Expand All @@ -153,6 +155,7 @@ renewable:
natura: true
max_depth: 50
min_shore_distance: 30000
excluder_resolution: 200
potential: simple # or conservative
clip_p_max_pu: 1.e-2
solar:
Expand All @@ -175,6 +178,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:
Expand Down
4 changes: 4 additions & 0 deletions config.tutorial.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,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:
Expand All @@ -88,6 +89,7 @@ renewable:
corine: [44, 255]
natura: true
max_shore_distance: 30000
excluder_resolution: 200
potential: simple # or conservative
clip_p_max_pu: 1.e-2
offwind-dc:
Expand All @@ -101,6 +103,7 @@ renewable:
corine: [44, 255]
natura: true
min_shore_distance: 30000
excluder_resolution: 200
potential: simple # or conservative
clip_p_max_pu: 1.e-2
solar:
Expand All @@ -122,6 +125,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

Expand Down
3 changes: 2 additions & 1 deletion scripts/build_renewable_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@
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)
Expand Down
4 changes: 4 additions & 0 deletions test/config.test1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,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:
Expand All @@ -87,6 +88,7 @@ renewable:
corine: [44, 255]
natura: true
max_shore_distance: 30000
excluder_resolution: 200
potential: simple # or conservative
clip_p_max_pu: 1.e-2
offwind-dc:
Expand All @@ -100,6 +102,7 @@ renewable:
corine: [44, 255]
natura: true
min_shore_distance: 30000
excluder_resolution: 200
potential: simple # or conservative
clip_p_max_pu: 1.e-2
solar:
Expand All @@ -120,6 +123,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

Expand Down