Skip to content

Commit

Permalink
Mock in download rule for NbS suitability layers
Browse files Browse the repository at this point in the history
TODO: update Zenodo ID when available
  • Loading branch information
tomalrussell committed Nov 11, 2024
1 parent 210454e commit 22df90b
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions workflow/nature-ecosystems/nbs-suitability.smk
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
"""Download Harwood et al. (2024) NbS opportunities
"""

rule download_nbs_suitability:
"""
Fetch our preprocessed data from zenodo.
"""
output:
treelim_current="{OUTPUT_DIR}/input/nbs-suitability/raw/treelim_current.tif",
treelim_2050s="{OUTPUT_DIR}/input/nbs-suitability/raw/treelim_2050s.tif",
ls_nbs_current="{OUTPUT_DIR}/input/nbs-suitability/raw/ls_nbs_current.tif",
ls_nbs_2050="{OUTPUT_DIR}/input/nbs-suitability/raw/ls_nbs_2050.tif",
ls_range_current="{OUTPUT_DIR}/input/nbs-suitability/raw/ls_range_current.tif",
ls_range_2050="{OUTPUT_DIR}/input/nbs-suitability/raw/ls_range_2050.tif",
shell:
"""
pushd $(dirname {output.zip})
zenodo_get -w links.txt --record=XXXXXX # TODO
wget -nc -i links.txt
md5sum -c md5sums.txt
popd
"""

rule extract_nbs_suitability:
output:

0 comments on commit 22df90b

Please sign in to comment.