I recently started to use ERA5 land-hourly data and python code.
I will use data of 2 variables (total precipitation and 2 metre temperature) from an entire year (2017).
Data downloaded are in GRIB or netCDF format.
The things I want to do are:
1) Convert units. In the case of:
Total precipitation - convert "m" into "mm"
2m temperature - convert "Kelvin" into "Celsius"
2) Convert hourly to daily values:
I've found the following code from ECMWF's offficial site:
https://confluence.ecmwf.int/display/CKB/ERA5%3A+How+to+calculate+daily+total+precipitation
Unfortunately, the code is designed only to compile daily values for one day
(January 1st, 2017).
I want to convert all values for an entirely year. I know that (if I'm right):