Service from Rijkswaterstaat for distributing water quantity data.
Project description
ddlpy
(D)ata (D)istributie (L)aag is a service from Rijkswaterstaat for distributing water quantity data, more information is available at https://rijkswaterstaatdata.nl/waterdata. This package provides an API for Python and includes easy filtering of available data and stations, convenient conversion to pandas and xarray objects, automatic chunking of large data requests, error handling and much more nifty features. See also https://github.com/wstolte/rwsapi for the R API.
Install
Install the latest ddlpy PyPI release with (extra dependencies between [] are optional):
pip install rws-ddlpy[netcdf,examples]
Examples
Documentation: https://deltares.github.io/ddlpy
In the examples/notebooks folders you will find the following examples to get you started:
-
minimal_example.py -> minimal code to retrieve data.
-
retrieve_parallel_to_netcdf.py -> Code to retrieve a bulk of observations and write to netcdf files for each station.
-
measurements.ipynb -> interactive notebook to subset/inspect locations and download/plot measurements
-
waterinfo.ipynb -> interactive notebook to read csv's obained from waterinfo.rws.nl
Run ddlpy from console
With ddlpy locations you can generate a (subsetted) locations.json file, for instance:
ddlpy locations --quantity WATHTE --station hoekvanholland
With ddlpy measurements you can obtain measurements for locations/parameters in an existing locations.json, for instance:
ddlpy measurements 2023-01-01 2023-01-03
Something broke?
First check the status of the DDL (at the Updates section). If you found an issue in the data or with the Waterwebservices, please start a discussion at the Waterwebservices github. If you have a suggestion or found a bug in ddlpy, please create a issue at the ddlpy Github.
Project details
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rws_ddlpy-0.10.0.tar.gz.
File metadata
- Download URL: rws_ddlpy-0.10.0.tar.gz
- Upload date:
- Size: 47.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b01ba6af6175c3f143ce5d10145792d6462684ce8988fd1f950c1b9fabd5d84
|
|
| MD5 |
a61e56a282e75841d05f7f237a45ce93
|
|
| BLAKE2b-256 |
0cbbd35659ae4fba499c12920c1f324f40ba3927da21cadde3d57a975dbd0c0a
|
File details
Details for the file rws_ddlpy-0.10.0-py3-none-any.whl.
File metadata
- Download URL: rws_ddlpy-0.10.0-py3-none-any.whl
- Upload date:
- Size: 28.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4e8ddcc3c3ff6c665902c089687d76b682bface705bafb5a220f929c021aaf1
|
|
| MD5 |
2754dfe758a333d842ca899f007d954d
|
|
| BLAKE2b-256 |
02c868e610763fa019f07a70e39f71bf7f394b24f7f3327b6a437cc7272ffdbf
|