An internal function that helps to create a time series that will
then be used by clim_calc
within ts2clm
to produce a climatology as desired by the user.
na_interp(doy = doy, x = ts_x, y = ts_y, maxPadLength)
Date-of-year as per make_whole
or make_whole_fast
.
Date as per make_whole
or make_whole_fast
.
Measurement variable as per make_whole
or make_whole_fast
.
Specifies the maximum length of days over which to
interpolate (pad) missing data (specified as NA
) in the input
temperature time series; i.e., any consecutive blocks of NAs with length
greater than maxPadLength
will be left as NA
. Set as an
integer.
The function returns the data (a data.table) in a long format.