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. This package provides an API for Python. 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 HOEKVHLD
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?
Check the status of the DDL (at the Updates heading). If you have a suggestion or found a bug in ddlpy, please create an issue.
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
Built Distribution
File details
Details for the file rws_ddlpy-0.6.0.tar.gz
.
File metadata
- Download URL: rws_ddlpy-0.6.0.tar.gz
- Upload date:
- Size: 43.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30bdcba81db5f1ab4df9fb7decdcbf18d7c38a07fdbc0b934dfb605fdcb3f5d5 |
|
MD5 | b82a43534d9a7f87c348cf213f25f88f |
|
BLAKE2b-256 | 41a0c78da1c61bb39a60f88dfffc737012fe64dedb277343ea8569edcc4fdf07 |
File details
Details for the file rws_ddlpy-0.6.0-py3-none-any.whl
.
File metadata
- Download URL: rws_ddlpy-0.6.0-py3-none-any.whl
- Upload date:
- Size: 28.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 957db88adea770e26d761cf663ff13b837d09dffd80afee9415ef3970f5c23db |
|
MD5 | 7080b1631f4237aa3808dea4079db941 |
|
BLAKE2b-256 | f03647a70f1fb9aae56feea12a1562f1a7c9f12458f9407dfe4876e26d0c56f2 |