extractDepths: Extract values at a depth or series of depths

Description Usage Arguments Value

View source: R/extractDepths.R

Description

Extracts a variable at a certain depth or series of depths from netCDF or from text output

Usage

1
2
extractDepths(mod.val, mod.dep, ncdf = NULL, var = NULL,
  depths = NULL, 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

ncdf

filepath; Name of the netCDF file to extract variable

var

character; Name of the variable to be extracted. Must match short names in the netcdf file. Use list_vars() to view variables

depths

vector of depth(s) for which to extract the value at

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 selected depths.


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