Versions Compared

Key

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

...

Note

Please make sure that you select all the mandatory fields before submit a request.

Image Modified

The user can then currently choose between two options:

...

2) The CDS API is a service providing programmatic access in Python to ADS data. Users need to have a ADS account to use it with the related API key. For a full description and some useful examples, please see How to use the CDS API

If users have more than one CDS API key and therefore have to pass credentials in explicitly, the following method can be used:

Code Block
languagepy
import cdsapi
import yaml

with open('/path/to/ads/cdsapirc', 'r') as f:
        credentials = yaml.safe_load(f)
c = cdsapi.Client(url=credentials['url'], key=credentials['key'])

c.retrieve("dataset-short-name", 
           {... sub-selection request ...}, 
           "target-file")

...