From 35fa4b5b7d5bfb9417396f17ce0ba781b089f87c Mon Sep 17 00:00:00 2001 From: k-rieck Date: Wed, 18 Dec 2024 12:27:08 +0100 Subject: [PATCH] try to find well working wetterdienst version --- hisim/components/weather_data_import.py | 4 ++-- requirements.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hisim/components/weather_data_import.py b/hisim/components/weather_data_import.py index 74f12d4a7..01405323d 100644 --- a/hisim/components/weather_data_import.py +++ b/hisim/components/weather_data_import.py @@ -130,7 +130,7 @@ def dwd_10min_request( ts_interpolation_use_nearby_station_distance=40, ) - parameters = [DwdObservationParameter.MINUTE_10.TEMPERATURE_AIR_MEAN_2M, + parameters = [DwdObservationParameter.MINUTE_10.TEMPERATURE_AIR_MEAN_200, DwdObservationParameter.MINUTE_10.PRESSURE_AIR_SITE, DwdObservationParameter.MINUTE_10.WIND_DIRECTION, DwdObservationParameter.MINUTE_10.WIND_SPEED, @@ -240,7 +240,7 @@ def dwd_10min_request( ) print("Write Weather Data into Dataframe.") temperature_dwd_df = ( - values[values["parameter"] == "temperature_air_mean_2m"] + values[values["parameter"] == "temperature_air_mean_200"] .groupby("date")["value"] .apply(lambda x: ", ".join(map(str, x))) .reset_index() diff --git a/requirements.txt b/requirements.txt index ea48339e2..c6ec4ed40 100644 --- a/requirements.txt +++ b/requirements.txt @@ -25,6 +25,6 @@ ordered_set typing_extensions python-dotenv windpowerlib # ==0.2.1 -wetterdienst==0.97.0 +wetterdienst==0.63.0 cdsapi xarray