Dear all,
I have a problem with the units of daily total precipitation estimated from hourly data. I do not understand what conversion factor should I use to bring the accumulated daily precipitation to mm / day. Is the output in m / s? Why is the output variable in the following Toolbox code named "tprate" and what are its units?
I will greatly appreciate your help,
Best regards,
Miguel
Here is the sample Toolbox code:
import cdstoolbox as ct
@ct.application(title='Download data')
@ct.output.download()
def download_application():
total_prec = ct.catalogue.retrieve(
'reanalysis-era5-land',
{
'variable': 'total_precipitation',
'year': '1981',
'month': '01',
'day': [
'01', '02', '03',
'04', '05', '06',
'07', '08', '09',
'10', '11', '12',
'13', '14', '15',
'16', '17', '18',
'19', '20', '21',
'22', '23', '24',
'25', '26', '27',
'28', '29', '30',
'31',
],
'time': [
'00:00', '01:00', '02:00',
'03:00', '04:00', '05:00',
'06:00', '07:00', '08:00',
'09:00', '10:00', '11:00',
'12:00', '13:00', '14:00',
'15:00', '16:00', '17:00',
'18:00', '19:00', '20:00',
'21:00', '22:00', '23:00',
],
'area': [
-10, -70, -40,
-40,
],
}
)
# compute daily accumulation of precipitation
prec_daily_acc = ct.cube.resample(total_prec, freq='D', how='sum', closed='right')
return prec_daily_acc