Skip to main content

Open weather data for humans

Project description

https://github.com/earthobservations/wetterdienst/workflows/Tests/badge.svg https://codecov.io/gh/earthobservations/wetterdienst/branch/master/graph/badge.svg Documentation Status https://img.shields.io/badge/code%20style-black-000000.svg https://img.shields.io/pypi/pyversions/wetterdienst.svg https://img.shields.io/pypi/v/wetterdienst.svg https://img.shields.io/pypi/status/wetterdienst.svg https://pepy.tech/badge/wetterdienst/month https://img.shields.io/github/license/earthobservations/wetterdienst https://zenodo.org/badge/160953150.svg https://img.shields.io/discord/704622099750191174.svg?label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2

Introduction

Welcome to Wetterdienst, your friendly weather service library for Python.

We are a group of like-minded people trying to make access to weather data in Python feel like a warm summer breeze, similar to other projects like rdwd for the R language, which originally drew our interest in this project.

While our long-term goal is to provide access to multiple weather services, we are still stuck with the German Weather Service (DWD). Contributions are always welcome!

This program and its repository tries to use modern Python technologies all over the place. The library is based on Pandas across the board, uses Poetry for package administration and GitHub Actions for all things CI.

Features

Coverage

The library currently covers

  • Weather observation data. Both historical and recent.

  • Radar data. All of composite, radolan, radvor, sites and radolan_cdc.

  • MOSMIX statistical optimized scalar forecasts extracted from weather models. Both MOSMIX-L and MOSMIX-S is supported.

To get better insight on which data we have currently made available, with this library take a look at data coverage.

Details

  • Get metadata for a set of Parameter, PeriodType and TimeResolution.

  • Get station(s) nearby a selected location.

  • Command line interface.

  • Run SQL queries on the results.

  • Export results to databases and other data sinks.

  • Public Docker image.

Setup

Run this to make wetterdienst available in your current environment:

pip install wetterdienst

Synopsis

Get historical data for specific stations, using Python:

>>> from wetterdienst.dwd.observations import (
...     DWDObservationData,
...     DWDObservationParameterSet,
...     DWDObservationPeriod,
...     DWDObservationResolution
... )
>>> observations = DWDObservationData(
...    station_ids=[1048,4411],
...    parameters=[DWDObservationParameterSet.CLIMATE_SUMMARY,
...                DWDObservationParameterSet.SOLAR],
...    resolution=DWDObservationResolution.DAILY,
...    start_date="1990-01-01",
...    end_date="2020-01-01",
...    tidy_data=True,
...    humanize_parameters=True,
... )
>>> df = observations.all()

Get data for specific stations from the command line:

# Get list of all stations for daily climate summary data in JSON format
wetterdienst stations --parameter=kl --resolution=daily --period=recent

# Get daily climate summary data for specific stations
wetterdienst readings --station=1048,4411 --parameter=kl --resolution=daily --period=recent

Documentation

We strongly recommend reading the full documentation, which will be updated continuously as we make progress with this library:

For the whole functionality, check out the Wetterdienst API section of our documentation, which will be constantly updated. To stay up to date with the development, take a look at the changelog. Also, don’t miss out our examples.

Data license

Although the data is specified as being open, the DWD asks you to reference them as copyright owner. Please take a look at the Open Data Strategy at the DWD and the Official Copyright statements before using the data.

Release history Release notifications | RSS feed

Download files

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

Source Distribution

wetterdienst-0.12.1.tar.gz (75.5 kB view details)

Uploaded Source

Built Distribution

wetterdienst-0.12.1-py3-none-any.whl (95.8 kB view details)

Uploaded Python 3

File details

Details for the file wetterdienst-0.12.1.tar.gz.

File metadata

  • Download URL: wetterdienst-0.12.1.tar.gz
  • Upload date:
  • Size: 75.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/5.4.0-1032-azure

File hashes

Hashes for wetterdienst-0.12.1.tar.gz
Algorithm Hash digest
SHA256 0b0a453763afa3a7ec33c048b2a4ccf95d88fffcd3472b6bbdb2f16f8276f023
MD5 551f65b49f85c574b2bbb70d1140a1a4
BLAKE2b-256 245c9f6c40a39684527e1d3f50d3985c6c87935eb6d1e2592a65dee38efaabf6

See more details on using hashes here.

File details

Details for the file wetterdienst-0.12.1-py3-none-any.whl.

File metadata

  • Download URL: wetterdienst-0.12.1-py3-none-any.whl
  • Upload date:
  • Size: 95.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/5.4.0-1032-azure

File hashes

Hashes for wetterdienst-0.12.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4f2eb1d1e7d14dcc6f512c30311fe8dcce327c0aa136dfc21a2fd797ac201903
MD5 64dae0a93a99db33c96095b918bffc4c
BLAKE2b-256 1e420a7334f097f23e2610bd240bbc4380d6e3595e47ae7a600411227f09a4c8

See more details on using hashes here.

Supported by

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