Ddlpy
API to Dutch Rijkswaterstaat archive (DDL/Waterwebservices, waterinfo.rws.nl) of monitoring water data
Install / Use
/learn @Deltares/DdlpyREADME
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.
Related Skills
tmux
349.9kRemote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.
diffs
349.9kUse the diffs tool to produce real, shareable diffs (viewer URL, file artifact, or both) instead of manual edit summaries.
terraform-provider-genesyscloud
Terraform Provider Genesyscloud
blogwatcher
349.9kMonitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.
