For the time being and until further notice, ERA-Interim (1st January 1979 to 31st August 2019) shall continue to be accessible through the ECMWF Web API. ERA5 is now available from the Climate Data Store (CDS) (What are the changes from ERA-Interim to ERA5?) and users are strongly advised to migrate to ERA5 (How to download ERA5). |
Read the Conditions of Use and accept the agreement at the bottom the page.
ECMWF provides a web interface to quickly download a sample dataset for evaluation.
Please note also that the web user interface does not list all available data. For listings of all available data please see the ECMWF archive catalogue (which allows you to browse through the entire ERA-Interim archive) and the ERA-Interim documentation.
For operational data downloads you should not use the sampling web interface. Instead, you should download data using the ECMWF Web-API (with Python scripts).
Before proceeding with the steps below, users must be ECMWF registered and have their computer set up as described on How to download data via the ECMWF WebAPI (steps 1-4)
This is to verify that your computer is set up correctly.
1. Copy the following Python script to a text file and save it, for example as "test.py"
#!/usr/bin/env python from ecmwfapi import ECMWFDataServer server = ECMWFDataServer() server.retrieve({ "class": "ei", "dataset": "interim", "expver": "1", "stream": "oper", "type": "fc", "levtype": "sfc", "param": "167.128", "date": "2017-08-01/to/2017-08-03", "time": "00:00:00", "step": "3", "grid": "0.75/0.75", "area":"75/-20/10/60", "format":"netcdf", "target": "test.nc" }) |
2. Run the script. On most computers you would do this by opening a command prompt and typing
python test.py |
The test request will download data from ECMWF and save as file "test.nc" in the directory you issued the command from. The file should be around 58 KB.
previous set-up steps. If you get an error message, most likely your computer setup is wrong, or you did not accept the data license, please go back to the
Note that the data retrieval is not designed to be instant. The test request above usually takes a few minutes to complete, but depending on demand it can take longer.
If it all worked fine, you are now ready to retrieve the data you need by following the instructions below
"format"
: "netcdf"
in your script. By default, output will be in GRIB format. Notice if you retrieve forecast data in NetCDF, please be aware of this potential issue."grid"
, the horizontal resolution is in decimal degrees. For more details, see this link. If not set, the archived grid as specified in the data documentation is used."area"
as N/W/S/E in lat/lon degrees. Southern latitudes and western longitudes must be given as negative numbers, e.g., "area"
:
"75/-20/10/60"
. If you set "area", you should also add a lat/lon
grid, e.g., "grid": "1.0/1.0",
as shown in c. For more details about "area", see this link."type":"fc"
), make sure that "steps"
are specified. Note that if "type"
is set to "fc"
, then "time"
is the time of the forecast."target"
:
"CHANGEME"
,
to the desired output path and file name, e.g. "data1.nc"
or "./data/data1.grib"
. The default path is the current working directory.
To retrieve data efficiently (and get your data quicker!) you should retrieve all the data you need from one tape, then from the next tape, and so on. In most cases, this means retrieving all the data you need for one month, then for the next month, and so on. To find out what data is available on each tape, browse the ERA-Interim data catalogue and make your way until the bottom of the tree archive (where parameters are listed). Once you will have reached that level of the archive, what you see is what you can find on one single tape. See Retrieval efficiency page for more details and additional ERA-Interim script examples (e.g. daily and monthly means). |
On most computers you would do this by opening a command prompt and typing
python my_ERA-Interim_script_v1.py |
This will retrieve the data as specified and download it as a single file to your computer into the current directory (or whichever "target" directory you specified).
Note that the data retrieval is not designed to be instant. A larger request can take hours and even days to complete.
For long running processes you can check the progress of your request in your job list.
To report an issue or bug please contact Copernicus Support at ECMWF.
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). 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. |