ERA5 data is available through two platforms:
- From the Copernicus Climate Change Service's Climate Data Store (CDS). The CDS provides the most commonly requested ERA5 data in an easily accessible way. See the CDS for further information.
- From the ECMWF WebAPI, as described below. Trough the ECMWF WebAPI all ERA5 data is available.
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).
1. Learn about ERA5 data
- Read What is ERA5.
- Browse the ERA5 catalogue and make sure the data you are interested in is available in ERA5. A demonstration is available as part of the video tutorial below:
Full Transcript (pdf)
- Read the ERA5 data documentation and take note of the parameters (fields) you want to use, and of the corresponding values for data type, stream, level type (surface, pressure levels, model levels, etc) base time and forecast steps.
2. Copernicus License agreement
Read the Copernicus data license and accept it at the bottom of the page.
3. Run an ERA5 test retrieval script
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"
2. Run the script. On most computers you would do this by opening a command prompt and typing
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 690 KB.
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.
4. Create your data retrieval script
- As a starting point, browse the ERA5 catalogue for the data you are interested in, and in the last step make a selection in all boxes and click "View the MARS request" and make sure the Python Script tab is displayed. This shows a template Python script with your selected options.
- Copy the template Python script to a text file and save it, for example as 'my_ERA5_script_v1.py'.
- Adapt the template Python script to your requirements, taking the following remarks into account:
- In most cases, you will have to add lat/lon "grid" in your script, e.g., "grid": "1.0/1.0". This will enable you to download data on a regular lat/lon grid. And this is necessary if you download the data in NetCDF format.
- For an output in NetCDF format, add
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.
- If you specify
, 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.
- If you do not want global data, you can add
as N/W/S/E in lat/lon degrees. Southern latitudes and western longitudes must be given as negative numbers, e.g.,
. If you set "area", you should also
add a lat/lon
as shown in c. this link.
grid, e.g., "grid": "1.0/1.0",
- If you are retrieving forecast data (
), make sure that
are specified. Note that if
is set to
is the time of the forecast.
,to the desired output path and file name, e.g.
"./data/data1.grib". The default path is the current working directory.
For ERA5 ensemble data, the 'number' field identifies the 10 ensemble members.
5. Run your data retrieval script
On most computers you would do this by opening a command prompt and typing
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.