soil_to_param {LWFBrook90R}R Documentation

Split up soil into materials and soil nodes.

Description

Split up soil into materials and soil nodes.

Usage

soil_to_param(soil, imodel = "MvG")

Arguments

soil

Data.frame with soil layer boundaries ('upper', 'lower') and hydraulic parameters. When imodel = 'MvG', columns of soil have to be named 'ths', 'thr', 'alpha', 'npar', 'ksat', 'tort', 'gravel'. When imodel = 'CH', columns have to be named thsat , 'thetaf','psif', 'bexp','kf', 'wetinf', 'gravel'.

imodel

Name of the hydraulic model ('MvG' or 'CH')

Value

a list with data.frames 'soil_nodes' and 'soil_materials'

Examples

data(slb1_soil)
soil <- slb1_soil
soil <- cbind(soil, hydpar_wessolek_tab(soil$texture))
str(soil)

soil_layers_materials <- soil_to_param(soil)
soil_layers_materials

[Package LWFBrook90R version 0.5.3 Index]