The Atmosphere Data Store (ADS) will soon become the only source for access to CAMS datasets and updates, users need to migrate to ADS as soon as possible. The CDS API is a service providing programmatic access to ADS data.
This article describes how to switch to using the CDS API for Copernicus Atmosphere Monitoring Service (CAMS) data users. This is the programmatic way of downloading data from the Atmosphere Data Store (ADS).
The ADS also offers an interactive way of downloading the CAMS data through its web interface ("Download Data tab").
Before the release of Copernicus Atmosphere Monitoring Service (CAMS) Atmosphere Data Store (ADS) in March 2020, CAMS datasets were made available through various means depending on data host (e.g. Global CAMS analysis and forecast data hosted at the ECMWF data server and made available though the ECMWF Web API, the programmatic way of retrieving data; European air quality forecast or analysis data through www.regional.atmosphere.copernicus.eu and download.regional.atmosphere.copernicus.eu; etc...)
As the Atmosphere Data Store (ADS) will soon become the only source for access to CAMS datasets and updates, users need to migrate to ADS as soon as possible. The CDS API is a service providing programmatic access to ADS data.
- Python and pip: You are expected to have at least some basic understanding of Python and in particular know how to install packages on your local machine using pip.
- Install the CDS API:
- You are recommended to use the latest release of packages: CDS API and see the following page for more details: https://ads.atmosphere.copernicus.eu/api-how-to
ADS account - If you do not yet have a ADS account, please create one HERE.
We have had some problems with mail servers rejecting address confirmation emails from the ADS. We are working on this but if you register on the site and don't receive the registration email, please contact the User Support Team and we will authorise your address manually.
- Data licence - Before you may download any data from the ADS, you need to have accepted the Terms and Conditions of the dataset of choice. Further details below on how to do this.
Steps to accept data licence and generate a basic API script using the ADS web interface:
- Go to the CAMS atmosphere data store (ADS)
- On the top menu bar, click on 'Datasets'
- On the left-hand side menu, expand 'Product type' and select Product type of interest (e.g. "Analysis", "Forecast", "Reanalysis")
- Follow the dataset title link of interest to the full dataset record
- Accept dataset licence and generate basic API script
The full dataset record includes:
- Overview tab. This gives a description of the selected dataset and metadata information (e.g. spatial details, file format, variables, etc).
- Documentation tab. This provides links to detailed documentation about the dataset.
- Download data tab. This is a Download data web form. Using this web interface, you can:
- make selections as per your requirements
- submit your request online (you will need to login if not already logged in)
Tip: Upon submitting the download form, you will be prompted to accept the data licence (if you have not yet accepted it)! Please note that whether you are downloading the data through the web interface or through the CDS API, you must accept the data licence.
- display the API script which corresponds to your selection, by clicking on the "Show API request" button.
At this stage, you can test that CDS API is working for you simply by using the basic API request script generated by the ADS Download data web form. Copy this script to a file on your local system and run it using the version of python you installed the CDS API into.
If you are encountering difficulties retrieving the data using your basic API script, please contact the User Support with a copy of your API script and any error messages that you may have received.