11# Emulate a user configuring the module.
22configfile : workflow .source_path ("./test_config.yaml" )
33
4+
45rule download_netherlands_shapes :
5- message : "Download and unzip the Netherlands shapes."
6+ message :
7+ "Download and unzip the Netherlands shapes."
68 output :
79 "results/module_area_potentials/resources/user/shapes/NLD.parquet" ,
810 shell :
911 """
1012 curl -sSLo {output} https://surfdrive.surf.nl/files/index.php/s/ey3RmiCbajp69oQ/download
1113 """
1214
15+
1316rule download_netherlands_protected_areas :
14- message : "Download and unzip a dummy drop-in dataset for Netherlands protected areas (not based on WDPA)."
17+ message :
18+ "Download and unzip a dummy drop-in dataset for Netherlands protected areas (not based on WDPA)."
1519 output :
1620 zipfile = "results/module_area_potentials/resources/user/wdpa.gdb.zip" ,
1721 wdpa = directory ("results/module_area_potentials/resources/user/wdpa.gdb" ),
@@ -21,20 +25,27 @@ rule download_netherlands_protected_areas:
2125 unzip {output.zipfile} -d results/module_area_potentials/resources/user/
2226 """
2327
28+
2429# Import the module and configure it.
2530# `snakefile:` specifies the module. It can use file paths and special github(...) / gitlab(...) markers
2631# `prefix:` re-routes all input/output paths of the module, helping to avoid file conflicts.
2732module module_area_potentials :
28- snakefile : "../../workflow/Snakefile"
29- config : config ["module_area_potentials" ]
30- prefix : "results/module_area_potentials/"
33+ snakefile :
34+ "../../workflow/Snakefile"
35+ config :
36+ config ["module_area_potentials" ]
37+ prefix :
38+ "results/module_area_potentials/"
39+
3140
3241# rename all module rules with a prefix, to avoid naming conflicts.
3342use rule * from module_area_potentials as module_area_potentials_ *
3443
44+
3545# Request something from the module
3646rule all :
37- message : "Run the module for the Netherlands shapes."
47+ message :
48+ "Run the module for the Netherlands shapes."
3849 default_target : True
3950 input :
4051 "results/module_area_potentials/resources/user/shapes/NLD.parquet" ,
0 commit comments