Skip to content

Commit

Permalink
use lower resolution EEZ shapes to reduce excessive RAM use (#1210)
Browse files Browse the repository at this point in the history
  • Loading branch information
fneum authored Aug 13, 2024
1 parent 6ca8e80 commit f263862
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rules/build_electricity.smk
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ rule build_shapes:
countries=config_provider("countries"),
input:
naturalearth=ancient("data/naturalearth/ne_10m_admin_0_countries_deu.shp"),
eez=ancient("data/eez/World_EEZ_v12_20231025_gpkg/eez_v12.gpkg"),
eez=ancient("data/eez/World_EEZ_v12_20231025_LR/eez_v12_lowres.gpkg"),
nuts3=ancient("data/bundle/NUTS_2013_60M_SH/data/NUTS_RG_60M_2013.shp"),
nuts3pop=ancient("data/bundle/nama_10r_3popgdp.tsv.gz"),
nuts3gdp=ancient("data/bundle/nama_10r_3gdp.tsv.gz"),
Expand Down
6 changes: 3 additions & 3 deletions rules/retrieve.smk
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ if config["enable"]["retrieve"]:

rule retrieve_eez:
params:
zip="data/eez/World_EEZ_v12_20231025_gpkg.zip",
zip="data/eez/World_EEZ_v12_20231025_LR.zip",
output:
gpkg="data/eez/World_EEZ_v12_20231025_gpkg/eez_v12.gpkg",
gpkg="data/eez/World_EEZ_v12_20231025_LR/eez_v12_lowres.gpkg",
run:
import os
import requests
Expand All @@ -239,7 +239,7 @@ if config["enable"]["retrieve"]:

response = requests.post(
"https://www.marineregions.org/download_file.php",
params={"name": "World_EEZ_v12_20231025_gpkg.zip"},
params={"name": "World_EEZ_v12_20231025_LR.zip"},
data={
"name": name,
"organisation": org,
Expand Down

0 comments on commit f263862

Please sign in to comment.