Machinery#
DWD (German Weather Service)#
- class wetterdienst.provider.dwd.mosmix.access.KMLReader(station_ids, parameters, settings)#
Read DWD XML Weather Forecast File of Type KML.
- download(url)#
Download kml file as bytes. https://stackoverflow.com/questions/37573483/progress-bar-while-download-file-over-http-with-requests
- block_size: int or None
Bytes to download in one request; use instance value if None. If zero, will return a streaming Requests file-like instance.
- Parameters:
url (
str
) – url string to kml file- Return type:
BytesIO
- Returns:
content as bytes
- fetch(url)#
Fetch weather mosmix file (zipped xml).
- Return type:
bytes
- get_forecasts()#
Get forecasts as DataFrame.
- Return type:
Iterator
[DataFrame
]
- get_metadata()#
Get metadata as DataFrame.
- read(url)#
Download and read DWD XML Weather Forecast File of Type KML.