Implements different methods to interpolate from monthly to daily values, including fitting a polynomial.

monthly2daily(
  mval,
  method = "polynom",
  mval_prev = mval[nmonth],
  mval_next = mval[1],
  leapyear = FALSE
)

Arguments

mval

A vector of twelve numeric values for monthly values.

method

A character string specifying the method for interpolation. Defaults to "polynom" for using a polynomial.

mval_prev

The monthly value of the month before the twelve months for which values are provided by argument mval.

mval_next

The monthly value of the month after the twelve months for which values are provided by argument mval.

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.