Skip to content

Commit

Permalink
fixing problem with weather data from dwd (#329)
Browse files Browse the repository at this point in the history
* get the latest version of package "wetterdienst"
fixing problem with weather data from dwd

* fix pylint tests
  • Loading branch information
Hoppe-J authored May 3, 2024
1 parent 04a3fac commit a04cd0c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions hisim/components/weather_data_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,12 +408,12 @@ def dwd_10min_request(
weather_df = pd.concat(
[
time_df,
temperature_air_df["temperature"],
pressure_df["pressure"],
wind_direction_df["wind_direction"],
wind_speed_df["wind_speed"],
diffuse_irradiance_df["diffuse_irradiance"],
global_irradiance_df["global_irradiance"],
temperature_air_df, # ["temperature"],
pressure_df, # ["pressure"],
wind_direction_df, # ["wind_direction"],
wind_speed_df, # ["wind_speed"],
diffuse_irradiance_df, # ["diffuse_irradiance"],
global_irradiance_df, # ["global_irradiance"],
],
axis=1,
join="outer",
Expand Down Expand Up @@ -719,12 +719,12 @@ def era5_request(
weather_df = pd.concat(
[
time_df,
temperature_air_df["temperature"],
pressure_df["pressure"],
wind_direction_df["wind_direction"],
wind_speed_df["wind_speed"],
direct_irradiance_df["direct_irradiance"],
global_irradiance_df["global_irradiance"],
temperature_air_df, # ["temperature"],
pressure_df, # ["pressure"],
wind_direction_df, # ["wind_direction"],
wind_speed_df, # ["wind_speed"],
direct_irradiance_df, # ["direct_irradiance"],
global_irradiance_df, # ["global_irradiance"],
],
axis=1,
join="outer",
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ ordered_set
typing_extensions
python-dotenv
windpowerlib==0.2.1
wetterdienst==0.68.0
wetterdienst
cdsapi
xarray

0 comments on commit a04cd0c

Please sign in to comment.