From f0e6d447e8c52e2bfdfa85402451f40a1be14253 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20H=C3=B6rsch?= Date: Tue, 10 Jul 2018 16:33:22 +0200 Subject: [PATCH] Add the potential map to the renewable profile --- scripts/build_renewable_profiles.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/build_renewable_profiles.py b/scripts/build_renewable_profiles.py index 217f699a..b39bc9fa 100644 --- a/scripts/build_renewable_profiles.py +++ b/scripts/build_renewable_profiles.py @@ -47,6 +47,7 @@ p_nom_max = xr.DataArray([np.nanmin(relativepotentials[row.nonzero()[1]]) ds = xr.merge([(correction_factor * profile).rename('profile'), capacities.rename('weight'), - p_nom_max.rename('p_nom_max')]) + p_nom_max.rename('p_nom_max'), + layout.rename('potential')]) (ds.sel(bus=ds['profile'].mean('time') > config.get('min_p_max_pu', 0.)) .to_netcdf(snakemake.output.profile))