The CDS API is a Python service that enables access to CEMS-Flood data on the CDS. It is ideal for users that retrieve large volumes of data or need to automate tasks. This page collects a number of scripts that can work as blueprints for more user-specific requests.
CDS API Installation
Instructions about the installation and set-up of the CDS API can be found in How to use the CDS API.
A user will indicate the data they wish to download by using the radio buttons on the 'Data Download' tab of their chosen dataset on the CDS. After a selection is made on the form, to generate the API request click the 'Show API request' button. This will show the python code to be used to download the data of the bottom of the form.
How to run the scripts:
You should copy the content of the script into a python file (ex: retrieve_<dataset>.py) and then launch it from a terminal:
user@host:~$ python retrieve_<dataset>.py
API script examples:
The following are some examples of API scripts to download the various CEMS-Floods datasets from the CDS.