Page info | ||||||
---|---|---|---|---|---|---|
|
Note |
---|
Please be aware that the following page is relevant for the CDS API package of the current CDS system. If you are using the new CDS-Beta system, version 0.7.0 or higher of the cdsapi package is required and you must use Python3. Note that your CDS-Beta credentials must be used in your request. |
Info | ||||
---|---|---|---|---|
| ||||
|
Easy Heading Macro |
---|
Note |
---|
You only need to go through this procedure once, before you can use the CDS API on macOS to programmatically download data from either the Climate Data Store (CDS) or the Atmosphere Data Store (ADS). |
...
- You need to have a CDS or ADS account. If you don't have an account, please self register at the CDS registration page or the ADS registration, whichever is appropriate.
- You need Python
Option 1: use Python 2.
Expand title Test Python 2 and install pip If you want to use Python 2, then it should come with your macOS. Open a Terminal and type command 'python'. You should see something like 'Python 2.7.10 (default, Feb 22 2019, 21:17:52)'. Type 'Control + D' to quit.
For Python 2, run the 2 commands below to install pip:
Code Block curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python get-pip.py
Option 2: use Python 3. You are recommended to follow instructions here using Homebrew.xcode-select --install
Expand title Install Python3 through Homebrew Code Block xcode-select --install /usr/bin/rubybash -ec "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" brew install python3
- Optional: you are recommended to set up a virtual environment.
...
Info |
---|
If you are getting connection issues, we recommend that in the first instance you check your proxy settings with your local IT team. |
Info | ||
---|---|---|
| ||
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 and Contribution Agreement signed on 22/07/2021). 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. |
Related articles
Content by Label | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...