fix Snakefile
This commit is contained in:
parent
e5b316eef4
commit
c4d194e32f
34
Snakefile
34
Snakefile
@ -165,6 +165,23 @@ if config['enable'].get('retrieve_cutout', True):
|
|||||||
run: move(input[0], output[0])
|
run: move(input[0], output[0])
|
||||||
|
|
||||||
|
|
||||||
|
if config['enable'].get('build_natura_raster', False):
|
||||||
|
rule build_natura_raster:
|
||||||
|
input:
|
||||||
|
natura="data/bundle/natura/Natura2000_end2015.shp",
|
||||||
|
cutouts=expand("cutouts/{cutouts}.nc", **config['atlite'])
|
||||||
|
output: "resources/natura.tiff"
|
||||||
|
log: "logs/build_natura_raster.log"
|
||||||
|
script: "scripts/build_natura_raster.py"
|
||||||
|
|
||||||
|
|
||||||
|
if config['enable'].get('retrieve_natura_raster', True):
|
||||||
|
rule retrieve_natura_raster:
|
||||||
|
input: HTTP.remote("zenodo.org/record/4706686/files/natura.tiff", keep_local=True, static=True)
|
||||||
|
output: "resources/natura.tiff"
|
||||||
|
run: move(input[0], output[0])
|
||||||
|
|
||||||
|
|
||||||
rule build_renewable_profiles:
|
rule build_renewable_profiles:
|
||||||
input:
|
input:
|
||||||
base_network="networks/base.nc",
|
base_network="networks/base.nc",
|
||||||
@ -187,23 +204,6 @@ rule build_renewable_profiles:
|
|||||||
script: "scripts/build_renewable_profiles.py"
|
script: "scripts/build_renewable_profiles.py"
|
||||||
|
|
||||||
|
|
||||||
if config['enable'].get('build_natura_raster', False):
|
|
||||||
rule build_natura_raster:
|
|
||||||
input:
|
|
||||||
natura="data/bundle/natura/Natura2000_end2015.shp",
|
|
||||||
cutouts=expand("cutouts/{cutouts}.nc", **config['atlite'])
|
|
||||||
output: "resources/natura.tiff"
|
|
||||||
log: "logs/build_natura_raster.log"
|
|
||||||
script: "scripts/build_natura_raster.py"
|
|
||||||
|
|
||||||
|
|
||||||
if config['enable'].get('retrieve_natura_raster', True):
|
|
||||||
rule retrieve_natura_raster:
|
|
||||||
input: HTTP.remote("zenodo.org/record/4706686/files/natura.tiff", keep_local=True, static=True)
|
|
||||||
output: "resources/natura.tiff"
|
|
||||||
run: move(input[0], output[0])
|
|
||||||
|
|
||||||
|
|
||||||
if 'hydro' in config['renewable'].keys():
|
if 'hydro' in config['renewable'].keys():
|
||||||
rule build_hydro_profile:
|
rule build_hydro_profile:
|
||||||
input:
|
input:
|
||||||
|
Loading…
Reference in New Issue
Block a user