This method allows users to download ECMWF public datasets in a programmatic way.
- If you don't have an account, please self register at https://apps.ecmwf.int/registration/ and then go to the steps below.
Retrieve you key at https://api.ecmwf.int/v1/key/
Note that the key expires in 1 year. You will receive an email to the registered email address 1 month before the expiration date with the renewal instructions. To check the expiry date of your current key log into www.ecmwf.int, then click here.
Copy the information in this page and paste it in the file $HOME/.ecmwfapirc (Unix/Linux) or %USERPROFILE%\.ecmwfapirc (Windows: usually in C:\Users\<USERNAME>\.ecmwfapirc ; see how to create a file with a leading dot)
{ "url" : "https://api.ecmwf.int/v1", "key" : "XXXXXXXXXXXXXXXXXXXXXX", "email" : "john.smith@example.com" }
Python
This version of the library provides support for both Python 2.7.x and Python 3.
For languages other than Python please see Web-API Downloads
You can install the ecmwfapi
python library by running on Unix/Linux:
sudo pip install https://software.ecmwf.int/wiki/download/attachments/56664858/ecmwf-api-client-python.tgz
or on Windows:
pip install https://software.ecmwf.int/wiki/download/attachments/56664858/ecmwf-api-client-python.tgz
If you cannot run the sudo
or pip
commands, just download the ecmwf-api-client-python.tgz. Extract its content and copy the module ecmwfapi
to a directory pointed by the environment variable PYTHONPATH
. Alternatively you can use the --user
option of pip to install it in $HOME/.local/lib
:
pip install --user https://software.ecmwf.int/wiki/download/attachments/56664858/ecmwf-api-client-python.tgz
To check the availability of ECMWF Public Datasets go to the web interface:
http://apps.ecmwf.int/datasets/
Using this interface you can discover all the ECMWF Public Datasets that are available from our archive. We strongly recommend you to to navigate through our public datasets to become familiar with their availability. You may select a Public Dataset and start navigating trough its content.
Please take into account some considerations about the content:
- Different ECMWF Public Datasets include different "parameters" , "times", and "steps"
- In each ECMWF Public Dataset not all the "parameters" are available from all "steps"
- In each ECMWF Public Dataset not all the "steps" are available from all "times"
The web interface above will help you to check and understand the availability. For any kind of selections the system will update the attributes in a dynamic way to reflect the current availability. (i.e. if you change the steps some parameters will be added or removed).
Tip
Spend some time to understand how it works, make some selections try to execute the MARS scripts.
Related articles
There is no content with the specified labels