interpolate_single: Interpolate sensor offsets for a single site

View source: R/utils.R

interpolate_singleR Documentation

Interpolate sensor offsets for a single site

Description

interpolate between stick-up heights for a single sensor

Usage

interpolate_single(x, t_bnds, change_only = T, method = "linear")

Arguments

x

a dataframe containing, at a minimum, the columns 'corrected_utc_time' and 'numeric_value'. These are the points used to perform the interpolation

t_bnds

a POSIXct vector containing values for every timestep for which an estimate of the sensor offset is desired.

change_only

logical, whether or not to return the raw stick-up height values, or to return the net change from the first reported stick-up height

method

one of ('linear', 'constant') the interpolation method to be passed to approx()

Value

a numeric vector of the same length as t_bnds which gives an interpolated sensor offset for each timestep.


geocryology/PermafrostDB documentation built on April 17, 2025, 11:54 a.m.