only use ancient for inputs not outputs
This commit is contained in:
parent
8b303d93e9
commit
3d5d56acf3
@ -33,8 +33,8 @@ if config["enable"]["retrieve"] and config["enable"].get("retrieve_databundle",
|
|||||||
|
|
||||||
rule retrieve_databundle:
|
rule retrieve_databundle:
|
||||||
output:
|
output:
|
||||||
ancient(expand("data/bundle/{file}", file=datafiles)),
|
expand("data/bundle/{file}", file=datafiles),
|
||||||
ancient(directory("data/bundle/jrc-idees-2015")),
|
directory("data/bundle/jrc-idees-2015"),
|
||||||
log:
|
log:
|
||||||
"logs/retrieve_databundle.log",
|
"logs/retrieve_databundle.log",
|
||||||
resources:
|
resources:
|
||||||
@ -158,7 +158,7 @@ if config["enable"]["retrieve"]:
|
|||||||
keep_local=True,
|
keep_local=True,
|
||||||
),
|
),
|
||||||
output:
|
output:
|
||||||
ancient("data/shipdensity_global.zip"),
|
"data/shipdensity_global.zip",
|
||||||
log:
|
log:
|
||||||
"logs/retrieve_ship_raster.log",
|
"logs/retrieve_ship_raster.log",
|
||||||
resources:
|
resources:
|
||||||
@ -240,7 +240,7 @@ if config["enable"]["retrieve"]:
|
|||||||
zip="data/WDPA_shp.zip",
|
zip="data/WDPA_shp.zip",
|
||||||
folder=directory("data/WDPA"),
|
folder=directory("data/WDPA"),
|
||||||
output:
|
output:
|
||||||
gpkg=ancient("data/WDPA.gpkg"),
|
gpkg="data/WDPA.gpkg",
|
||||||
run:
|
run:
|
||||||
shell("cp {input} {params.zip}")
|
shell("cp {input} {params.zip}")
|
||||||
shell("unzip -o {params.zip} -d {params.folder}")
|
shell("unzip -o {params.zip} -d {params.folder}")
|
||||||
@ -265,7 +265,7 @@ if config["enable"]["retrieve"]:
|
|||||||
zip="data/WDPA_WDOECM_marine.zip",
|
zip="data/WDPA_WDOECM_marine.zip",
|
||||||
folder=directory("data/WDPA_WDOECM_marine"),
|
folder=directory("data/WDPA_WDOECM_marine"),
|
||||||
output:
|
output:
|
||||||
gpkg=ancient("data/WDPA_WDOECM_marine.gpkg"),
|
gpkg="data/WDPA_WDOECM_marine.gpkg",
|
||||||
run:
|
run:
|
||||||
shell("cp {input} {params.zip}")
|
shell("cp {input} {params.zip}")
|
||||||
shell("unzip -o {params.zip} -d {params.folder}")
|
shell("unzip -o {params.zip} -d {params.folder}")
|
||||||
|
Loading…
Reference in New Issue
Block a user