This knowledge base article shows you how to calculate daily total precipitation using ERA5 data.
Before you continue, make sure you read through knowledge base articles listed below:
- How to use the CDS API
- ERA5 terminology: analysis and forecast; time and steps; instantaneous and accumulated and mean rates and min/max parameters
- ERA5 data documentation
You are also supposed to know how to work with Python under Linux, in particular, how to install packages using pip. You are recommended to use the latest release of packages listed here:
- CDS API (tested with 0.1.1) - required for step 1
- netCDF4 (tested with 1.4.0) - required for step 2
- numpy (tested with 1.14.5) - required for step 2
- Use script below to download daily total precipitation ERA5 data for 1st and 2nd January 2017. This script will download total precipitation, in hourly steps, from CDS (Climate Data Store). Notice to cover total precipitation for 1st January 2017, we need two days of data.
- 1st January 2017 time = 01 - 23 will give you total precipitation data to cover 00 - 23 UTC for 1st January 2017
- 2nd January 2017 time = 00 will give you total precipitation data to cover 23 - 24 UTC for 1st January 2017
Run a second script to calculate daily total precipitation. All it does is to add up 24 values for a given day as describe in step 1.