Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Currently the interactive CDS forms don't allow users to perform a regional subselection or an interpolation of the selected data. However, both actions can be performed using the CDS API keywords area and grid with the same syntax used by ECMWF MARS and Web API, as explained .


Expand
titleCDS API example of regional subselection and interpolation


Code Block
languagepy
import cdsapi

c = cdsapi.Client()

c.retrieve(
    'seasonal-monthly-single-levels',
    {
        'format':'grib',
        'originating_centre':'cmcc',
        'system':'3',
        'variable':'2m_temperature',
        'product_type':'monthly_mean',
        'year':'2007',
        'month':'11',
        'leadtime_month':['1','2','3','4','5','6'],
		'area' : '75/-25/10/60',
		'grid' : '2.5/2.5'
    },
    'download.grib')

More details about the syntax of area and grid in MARS/WebAPI can be found here.

Users must be aware of the following:

...