From 16bd4b6c2cbe4f2f3b315b19ed27b4f8c804ca27 Mon Sep 17 00:00:00 2001 From: Fabian Neumann Date: Fri, 22 Jul 2022 19:14:00 +0200 Subject: [PATCH] fix snapshot creation based on weather year --- scripts/build_heat_demand.py | 6 +++--- scripts/build_solar_thermal_profiles.py | 2 +- scripts/build_temperature_profiles.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/build_heat_demand.py b/scripts/build_heat_demand.py index fe44de16..1e165c69 100644 --- a/scripts/build_heat_demand.py +++ b/scripts/build_heat_demand.py @@ -11,9 +11,9 @@ if __name__ == '__main__': from helper import mock_snakemake snakemake = mock_snakemake( 'build_heat_demands', - weather_year='', + weather_year='1969', simpl='', - clusters=48, + clusters=37, ) cutout_name = snakemake.input.cutout @@ -25,7 +25,7 @@ if __name__ == '__main__': else: snapshots = snakemake.config['snapshots'] - time = pd.date_range(freq='m', **snapshots) + time = pd.date_range(freq='h', **snapshots) if snakemake.config["atlite"].get("drop_leap_day", False): time = time[~((time.month == 2) & (time.day == 29))] diff --git a/scripts/build_solar_thermal_profiles.py b/scripts/build_solar_thermal_profiles.py index 8bdc07c5..ec9e59c4 100644 --- a/scripts/build_solar_thermal_profiles.py +++ b/scripts/build_solar_thermal_profiles.py @@ -27,7 +27,7 @@ if __name__ == '__main__': else: snapshots = snakemake.config['snapshots'] - time = pd.date_range(freq='m', **snapshots) + time = pd.date_range(freq='h', **snapshots) if snakemake.config["atlite"].get("drop_leap_day", False): time = time[~((time.month == 2) & (time.day == 29))] diff --git a/scripts/build_temperature_profiles.py b/scripts/build_temperature_profiles.py index ab006409..3e690cca 100644 --- a/scripts/build_temperature_profiles.py +++ b/scripts/build_temperature_profiles.py @@ -25,7 +25,7 @@ if __name__ == '__main__': else: snapshots = snakemake.config['snapshots'] - time = pd.date_range(freq='m', **snapshots) + time = pd.date_range(freq='h', **snapshots) if snakemake.config["atlite"].get("drop_leap_day", False): time = time[~((time.month == 2) & (time.day == 29))]