data/bundle files may be ancient
This commit is contained in:
parent
37a063554d
commit
701d3a141a
@ -19,7 +19,7 @@ if config["enable"].get("prepare_links_p_nom", False):
|
|||||||
|
|
||||||
rule build_load_data:
|
rule build_load_data:
|
||||||
input:
|
input:
|
||||||
"data/load_raw.csv",
|
ancient("data/load_raw.csv"),
|
||||||
output:
|
output:
|
||||||
RESOURCES + "load.csv",
|
RESOURCES + "load.csv",
|
||||||
log:
|
log:
|
||||||
@ -76,13 +76,13 @@ rule base_network:
|
|||||||
|
|
||||||
rule build_shapes:
|
rule build_shapes:
|
||||||
input:
|
input:
|
||||||
naturalearth="data/bundle/naturalearth/ne_10m_admin_0_countries.shp",
|
naturalearth=ancient("data/bundle/naturalearth/ne_10m_admin_0_countries.shp"),
|
||||||
eez="data/bundle/eez/World_EEZ_v8_2014.shp",
|
eez=ancient("data/bundle/eez/World_EEZ_v8_2014.shp"),
|
||||||
nuts3="data/bundle/NUTS_2013_60M_SH/data/NUTS_RG_60M_2013.shp",
|
nuts3=ancient("data/bundle/NUTS_2013_60M_SH/data/NUTS_RG_60M_2013.shp"),
|
||||||
nuts3pop="data/bundle/nama_10r_3popgdp.tsv.gz",
|
nuts3pop=ancient("data/bundle/nama_10r_3popgdp.tsv.gz"),
|
||||||
nuts3gdp="data/bundle/nama_10r_3gdp.tsv.gz",
|
nuts3gdp=ancient("data/bundle/nama_10r_3gdp.tsv.gz"),
|
||||||
ch_cantons="data/bundle/ch_cantons.csv",
|
ch_cantons=ancient("data/bundle/ch_cantons.csv"),
|
||||||
ch_popgdp="data/bundle/je-e-21.03.02.xls",
|
ch_popgdp=ancient("data/bundle/je-e-21.03.02.xls"),
|
||||||
output:
|
output:
|
||||||
country_shapes=RESOURCES + "country_shapes.geojson",
|
country_shapes=RESOURCES + "country_shapes.geojson",
|
||||||
offshore_shapes=RESOURCES + "offshore_shapes.geojson",
|
offshore_shapes=RESOURCES + "offshore_shapes.geojson",
|
||||||
@ -140,7 +140,7 @@ if config["enable"].get("build_natura_raster", False):
|
|||||||
|
|
||||||
rule build_natura_raster:
|
rule build_natura_raster:
|
||||||
input:
|
input:
|
||||||
natura="data/bundle/natura/Natura2000_end2015.shp",
|
natura=ancient("data/bundle/natura/Natura2000_end2015.shp"),
|
||||||
cutouts=expand("cutouts/" + CDIR + "{cutouts}.nc", **config["atlite"]),
|
cutouts=expand("cutouts/" + CDIR + "{cutouts}.nc", **config["atlite"]),
|
||||||
output:
|
output:
|
||||||
RESOURCES + "natura.tiff",
|
RESOURCES + "natura.tiff",
|
||||||
@ -179,17 +179,17 @@ rule build_ship_raster:
|
|||||||
rule build_renewable_profiles:
|
rule build_renewable_profiles:
|
||||||
input:
|
input:
|
||||||
base_network=RESOURCES + "networks/base.nc",
|
base_network=RESOURCES + "networks/base.nc",
|
||||||
corine="data/bundle/corine/g250_clc06_V18_5.tif",
|
corine=ancient("data/bundle/corine/g250_clc06_V18_5.tif"),
|
||||||
natura=lambda w: (
|
natura=lambda w: (
|
||||||
RESOURCES + "natura.tiff"
|
RESOURCES + "natura.tiff"
|
||||||
if config["renewable"][w.technology]["natura"]
|
if config["renewable"][w.technology]["natura"]
|
||||||
else []
|
else []
|
||||||
),
|
),
|
||||||
gebco=lambda w: (
|
gebco=ancient(lambda w: (
|
||||||
"data/bundle/GEBCO_2014_2D.nc"
|
"data/bundle/GEBCO_2014_2D.nc"
|
||||||
if config["renewable"][w.technology].get("max_depth")
|
if config["renewable"][w.technology].get("max_depth")
|
||||||
else []
|
else []
|
||||||
),
|
)),
|
||||||
ship_density=lambda w: (
|
ship_density=lambda w: (
|
||||||
RESOURCES + "shipdensity_raster.nc"
|
RESOURCES + "shipdensity_raster.nc"
|
||||||
if "ship_threshold" in config["renewable"][w.technology].keys()
|
if "ship_threshold" in config["renewable"][w.technology].keys()
|
||||||
@ -254,7 +254,7 @@ rule add_electricity:
|
|||||||
tech_costs=COSTS,
|
tech_costs=COSTS,
|
||||||
regions=RESOURCES + "regions_onshore.geojson",
|
regions=RESOURCES + "regions_onshore.geojson",
|
||||||
powerplants=RESOURCES + "powerplants.csv",
|
powerplants=RESOURCES + "powerplants.csv",
|
||||||
hydro_capacities="data/bundle/hydro_capacities.csv",
|
hydro_capacities=ancient("data/bundle/hydro_capacities.csv"),
|
||||||
geth_hydro_capacities="data/geth2015_hydro_capacities.csv",
|
geth_hydro_capacities="data/geth2015_hydro_capacities.csv",
|
||||||
load=RESOURCES + "load.csv",
|
load=RESOURCES + "load.csv",
|
||||||
nuts3_shapes=RESOURCES + "nuts3_shapes.geojson",
|
nuts3_shapes=RESOURCES + "nuts3_shapes.geojson",
|
||||||
|
@ -232,9 +232,9 @@ rule build_biomass_potentials:
|
|||||||
),
|
),
|
||||||
nuts2="data/nuts/NUTS_RG_10M_2013_4326_LEVL_2.geojson", # https://gisco-services.ec.europa.eu/distribution/v2/nuts/download/#nuts21
|
nuts2="data/nuts/NUTS_RG_10M_2013_4326_LEVL_2.geojson", # https://gisco-services.ec.europa.eu/distribution/v2/nuts/download/#nuts21
|
||||||
regions_onshore=RESOURCES + "regions_onshore_elec_s{simpl}_{clusters}.geojson",
|
regions_onshore=RESOURCES + "regions_onshore_elec_s{simpl}_{clusters}.geojson",
|
||||||
nuts3_population="data/bundle/nama_10r_3popgdp.tsv.gz",
|
nuts3_population=ancient("data/bundle/nama_10r_3popgdp.tsv.gz"),
|
||||||
swiss_cantons="data/bundle/ch_cantons.csv",
|
swiss_cantons=ancient("data/bundle/ch_cantons.csv"),
|
||||||
swiss_population="data/bundle/je-e-21.03.02.xls",
|
swiss_population=ancient("data/bundle/je-e-21.03.02.xls"),
|
||||||
country_shapes=RESOURCES + "country_shapes.geojson",
|
country_shapes=RESOURCES + "country_shapes.geojson",
|
||||||
output:
|
output:
|
||||||
biomass_potentials_all=RESOURCES
|
biomass_potentials_all=RESOURCES
|
||||||
|
Loading…
Reference in New Issue
Block a user