...
The Toolbox is aimed at a wide range of users, from amateur climate enthusiasts through to students, researchers and software developers. To make use of the Toolbox, you will need a basic working knowledge of Python and access to the internet. You will not need a particularly powerful computer or a lot of storage, as the calculations and the data processing take place online within the CDS.
The CDS application page showcases the range of applications that is possible to build using the Toolbox.
The CDS Toolbox service is accessible here.
Below there are two examples relative to CEMS-Flood datasets.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
import cdstoolbox as ct @ct.application(title='Download data') @ct.output.download() @ct.output.livemap() def download_application(): data = ct.catalogue.retrieve( 'cems-glofas-historical', { 'system_version': 'version_3_1', 'hydrological_model': 'lisflood', 'product_type': 'consolidated', 'variable': 'river_discharge_in_the_last_24_hours', 'hyear': '1995', 'hmonth': 'january', 'hday': '01', } ) # update attribute to 'discharge-global' to set the GloFAS palette data =ct.cdm.update_attributes(data,attrs={'cds_magics_style_name':'discharge-global'}) # call live plot fig = ct.livemap.plot(data) return data,fig |
...