From e9348b8e232004b5db149130ab91fe8a4b58515e Mon Sep 17 00:00:00 2001 From: lisazeyen Date: Wed, 17 May 2023 12:48:45 +0200 Subject: [PATCH] uncomment ship raster, since otherwise not computing --- scripts/build_renewable_profiles.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/build_renewable_profiles.py b/scripts/build_renewable_profiles.py index c0288aee..b0d92729 100644 --- a/scripts/build_renewable_profiles.py +++ b/scripts/build_renewable_profiles.py @@ -246,14 +246,14 @@ if __name__ == "__main__": snakemake.input.corine, codes=codes, buffer=buffer, crs=3035 ) - if "ship_threshold" in config: - shipping_threshold = ( - config["ship_threshold"] * 8760 * 6 - ) # approximation because 6 years of data which is hourly collected - func = functools.partial(np.less, shipping_threshold) - excluder.add_raster( - snakemake.input.ship_density, codes=func, crs=4326, allow_no_overlap=True - ) + # if "ship_threshold" in config: + # shipping_threshold = ( + # config["ship_threshold"] * 8760 * 6 + # ) # approximation because 6 years of data which is hourly collected + # func = functools.partial(np.less, shipping_threshold) + # excluder.add_raster( + # snakemake.input.ship_density, codes=func, crs=4326, allow_no_overlap=True + # ) if config.get("max_depth"): # lambda not supported for atlite + multiprocessing