Skip to main content

Access and analyze historical weather and climate data with Python.

Project description

Downloads Coverage Provider Tests Issues MIT License Stargazers


Meteostat Logo

Meteostat Python Package

Access and analyze historical weather and climate data with Python.

Explore the docs »

Visit Website · Report Bug · Request Feature

📚 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:

2018 temperature data for Frankfurt, Germany

🤝 Contributing

Please read our contributing guidelines for details on how to contribute to the Meteostat Python library.

Top contributors

Meteostat Contributors

🌟 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

meteostat-2.1.3.tar.gz (57.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

meteostat-2.1.3-py3-none-any.whl (93.0 kB view details)

Uploaded Python 3

File details

Details for the file meteostat-2.1.3.tar.gz.

File metadata

  • Download URL: meteostat-2.1.3.tar.gz
  • Upload date:
  • Size: 57.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for meteostat-2.1.3.tar.gz
Algorithm Hash digest
SHA256 65a734b5c8fa7ea21d608c0b0839f97718f3eda3a992904ca24e11491d913b1d
MD5 cf7103057aed09c00168dc68835e56cb
BLAKE2b-256 a6a26f15fd78b7306521705f164a9e65e92672bc8e3259056b34bb608b8bb139

See more details on using hashes here.

File details

Details for the file meteostat-2.1.3-py3-none-any.whl.

File metadata

  • Download URL: meteostat-2.1.3-py3-none-any.whl
  • Upload date:
  • Size: 93.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for meteostat-2.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 355768dcfa0097ccf6049e1fc29f0011ef472798aaf5da9b4cdb0964e0fb54ec
MD5 44775514478c53e230e2cc6fb54acfca
BLAKE2b-256 9b0ca33c9eb4cc7ef2045def33c7a05349dc83901b96d0a1fc385c91035d41ce

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page