surrogate_to_analyte_interpolation {realTimeloads} | R Documentation |
Interpolate timeseries x(tx) onto y(ty)
Description
Interpolate timeseries x(tx) onto y(ty) with temporal threshold on interpolation
Usage
surrogate_to_analyte_interpolation(tx, x, ty, y, threshold)
Arguments
tx |
time for x "surrogate" (time, POSIXct) |
x |
quantity used to estimate y, for example, accoustic backscatter |
ty |
time for y "analyte" (time, POSIXct) |
y |
measured quantity, for example, an analyte such as suspended-sediment concentration |
threshold |
maximum duration where interpolation is allowed (minutes) |
Value
a data frame with surrogate (x) interpolated onto timestep of analyte (y), interpolated values exceeding threshold are excluded from the output
Author(s)
Daniel Livsey (2023) ORCID: 0000-0002-2028-6128
Examples
tx <- as.POSIXct(seq(0,24*60^2,60*1), origin = "2000-01-01",tz = "Australia/Brisbane")
x <- sin(1:length(tx))
ty <- as.POSIXct(seq(0,24*60^2,60*15), origin = "2000-01-01",tz = "Australia/Brisbane")
y <- seq(0,24*60^2,60*15)
threshold <- 10
calibration <- surrogate_to_analyte_interpolation(tx,x,ty,y,threshold)
[Package realTimeloads version 1.0.0 Index]