File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,20 +4,9 @@ resources:
44 # #
55 # Links for automatically downloaded files
66 # #
7- # Slope
8- # 60m version:
9- # slope: "https://s3.opengeohub.org/global/dtm/v3/slope.in.degree_edtm_m_60m_s_20000101_20221231_go_epsg.4326_v20241230.tif"
10- # 120m version:
11- # slope: "https://zenodo.org/records/14920379/files/slope.in.degree_edtm_m_120m_s_20000101_20221231_go_epsg.4326_v20241230.tif"
12- # 240m version:
137 slope : " https://zenodo.org/records/14920379/files/slope.in.degree_edtm_m_240m_s_20000101_20221231_go_epsg.4326_v20241230.tif"
148 bathymetry : " https://zenodo.org/records/15741950/files/gebco_2024_sub_ice_cog.tif"
15- # Land cover
169 globcover : " https://due.esrin.esa.int/files/Globcover2009_V2.3_Global_.zip"
1710 globcover_landcover_tif : " GLOBCOVER_L4_200901_200912_V2.3.tif"
18- # Built-up areas
1911 ghsl : " https://jeodpp.jrc.ec.europa.eu/ftp/jrc-opendata/GHSL/GHS_BUILT_S_GLOBE_R2023A/GHS_BUILT_S_E2025_GLOBE_R2023A_4326_30ss/V1-0/GHS_BUILT_S_E2025_GLOBE_R2023A_4326_30ss_V1_0.zip"
2012 ghsl_tif : " GHS_BUILT_S_E2025_GLOBE_R2023A_4326_30ss_V1_0.tif"
21- # Protected areas
22- wdpa : " https://d1gam3xoknrgr2.cloudfront.net/current/WDPA_Jun2025_Public.zip"
23- wdpa_gdb : " WDPA_Jun2025_Public.gdb"
Original file line number Diff line number Diff line change @@ -24,37 +24,6 @@ rule download_cutout_bathymetry:
2424 wrapper :
2525 "v7.2.0/geo/rasterio/clip-geotiff"
2626
27- rule download_wdpa :
28- message :
29- "Download the WDPA (World Database on Protected Areas) data (~1.5 GB)."
30- params :
31- url = internal ["resources" ]["automatic" ]["wdpa" ],
32- output :
33- "resources/automatic/global/wdpa.zip" ,
34- conda :
35- "../envs/shell.yaml"
36- shell :
37- 'curl -sSLo {output} "{params.url}"'
38-
39- rule unzip_wdpa :
40- message :
41- "Unzip the WDPA (World Database on Protected Areas) data (~2.0 GB)."
42- params :
43- target = internal ["resources" ]["automatic" ]["wdpa_gdb" ],
44- input :
45- rules .download_wdpa .output ,
46- output :
47- directory ("resources/automatic/global/wdpa.gdb" ),
48- conda :
49- "../envs/shell.yaml"
50- shell :
51- """
52- temp_dir=$(mktemp -d)
53- unzip {input} -d $temp_dir
54- mv $temp_dir/{params.target} {output}
55- rm -R $temp_dir
56- """
57-
5827rule download_globcover :
5928 message :
6029 "Download the GlobCover land cover data (~380 MB)."
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ rule prepare_resampled_inputs:
88 slope_path = rules .download_cutout_slope .output ,
99 settlement_path = rules .cutout_settlement .output ,
1010 bathymetry_path = rules .download_cutout_bathymetry .output ,
11- protected_area_path = rules . unzip_wdpa . output ,
11+ protected_area_path = "resources/user/wdpa.gdb" ,
1212 output :
1313 resampled_input = "resources/automatic/{shape}.resampled_inputs.nc" ,
1414 plot = report (
You can’t perform that action at this time.
0 commit comments