weeklyInterpolate: Interpolate LTER data to weekly

View source: R/interpolateFunctions.R

weeklyInterpolateR Documentation

Interpolate LTER data to weekly

Description

Interpolates dataframe of observations to weekly timestep at 1 m depth intervals. Uses the premise that nutrient profiles should match temperature profiles

Usage

weeklyInterpolate(
  lakeAbr,
  var,
  dataset,
  maxdepth,
  constrainMethod = "zero",
  setThreshold = 0.1,
  printFigs = FALSE
)

Arguments

lakeAbr

Lake identification, string

var

Variable of interest. Use availableVars() to see available variables.

dataset

NTL dataset with the variable of interest downloaded via loadLTER...() functions

maxdepth

Maximum depth of lake

constrainMethod

Options to constrain interpolation. Options are 'zero' (cannot go below zero, cannot go 1.5x above max, default) and 'range' (can not go beyond range of observed data)

setThreshold

Threshold of RMSE for interpolation. Use units of variable. If the function returns many predict.lm warnings, the threshold should be increased.

printFigs

Output individual profiles of interpolation? Options TRUE or FALSE (default)

Value

returns a list [[1]]: observation data [[2]]: dataframe with three columns, data, depth, and var #' @examples #Interpolate TP data NTLnutrients = loadLTERnutrients() weeklyInterpolate.1D(lakeAbr = 'ME',var = 'drp_sloh',dataset = NTLnutrients)


hdugan/NTLlakeloads documentation built on June 16, 2024, 6:59 p.m.