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). |
Option 1: use Python 2.
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:
|
Option 2: use Python 3. You are recommended to follow instructions here using Homebrew.xcode-select --install
|
Python 3 comes up with this feature. For Python 2, you may want to use Virtualenv. This is out of the scope of this knowledge base article.
Create your key file in your home directory in your Terminal window as follows:
touch ~/.cdsapirc |
Install the CDS API client using pip, by running the following command in your Terminal window:
pip install cdsapi |
If you are getting connection issues, we recommend that in the first instance you check your proxy settings with your local IT team. |
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.
|