Learn R Programming

medfate (version 0.8.2)

spwbInput: Input for simulation models

Description

Functions forest2spwbInput and forest2growthInput take an object of class forest and calculate input data for functions spwb, pwb and growth, respectively. Functions spwbInput and growthInput does the same from input data. Function forest2aboveground calculates aboveground variables that may be used in spwbInput and growthInput functions. Similarly, function forest2belowground calculates belowground root distribution that may be used in spwbInput and growthInput functions.

Usage

forest2aboveground(x, SpParams, gdd = NA)
forest2belowground(x, soil, SpParams)
forest2growthInput(x, soil, SpParams, control)
forest2spwbInput(x, soil, SpParams, control)
growthInput(above,  Z, V,  soil, SpParams, control)
spwbInput(above,  V,  soil, SpParams, control)

Arguments

x

An object of class forest.

SpParams

A data frame with species parameters (see SpParamsMED and SpParamsMED).

gdd

Growth degree days to account for leaf phenology effects (in Celsius). This should be left NA in most applications.

soil

An object of class soil.

control

A list with default control parameters (see defaultControl).

above

A data frame with aboveground plant information (see the return value of forest2aboveground below). In the case of spwbInput the variables should include SP, LAI_live, LAI_dead, H and CR.

Z

A numeric vector with cohort rooting depths (in cms).

V

A numeric matrix (with as many columns as soil layers and as many rows as the length as SP) containing the proportion of roots of each plant in each soil layer.

Value

Function forest2aboveground returns a data frame with the following columns (rows are identified as specified by function plant_ID):

  • SP: Species identity (an integer) (first species is 0).

  • N: Cohort density (ind/ha) (see function plant_density).

  • DBH: Tree diameter at breast height (cm).

  • H: Plant total height (cm).

  • CR: Crown ratio (crown length to total height) (between 0 and 1).

  • LAI_live: Live leaf area index (m2/m2) (one-side leaf area relative to plot area).

  • LAI_dead: Dead leaf area index (m2/m2) (one-side leaf area relative to plot area).

Functions forest2spwbInput and spwbInput return a list of class spwbInput with the following elements (rows of data frames are identified as specified by function plant_ID):

  • control: List with control parameters (see defaultControl).

  • cohorts: A data frame with cohort information, with columns SP and Name.

  • above: A data frame with columns H, CR and LAI (see function forest2aboveground).

  • below: A list. If control$transpirationMode = "Granier" it contains a single element:

    • V: A matrix with the proportion of fine roots of each cohort (in rows) in each soil layer (in columns).

    If control$transpirationMode = "Sperry" there are the following additional elements:
    • VGrhizo_kmax: A matrix with maximum rhizosphere conductance values of each cohort (in rows) in each soil layer (in columns).

    • VGroot_kmax: A matrix with maximum root xylem conductance values of each cohort (in rows) in each soil layer (in columns).

  • paramsBase: A data frame with columns:

    • k: PAR extinction coefficient.

    • g: Canopy water retention capacity per LAI unit (mm/LAI).

    • Sgdd: Growth degree days needed for leaf budburst (for winter decideous species).

  • paramsTransp: A data frame with transpiration parameters. If control$transpirationMode = "Granier", columns are:

    • Psi_Extract: Water potential corresponding to 50% relative conductance (in MPa).

    • WUE: Water use efficiency for carbon assimilation (g C/mm water).

    If control$transpirationMode = "Sperry" columns are:
    • Gwmax: Maximum stomatal conductance to water vapor (in mol H2O<U+00B7>m-2<U+00B7>s-1).

    • Vmax298: Maximum Rubisco carboxilation rate at 25<U+00BA>C (in micromol CO2<U+00B7>s-1<U+00B7>m-2).

    • Jmax298: Maximum rate of electron transport at 25<U+00BA>C (in micromol photons<U+00B7>s-1<U+00B7>m-2).

    • VCroot_c, VCroot_d: Parameters of the root xylem vulnerability curve.

    • xylem_kmax: Sapwood-specific hydraulic conductivity of stem xylem (in kg H2O<U+00B7>s-1<U+00B7>m-2).

    • VCstem_kmax: Maximum stem xylem conductance values of each cohort.

    • VCstem_c, VCstem_d: Parameters of the stem xylem vulnerability curve.

  • Transpiration: Plant cohort transpiration of the current day (mm of water = L/m2; filled with zeroes before simulations).

  • Photosynthesis: Plant cohort photosynthesis of the current day (g C/m2; filled with zeroes before simulations).

Functions forest2growthInput and growthInput return a list of class growthInput with the same elements as spwbInput, but with additional information.

  • Element above includes the following additional columns:

    • LA_live: Live leaf area per individual (m2/ind).

    • LA_dead: Dead leaf area per individual (m2/ind).

    • SA: Live sapwood area per individual (cm2/ind).

  • paramsGrowth: A data frame with columns:

    • SLA:Specific leaf area (mm2/mg = m2/kg).

    • Al2As: Leaf area to sapwood area ratio (in m2<U+00B7>m-2).

Details

Functions forest2spwbInput and forest2abovegroundInput extracts height and species identity from plant cohorts of x, and calculate leaf area index and crown ratio.forest2spwbInput also calculates the distribution of fine roots across soil. Both forest2spwbInput and spwbInput find parameter values for each plant cohort according to the parameters of its species as specified in SpParams. If control$transpirationMode = "Sperry" the functions also estimate the maximum conductance of rhizosphere, root xylem and stem xylem elements.

See Also

spwb, soil, forest, SpParamsMED, defaultSoilParams, plant_ID

Examples

Run this code
# NOT RUN {
#Load example plot plant data
data(exampleforest)

#Default species parameterization
data(SpParamsMED)

# Aboveground parameters
above = forest2aboveground(exampleforest, SpParamsMED)
above

# Initialize soil with default soil params
examplesoil = soil(defaultSoilParams())

# Belowground parameters
below = forest2belowground(exampleforest, examplesoil, SpParamsMED)
below

# Initialize control parameters
control = defaultControl()

# Prepare spwb input
spwbInput(above, below, examplesoil,SpParamsMED, control)

# When starting from an object of class 'forest' the whole process
# can be simplified:
forest2spwbInput(exampleforest, examplesoil, SpParamsMED, control)


# Prepare input for complex transpiration mode
control$transpirationMode = "Sperry"
forest2spwbInput(exampleforest,examplesoil,SpParamsMED, control)

# }

Run the code above in your browser using DataLab