view test-data/req.txt @ 0:b768e517a7d0 draft default tip

"planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/cads commit 778688ee8d14e22b00b648858ad9bd1c2f46b1e0"
author climate
date Sat, 19 Jun 2021 18:35:50 +0000
parents
children
line wrap: on
line source

import cdsapi

c = cdsapi.Client()

c.retrieve(
    'cams-europe-air-quality-forecasts',
    {
        'variable': 'nitrogen_dioxide',
        'model': 'ensemble',
        'level': '0',
        'date': '2021-06-16/2021-06-16',
        'type': 'analysis',
        'time': '00:00',
        'leadtime_hour': '0',
        'format': 'netcdf',
        'area': [
            59.96, 10.66, 59.87,
            10.9,
        ],
    },
    'download.nc')