hyet_uch uses an hyetograph, single or grouped (i.e. from hyet_split) and creates the corresponding UCHs. Returns an error if hyet is not a valid hyetograph.

hyet_uch(hyet, time_step, ts_unit)

Arguments

hyet

an hyetograph from hyet_create function.

time_step

a numeric value that represents the time-step.

ts_unit

a character string specifying the time unit. Valid values are "mins" and "hours".

Value

a tibble with start and end time, precipitation height, mean intensity and duration, Huff's quartile classification and the unitless cumulative precipitation for every 1 linear interpolation.

Note

missing date values must be set explicit using the hyet_fill function if a single hyetograph is used. hyet_split returns filled storms.

References

Bonta, J. V. (2004). Development and utility of Huff curves for disaggregating precipitation amounts. Applied Engineering in Agriculture, 20(5), 641.

Huff, F. A. (1967). Time distribution of rainfall in heavy storms. Water Resources Research, 3(4), 1007-1019.

Examples

# create time series with 30 mins time step time_step <- 30 ts_unit <- "mins" len <- 12 hyet <- tibble::tibble( date = seq( from = as.POSIXct(0, origin = "2018-01-01 00:00:00", tz = "UTC"), length.out = len, by = paste(time_step, "mins") ), prec = c(1.1, 2.3, 3.2, 1.9, 4.1, 5.9, 2.5, 3.1, 2.9, 1.2, 0.5, 0.2) ) # create uch uch <- hyet %>% hyet_uch(time_step, ts_unit)