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.4.tar.gz (58.6 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.4-py3-none-any.whl (93.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: meteostat-2.1.4.tar.gz
  • Upload date:
  • Size: 58.6 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.4.tar.gz
Algorithm Hash digest
SHA256 186936378be1a8234a91530ccac2464023cc610a9c5db5f1b988a07883e0c5c6
MD5 21ea22a40a444fbceb3f551cae918f0c
BLAKE2b-256 23a152a138270f770ff7a5ff5376a6f2b59bbb7d494897ebb87ed41cbec3e861

See more details on using hashes here.

File details

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

File metadata

  • Download URL: meteostat-2.1.4-py3-none-any.whl
  • Upload date:
  • Size: 93.8 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4a28a919aadf4e523b03baec1bdde883da5ff78dc84e1de4680be577a037dd84
MD5 f83a9dd1dfb05d55bba1909c14ac448d
BLAKE2b-256 50122a86b1ffd84b77c9791c6b6a2f17bc0f8e6b9ae9b951aebe358e27e7d09d

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