make cutouts protected
https://snakemake.readthedocs.io/en/stable/snakefiles/rules.html\#protected-and-temporary-files
This commit is contained in:
parent
4b3372b53b
commit
37a063554d
@ -123,7 +123,7 @@ if config["enable"].get("build_cutout", False):
|
|||||||
regions_onshore=RESOURCES + "regions_onshore.geojson",
|
regions_onshore=RESOURCES + "regions_onshore.geojson",
|
||||||
regions_offshore=RESOURCES + "regions_offshore.geojson",
|
regions_offshore=RESOURCES + "regions_offshore.geojson",
|
||||||
output:
|
output:
|
||||||
"cutouts/" + CDIR + "{cutout}.nc",
|
protected("cutouts/" + CDIR + "{cutout}.nc"),
|
||||||
log:
|
log:
|
||||||
"logs/" + CDIR + "build_cutout/{cutout}.log",
|
"logs/" + CDIR + "build_cutout/{cutout}.log",
|
||||||
benchmark:
|
benchmark:
|
||||||
|
@ -35,11 +35,10 @@ if config["enable"].get("retrieve_cutout", True):
|
|||||||
input:
|
input:
|
||||||
HTTP.remote(
|
HTTP.remote(
|
||||||
"zenodo.org/record/6382570/files/{cutout}.nc",
|
"zenodo.org/record/6382570/files/{cutout}.nc",
|
||||||
keep_local=True,
|
|
||||||
static=True,
|
static=True,
|
||||||
),
|
),
|
||||||
output:
|
output:
|
||||||
"cutouts/" + CDIR + "{cutout}.nc",
|
protected("cutouts/" + CDIR + "{cutout}.nc"),
|
||||||
log:
|
log:
|
||||||
"logs/" + CDIR + "retrieve_cutout_{cutout}.log",
|
"logs/" + CDIR + "retrieve_cutout_{cutout}.log",
|
||||||
resources:
|
resources:
|
||||||
|
Loading…
Reference in New Issue
Block a user