Closed Jun-Jiang-92 closed 43 minutes ago
@Jun-Jiang-92 that looks like an important improvement, thank you!
To help you get started:
Here is defined which data is pulled from hourly or 10min Sources of DWD: https://github.com/RWTH-EBC/EBC-Weather-Tool/blob/9c8bad94e33196fa7723113caafe8fef2abfe293/aixweather/imports/DWD.py#L59
You may addtionally check here if the data point name is correct e.g. "wind_direction" and make sure the "time_of_meas_shift" is correct! For 10min data it would be "prec2ind" due to the resampling methodology. https://github.com/RWTH-EBC/EBC-Weather-Tool/blob/9c8bad94e33196fa7723113caafe8fef2abfe293/aixweather/transformation_to_core_data/DWD.py#L112
In theory, the rest should be handled by aixweathers logic. If not, there might be a bug.
If you get stuck, get in contact! Otherwise, I will be happy to review your PR :)
The reason is that DWD uses two different names for these two data resouces of wind data. The mapping in the program now is actually for the source of 10-min data. https://github.com/RWTH-EBC/AixWeather/blob/b6adf79b33aa35f4b29e235e8f09010e77608cdd/aixweather/transformation_to_core_data/DWD.py#L39
The hourly wind data are named differently. As also mentioned in the programm as comment: https://github.com/RWTH-EBC/AixWeather/blob/b6adf79b33aa35f4b29e235e8f09010e77608cdd/aixweather/transformation_to_core_data/DWD.py#L57
So changing the source to 10-min wind data will fix the bug.
@MartinRaetz Thank you for your review. I'll close this issue.
Currently, I download the data only from the python script. So, for me, it is not necessary to update the webapp.
Describe the bug By pulling the DWD historical data, there is no data for wind speed and wind direction.
To Reproduce Steps to reproduce the behavior:
Expected behavior Pulled data include wind speed and direction
Screenshots
Bug Fix Suggestion There are two data sources of wind speed in the CDC:
Both sources include the wind data of January 2023, e.g.:
From https://opendata.dwd.de/climate_environment/CDC/observations_germany/climate/10_minutes/wind/historical/10minutenwerte_wind_15000_20200101_20231231_hist.zip
From https://opendata.dwd.de/climate_environment/CDC/observations_germany/climate/hourly/wind/historical/stundenwerte_FF_15000_20110401_20231231_hist.zip
For the wind data, now the code will try to pull the data from hourly data bank. I changed the source to 10-minute data bank and the wind data appeared.
However, the the tool should also work with hourly databank, because the data also exist there. I guess there is a bug by pulling the data or by processing the data pulled.