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

use lower resolution EEZ shapes to reduce excessive RAM use #1210

Merged
merged 2 commits into from
Aug 13, 2024
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
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
Loading