Implements a weather generator to simulate daily precipitation, given the monthly total and the number of days with rain for each month.

get_daily_prec(mval_prec, mval_wet, set_seed = FALSE, leapyear = FALSE)

Arguments

mval_prec

A vector of twelve numeric values for monthly values of total precipitation.

mval_wet

A vector of twelve integer values for the number of wet days in each month.

set_seed

A logical specifying whether a random seed is set.

leapyear

A logical specifying whether interpolation is done for a leap year (with 366 days).

Value

A named list of data frames (tibbles) containing input data for each site is returned.