In this notebook we show how to download daily precipitation data from the European Centre for Medium-Range Weather Forecasts (ECMWF). The ECMWF hosts a large amount of datasets on their Climate Data Store (CDS) platform. This includes various reanalysis datasets on a large number of weather phenomenon, as well as global forecasting products. The full list of available datasets can be found on their datasets page.
Steps for downloading the data¶
The first thing we have to do is create a ECMWF user, which gives you free access to the CDS catalog:
For this particular excercise, we will use the dataset:
If you click on the “Dataset” tab, you will see several sections that need to be filled out before you can download the data:

Year and Month¶
- Choose the year and month for which you want to download data.
Day¶
- Click “Select all” to download for all available dates of the selected month.
Time¶
This dataset contains hourly measurements, and we need all of them to compute daily statistics later on.
- Click “Select all”.
Geographical Area¶
To avoid downloading data for the entire world, which can be quite large, we want to limit the download to only the country or region that we are interested in.
- Click “Sub-region extraction”.
- Manually set the West/East/South/North extent of the region of interest. If you don’t know how to set these, there’s a simple online tool that can help:
- Go to http://
bboxfinder .com - Zoom in to the region of interest.
- Copy and insert the coordinates from the bottom of the page under “Map”, which are shown in the order of “West, South, East, North”.
- Go to http://
Data Format¶
- Select “NetCDF4”
Download format¶
- Select “Zip” to reduce the size of the download file, but either option is fine.
Terms of Use¶
- This step is important: Before you can download you have to log in with your user and manually accept the terms of reference for this dataset. This is only needed once for each dataset.
Download the data¶
If you have followed the previous steps you should be able to:
- Click the “Submit Form” button towards the bottom of the page.
- You’ll be taken to a page where you can see the status of your download request.
- Once the “Status” changes to “Complete”, you can click “Download” to download your requested file to you computer.
Next steps¶
At this point you have successfully retrieved a NetCDF file (.nc
extension) containing total precipitation data for a region of interest, for every hour in the selected month.
Note that hourly precipitation is probably too detailed for many use-uses; instead you might want to aggregate the data to daily, weekly, or monthly time period. For help getting started with aggregation, check out the Notebook tutorial for Aggregating data.