Versions Compared

Key

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

Page info
infoTypeModified date
prefixLast modified on
typeFlat

Info
iconfalse
titleTable of Contents

Table of Contents
maxLevel1

Easy Heading Macro
navigationExpandOptioncollapse-all-but-headings-1

Introduction

The Climate Data Store (CDS) API is the service to allow users to request data from CDS datasets via a python script. These scripts use a number of keywords which vary from dataset to dataset, usually following the sections of the CDS download form.

...

Datasets name

Keywords


variableformatexperimentensemble_memberperiodmodelExample script

CMIP5 daily data on single levels:

'projections-cmip5-daily-single-levels'

'2m_temperature'

'zip''historical'

'r1i1p1'

'19750101-19991231'

'access1_3'


Code Block
languagepy
collapsetrue
import cdsapi

c = cdsapi.Client()

c.retrieve(
    'projections-cmip5-daily-single-levels',
    {
        'ensemble_member': 'r1i1p1',
        'format': 'zip',
        'experiment': 'historical',
        'variable': '2m_temperature',
        'model': 'access1_3',
        'period': '19750101-19991231',
    },
    'download.zip')


CMIP5 monthly data on single levels:

'projections-cmip5-monthly-single-levels'
'10m_wind_speed''zip''amip''r1i1p1''197901-200812''cnrm_cm5'


Code Block
languagepy
collapsetrue
import cdsapi

c = cdsapi.Client()

c.retrieve(
    'projections-cmip5-monthly-single-levels',
    {
        'ensemble_member': 'r1i1p1',
        'format': 'zip',
        'experiment': 'amip',
        'variable': '10m_wind_speed',
        'model': 'cnrm_cm5',
        'period': '197901-200812',
    },
    'download.zip')


CMIP5 daily data on pressure levels:

'projections-cmip5-daily-pressure-levels'
'u_component_of_wind''zip''historical''r1i1p1''20050101-20051231''access1_0'


Code Block
languagepy
collapsetrue
import cdsapi

c = cdsapi.Client()

c.retrieve(
    'projections-cmip5-daily-pressure-levels',
    {
        'ensemble_member': 'r1i1p1',
        'format': 'zip',
        'experiment': 'historical',
        'variable': 'u_component_of_wind',
        'model': 'access1_0',
        'period': '20050101-20051231',
    },
    'download.zip')


CMIP5 monthly data on pressure levels:

'projections-cmip5-monthly-pressure-levels'
'u_component_of_wind''tgz''rcp_2_6''r3i1p1''200601-210012''ipsl_cm5a_lr'


Code Block
languagepy
collapsetrue
import cdsapi

c = cdsapi.Client()

c.retrieve(
    'projections-cmip5-monthly-pressure-levels',
    {
        'ensemble_member': 'r3i1p1',
        'format': 'tgz',
        'experiment': 'rcp_2_6',
        'variable': 'u_component_of_wind',
        'model': 'ipsl_cm5a_lr',
        'period': '200601-210012',
    },
    'download.tar.gz')



Info
iconfalse

This document has been produced in the context of the Copernicus Climate Change Service (C3S).

The activities leading to these results have been contracted by the European Centre for Medium-Range Weather Forecasts, operator of C3S on behalf of the European Union (Delegation agreement signed on 11/11/2014). All information in this document is provided "as is" and no guarantee or warranty is given that the information is fit for any particular purpose.

The users thereof use the information at their sole risk and liability. For the avoidance of all doubt, the European Commission and the European Centre for Medium-Range Weather Forecasts have no liability in respect of this document, which is merely representing the author's view.

Content by Label
showLabelsfalse
max5
spacesCKB
showSpacefalse
sorttitle
reversetrue
typepage
cqllabel in ("cds","cds-api") and type = "page" and space = "CKB"
labelsdata C3S cams