📚 Installation
The Meteostat Python package is available through PyPI:
pip install meteostat
🚀 Usage
Let's plot 2018 temperature data for Frankfurt, Germany:
from datetime import date
import matplotlib.pyplot as plt
import meteostat as ms
# Specify location and time range
POINT = ms.Point(50.1155, 8.6842, 113) # Try with your location
START = date(2018, 1, 1)
END = date(2018, 12, 31)
# Get nearby weather stations
stations = ms.stations.nearby(POINT, limit=4)
# Get daily data & perform interpolation
ts = ms.daily(stations, START, END)
df = ms.interpolate(ts, POINT).fetch()
# Plot line chart including average, minimum and maximum temperature
df.plot(y=[ms.Parameter.TEMP, ms.Parameter.TMIN, ms.Parameter.TMAX])
plt.show()
Take a look at the expected output:
🤝 Contributing
Please read our contributing guidelines for details on how to contribute to the Meteostat Python library.
🌟 Featured In
Meteostat has been featured and used by various media outlets and organizations, including:
Join the growing community of users and researchers relying on Meteostat for their weather data needs.
📄 License
Meteostat is licensed under the MIT License. Data provided by Meteostat is generally licensed under the Creative Commons Attribution 4.0 International (CC BY 4.0) license. Please refer to the documentation for more information.
Release files for meteostat 2.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| meteostat-2.1.5.tar.gz | 59.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| meteostat-2.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 153.3 kB
Release files / meteostat-2.1.5.tar.gz
| Download URL | meteostat-2.1.5.tar.gz |
|---|---|
| Size | 59.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a245313feb5e7b74f5be78cb9a2d2d6f700effc164c22732fc31da9782ad5fe
|
|
BLAKE2b-256 checksum How to use checksums |
1a1bf4e08a131b535e7f2a5bcfcc2fe9b5774d9670cbfccbc4c290ccf92223f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / meteostat-2.1.5-py3-none-any.whl
| Download URL | meteostat-2.1.5-py3-none-any.whl |
|---|---|
| Size | 94.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a9234959c3e9bc8f426231754198adddb1a8b7a1b9ecbabbcedbe889e7d8f93b
|
|
BLAKE2b-256 checksum How to use checksums |
4725695f01318f9fb2d4903ff9f681b9fe57cb4104d9a34dccb0f30866e3a499
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|