Function forest2swbInput
takes an object of class forest
to calculate input variables for swb
. Function swbInput
does the same from input vectors.
forest2swbInput(x, SpParams, d, gdd = NA, petMode = "Input", hydraulicMode = "Simple")
swbInput(SP, LAI, H, CR, V, SpParams, petMode = "Input", hydraulicMode = "Simple")
An object of class forest
.
A data frame with species parameters (see SpParamsMED
and SpParamsMED
).
A vector containing the depth of each soil layer.
Growth degree days to account for leaf phenology effects (in Celsius).
Potential evapotranspiration mode (either 'Input' or 'PenmanMonteith').
Hydraulic model (either 'Simple' or 'Sperry').
An integer vector of plant cohort species identity (first species is 0).
A numeric vector (same length as SP
) with plant cohort leaf area index (one-side leaf area relative to plot area).
A numeric vector (same length as SP
) with plant cohort total heights (in cm).
A numeric vector (same length as SP
) with plant cohort crown ratio values (between 0 and 1).
A numeric matrix (with three columns and as many rows as the length as SP
) containing the proportion of roots of each plant in each soil layer.
A data frame with the following columns (additional columns will difer depending on the value of hydraulicMode
and petMode
):
LAI
: Leaf area index (in m2/m2).
SP
: Species identity (an integer).
H
: Plant height (in cm).
V.1
, V.2
, V.3
: The proportion of fine roots in each layer.
RC_min
: Minimum canopy (stomatal) resistance (in s/m) (for petMode = "PenmanMonteith"
).
psiExtr
: Water potential corresponding to 50% relative conductance (in kPa) (for hydraulicMode = "Simple"
).
VC_kxmax
: Maximum hydraulic conductance (in L/m2/day) (for hydraulicMode = "Sperry"
).
VC_c
, VC_d
: Parameters of the vulnerability curve (for hydraulicMode = "Sperry"
).
k
: PAR extinction coefficient.
g
: Canopy water retention capacity per LAI unit (mm/LAI).
CR
: Crown ratio (crown length to total height).
Sgdd
: Growth degree days needed for leaf budburst (for winter decideous species).
Transpiration
: Plant cohort transpiration (filled with zeroes before simulations).
Function forest2swbInput
extracts height and species identity from plant cohorts of x
. For each plant cohort also calculates leaf area index and the distribution of fine roots across soil. Both forest2swbInput
and swbInput
find parameter values for each plant cohort according to the parameters of its species as specified in SpParams
.
# NOT RUN {
#Load example plot plant data
data(exampleforest)
#Default species parameterization
data(SpParamsMED)
#Initialize soil with default soil params
s = soil(defaultSoilParams())
#Prepare input
swbInput = forest2swbInput(exampleforest,SpParamsMED, s$dVec)
# }
Run the code above in your browser using DataLab