fit_function {neonSoilFlux} | R Documentation |
Internal function that interpolates a soil measurement to different depths
Description
Definition function. Linearly interpolate a measurement across the different measurement depths
Usage
fit_function(
input_depth,
input_value,
input_value_err,
input_value_qf,
interp_depth,
measurement_special
)
Arguments
input_depth |
Required. Vector of measurement depths. |
input_value |
Required. Vector of measured values (i.e. soil temperature and soil water) measured at depths input_depth |
input_value_err |
Required. Vector or reported measurement errors. Used to compute prediction error (via quadrature) when linear interpolation is used. |
input_value_qf |
Required. Vector of qf values from the smoothing 0 = no smoothing, 1 = mean value used (smoothing), 2 = NA value |
interp_depth |
Depths of the sensors required for interpolation |
measurement_special |
Flag if we want to just do linear interpolation for a given measurement |
Value
A data frame of the depth and the measured column for the measurements and reported error
Author(s)
John Zobitz zobitz@augsburg.edu based on code developed by Edward Ayres eayres@battelleecology.org