Rain/snow are summed, everything else averaged; Date is returned as
class Date, which is what lake-model builders such as
AEME::build_aeme() expect.
Examples
h <- data.frame(Date = seq(as.POSIXct("2024-01-01", tz = "UTC"),
by = "hour", length.out = 48),
MET_tmpair = rnorm(48, 15), MET_pprain = 0.1)
met_to_daily(h)
#> Date MET_tmpair MET_pprain
#> 1 2024-01-01 14.91357 2.4
#> 2 2024-01-02 15.14154 2.4
