Skip to content

Commit

Permalink
Enable defining parameter and dataset together to precisely select th…
Browse files Browse the repository at this point in the history
…e source dataset
  • Loading branch information
gutzbenj committed Jul 18, 2021
1 parent 426086a commit dcc2f4c
Show file tree
Hide file tree
Showing 18 changed files with 449 additions and 805 deletions.
18 changes: 17 additions & 1 deletion CHANGELOG.rst
Expand Up @@ -4,7 +4,23 @@ Changelog
Development
***********

...
Added
=====

- Enable selecting a parameter precisely from a dataset by passing a tuple like [("precipitation_height", "kl")] or
[("precipitation_height", "precipitation_more")], or for cli/restapi use "precipitation_height/kl"

Changed
=======

Deprecated
==========

Removed
=======

Fixed
=====

0.20.3 (15.07.2021)
*******************
Expand Down
781 changes: 146 additions & 635 deletions THIRD_PARTY_NOTICES

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/usage/python-api.rst
Expand Up @@ -63,7 +63,7 @@ different ways:
"kl"
This leaves a lot flexibility to the user defining the arguments either by what they
This leaves a lot of flexibility to the user defining the arguments either by what they
know from the weather service or what they know from `wetterdienst` itself.

Typical requests are defined by three arguments:
Expand Down Expand Up @@ -126,7 +126,7 @@ to discover available parameters based on the given filter arguments.
Stations
--------

Get station information for a given *parameter/parameter_set*, *resolution* and
Get station information for a given *parameter/dataset*, *resolution* and
*period*.

.. ipython:: python
Expand Down
17 changes: 16 additions & 1 deletion docs/usage/python-examples.rst
Expand Up @@ -50,7 +50,7 @@ Get stations for daily historical precipitation:
print(stations.all().df.head())
Get data for a parameter set:
Get data for a dataset:

.. ipython:: python
Expand Down Expand Up @@ -84,6 +84,21 @@ Get data for a parameter:
print(next(stations.all().values.query()))
Get data for a parameter from another dataset:

.. ipython:: python
from wetterdienst import Wetterdienst, Resolution, Period
API = Wetterdienst(provider="dwd", kind="observation")
observation_data = API(
parameter=[("precipitation_height", "precipitation_more")],
resolution=Resolution.DAILY,
period=Period.HISTORICAL
)
print(next(stations.all().values.query()))
*********************
DWD: MOSMIX forecasts
Expand Down
90 changes: 47 additions & 43 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dcc2f4c

Please sign in to comment.