Meteora
Pythonic interface to access observations from meteorological stations. Key features:
- easily stream meteorological observations from multiple providers, from global (e.g., GHCNh) and regional (e.g., MeteoSwiss) networks to citizen weather stations (e.g., Netatmo) into pandas data frames.
- user-friendly arguments to filter data by region, variables or date ranges.
- request and download caching with requests-cache and pooch to avoid re-downloading data and help bypassing API limits.
- postprocess the collected data, e.g.:
Overview
Meteora provides a set of provider-specific clients to get observations from meteorological stations. For instance, it can be used to stream data from the Global Historical Climatology Network hourly (GHCNh) into a pandas data frame:
from meteora.clients import GHCNHourlyClient
region = "Canton de Vaud, Switzerland"
variables = ["temperature", "precipitation", "wind_speed"]
start = "12-11-2021"
end = "12-12-2021"
client = GHCNHourlyClient(region)
ts_df = client.get_ts_df(variables, start, end)
ts_df.head()
[########################################] | 100% Completed | 925.68 ms
| station_id | time | temperature | precipitation | wind_speed |
|---|---|---|---|---|
| SZI0000LSMP | 2021-12-11 00:20:00 | 2.0 | NaN | 4.6 |
| 2021-12-11 00:50:00 | 2.0 | NaN | 5.1 | |
| 2021-12-11 01:20:00 | 2.0 | NaN | 4.6 | |
| 2021-12-11 01:50:00 | 2.0 | NaN | 3.6 | |
| 2021-12-11 02:20:00 | 2.0 | NaN | 4.6 |
We can also get the station locations using the stations_gdf property:
import contextily as cx
ax = client.stations_gdf.assign(
T_mean=ts_df.groupby("station_id")["temperature"].mean()
).plot(
"T_mean",
cmap="winter",
legend=True,
legend_kwds={"label": "$\overline{T} \; [\circ C]$", "shrink": 0.5},
)
cx.add_basemap(ax, crs=client.stations_gdf.crs, attribution=False)
(C) OpenStreetMap contributors, Tiles style by Humanitarian OpenStreetMap Team hosted by OpenStreetMap France
See the user guide for more details about the features of Meteora as well as the list of supported providers.
Installation
The easiest way to install Meteora is with conda/mamba:
conda install -c conda-forge meteora
Alternatively, if geopandas dependencies are installed correctly, you can install Meteora using pip:
pip install meteora
See also
Meteora intends to provide a unified way to access data from meteorological stations from multiple providers. The following libraries provide access to data from a specific provider:
Eventually these packages will be fully integrated into Meteora.
Acknowledgements
- The logging system is based on code from gboeing/osmnx.
- This package was created with the martibosch/cookiecutter-geopy-package project template.
- With the support of the École Polytechnique Fédérale de Lausanne (EPFL).
Metadata
Release files for meteora 0.16.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| meteora-0.16.0.tar.gz | 72.8 kB | Without provenance | Details for meteora-0.16.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| meteora-0.16.0-py3-none-any.whl | Python 3 | none | any | Details for meteora-0.16.0-py3-none-any.whl |
Total release size: 159.7 kB
Release files / meteora-0.16.0.tar.gz
| Download URL | meteora-0.16.0.tar.gz |
|---|---|
| Size | 72.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e8c2a81f95db4cc9b4a45267ddbbe11f538b095eb009308c834099f4bc537eb0
|
|
BLAKE2b-256 checksum How to use checksums |
72d9ed9896cc8f9efa42ba59236b6995204cb6acbe614c7516d5ab0f6bb33a19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / meteora-0.16.0-py3-none-any.whl
| Download URL | meteora-0.16.0-py3-none-any.whl |
|---|---|
| Size | 86.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e42cdf65a8ad97a4f6d4107951ed9816ae23a4ddc02bc8525d0dbbeb478453f2
|
|
BLAKE2b-256 checksum How to use checksums |
2eb31c3286d0d8882966c58561beb6d2e82c1c33a5eeddfdd15a4723a23581b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for meteora 0.16.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.