weeklyTempInterpolate: Interpolate temperature data to weekly

View source: R/interpolateTempFunctions.R

weeklyTempInterpolateR Documentation

Interpolate temperature data to weekly

Description

Interpolates dataframe of observations to weekly timestep at 1 m depth intervals. Uses simple linear interpolation

Usage

weeklyTempInterpolate(
  lakeAbr,
  maxdepth,
  dataset = LTERtemp,
  constrainMethod = "zero"
)

Arguments

lakeAbr

Lake identification, string

maxdepth

Maximum depth of lake

dataset

temperature dataset. Default woudl be LTERtemp loaded via loadLTERtemp()

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)

Value

returns a list [[1]]: observation data [[2]]: dataframe with three columns, data, depth, and var #' @examples #Interpolate temp data LTERtemp = loadLTERtemp() weeklyTempInterpolate(lakeAbr = 'ME', maxdepth = 24, dataset = LTERtemp)


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