calculateDepthOfNonRootVolume: Depth of the given soil volume

View source: R/calculateDepthOfNonRootVolume.R

calculateDepthOfNonRootVolumeR Documentation

Depth of the given soil volume

Description

Given a shape and mass for the roots, calculate the depth of a specific non-root volume. A specific solution is implemented for linear root volumes, and a general solution otherwise requires the massLiveRoots.fn to be specified. The general solution is a binary search algorithm.

Usage

calculateDepthOfNonRootVolume(
  nonRootVolume.arr,
  massLiveRoots.fn = NULL,
  totalRootMassPerArea,
  rootDepthMax,
  rootDensity,
  shape = "linear",
  soilLength = 1,
  soilWidth = 1,
  relTol = 1e-04,
  verbose = FALSE,
  ...
)

Arguments

nonRootVolume.arr

a numerical array of the cumulative non-rooting volume, assumed to be monotonically increasing

massLiveRoots.fn

a function defining the mass of the live roots, if shape is not linear then this must be defined.

totalRootMassPerArea

an integer that is the total mass per area of the roots, generally in g cm-3

rootDepthMax

an integer that is the maximum root depth, generally in cm

rootDensity

a numeric that is the root density in g per cm3

shape

a character of the shape of the root distribution, currently only 'linear' is implemented

soilLength

a numeric of the unit length of soil volume, generally 1 cm

soilWidth

a numeric of the unit width of the soil column, generally 1cm

relTol

a numeric the relative tolerance accepted for the general depth solution

verbose

a boolean flag, true prints out a lot of strings to help debug the general solution

...

Value

A numeric corresponding to the depth of the specified non root volume


tilbud/rCTM documentation built on March 30, 2024, 10:06 a.m.