Versions Compared

Key

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

...

  1. Login to CDS and copy the 2 line code displayed on this page. The code shows a url and your own uid:API key.
  2. Paste the 2 line code into a  %USERPROFILE%\.cdsapirc file, where in your windows environment, %USERPROFILE% is usually located at C:\Users\Username folder). For instructions on how to create a dot file on Windows, please see here.
  3. Install the CDS API client by running the following command in a Command Prompt window:       pip install cdsapi     (or try pip install --user cdsapi)
  4. Once the CDS API client is installed, it can be used to request data from the datasets listed in the CDS catalogue. It is necessary to agree to the Terms of Use of every datasets that you intend to download. Attached to each dataset download form, the "Show API request" button displays the python code to be used. Examples are also shown here.

If you are getting connection issues, we recommend that in the first instance you check your proxy settings with your local IT team.

For those using Ubuntu on Windows, installing pyopenssl might help e.g. pip install pyopenssl

Content by Label
showLabelsfalse
max5
spacesCKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "cds" and type = "page" and space = "CKB"
labelscds

...