I have an ERA5 nc file of hourly precipitation from March until October for a 30-year time span. The data is from midnight to noon local time (so 4 am to 4 pm in UTC time zone). I need to find the daily sum of precipitation up until noon for each pixel. I have previously used python
daily_precipitation = ERA5.tp.resample(time='24H').sum('time')*1000
but days between October and March are also summed up, and I do not need that.
When I use cdo daysum
cdo daysum precip_hourly.nc precip_sum.nc
I get an error:
Warning: Some data values (min=-32766 max=52989) are outside the valid range (-32768 - 32767) of the used output precision!
Use the CDO option -b F32 or -b F64 to increase the output precision.
cdf_put_vara_double: name=tp type=NC_SHORT minval=-32766.000000 maxval=52989.000000
How can I overcome this error, and what is actually going wrong?