spline
and preserving monthly mean valuesR/splineInterpolateMonthlytoDaily.R
splineInterpolateMonthlytoDaily.Rd
Interpolates monthly data to daily data using spline
and preserving monthly mean values
number of days on which the daily data is requested, e.g. number of days in one year
matrix containing monthly mean data
date corresponding to the first row of the returned matrix
row corresponding the first day of time interval where montlhy mean conservation is applied
corresponding the last day of time interval where montlhy mean conservation is applied
logical value. If TRUE
no spline interpolation is calculated and the daily value corresponds to the monthly average value. Default is FALSE
.
logical value. Default is FALSE
. If TRUE
the function output is not rescaled in order to maintain observed mean monthly values.
a matrix or data frame with interpolated daily data