setmodDepths: Extract modelled temperature at observation depths

Description Usage Arguments Value

View source: R/setmodDepths.R

Description

Interpolates linearly ( or cubic spline) between model temperatures and extracts modelled temperatures at the same depths as observed temperatures or at specified depths.

Usage

1
2
setmodDepths(mod.val, mod.dep, obs = NULL, depths, method = "linear",
  print = T)

Arguments

mod.val

dataframe of modelled values loaded using load.3d

mod.dep

dataframe of depths of corresponding modelled values loaded using load.depths and corrected using normDepths()

obs

dataframe of observations loaded in using load_obs. Default = NULL

depths

vector; Depths at which to extract observed temperature (negative). Used instead of extracting depths from obs dataframe.

method

character determining method for extracting depths at interpolated temperatures. Either linear interpolation or cubic spline. Defaults to linear.

print

logical; Print a progress bar to the console. Defaults to TRUE

Value

data frame in the long format the same as load.obs(). With modelled values at the same depths as observed values.


tadhg-moore/gotmtools documentation built on Oct. 9, 2019, 2:48 p.m.