Finds rootDist for the soilML function

Usage

rootDist(layers, rootDepth, depthsp, rfl)

Arguments

layers
Integer used to specify number of soil layers, should be greater than 2
rootDepth
depth of the root in soil
depthsp
represents vaule of the sequence depths in soilML
rfl
Root factor lambda. A Poisson distribution is used to simulate the distribution of roots in the soil profile and this parameter can be used to change the lambda parameter of the Poisson.

Description

This function returns a value for rootDist based on the arguments layers, rootDepth, depthsp, and rfl. This value then factors into several equations in the primary function soilML.