Python package for downloading meteorological data of stations by the Avalanche Warning Service of Tyrol
python-package
data-download
Published
April 8, 2025
The package lwdmeteo is meant to facilitate download of meteorological data from the Avalanche Warning Service of Tyrol (Lawinenwarndienst Tirol, LWD Tirol). The package allows to retrieve a file (via get_station_file()) that contains all stations with some basic metadata which allows to explore when measurements start and what the corresponding station identifier (lwd-nummer) is. This station id must be passed to the actual download function (download_station(...) or batch_download_station(...)). A command line interface is also available with a description in the repository.
On the side of LWD Tirol, the files can be downloaded here for a specific station, variable and hydrological year. The lwdmeteo package simply sends requests to very same url that is accessed when downloading files via this page. Note that the data is licensed under CC BY 4.0.
Warning
The data available for download seems to be “raw” data and therefore should be carefully evaluated.
For the purpose of visualization, in the following I will use Sep. 1 as the start of the “hydrological” year, as I think it is a bit nicer since it captures snowfall events early in the season. Therefore I “define” the hydrological year in the following starting Sep. 1 which does not adhere to the actual definition.
import sysimport pandas as pdimport numpy as npimport seaborn as snsimport matplotlib as mplimport matplotlib.pyplot as pltimport contextily as cximport lwdmeteofrom lwdmeteo import batch_download_station, get_station_file, parametersprint(sys.version)print(pd.__version__)print(np.__version__)print(sns.__version__)print(mpl.__version__)print(cx.__version__)print(lwdmeteo.__version__)
3.13.1 | packaged by conda-forge | (main, Dec 5 2024, 21:23:54) [GCC 13.3.0]
2.2.3
2.2.0
0.13.2
3.10.1
1.6.2
0.1.0
Exploring available parameters
The keys of the dictionary are used to specify the desired parameter in the download function.
Note that get_station_file() parses the response from here. This means that the following plot could look different if there are any updates in the future.