Learn R Programming

medfate (version 4.7.0)

forest2aboveground: Input for simulation models (deprecated)

Description

Functions forest2spwbInput() and forest2growthInput() take an object of class forest and a soil data input to create input objects for simulation functions spwb (or pwb) and growth, respectively. Function forest2aboveground() calculates aboveground variables such as leaf area index. Function forest2belowground() calculates belowground variables such as fine root distribution.

Usage

forest2aboveground(x, SpParams, gdd = NA_real_, loading = FALSE)

forest2belowground(x, soil, SpParams)

forest2spwbInput(x, soil, SpParams, control)

forest2growthInput(x, soil, SpParams, control)

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), includes leaves in winter dormant buds.

  • LAI_expanded: Leaf area index of expanded leaves (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).

  • Loading: Fine fuel loading (kg/m2), only if loading = TRUE.

Arguments

x

An object of class forest.

SpParams

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

gdd

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

loading

A logical flag to indicate that fuel loading should be included (for fire hazard calculations).

soil

An object of class data.frame or soil, containing soil parameters per soil layer.

control

A list with default control parameters (see defaultControl).

Author

Miquel De Cáceres Ainsa, CREAF

Details

Function forest2aboveground() extracts height and species identity from plant cohorts of x, and calculate leaf area index and crown ratio.

IMPORTANT NOTE: Function names forest2spwbInput() and forest2growthInput() are now internal and deprecated, but they can still be used for back-compatibility. They correspond to functions spwbInput and growthInput

See Also

spwbInput, soil, forest, SpParamsMED, defaultSoilParams, plant_ID

Examples

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

#Default species parameterization
data(SpParamsMED)

# Aboveground parameters
forest2aboveground(exampleforest, SpParamsMED)

# Example of aboveground parameters taken from a forest
# described using LAI and crown ratio
data(exampleforest2)
forest2aboveground(exampleforest2, SpParamsMED)

# Define soil with default soil params (4 layers)
examplesoil <- defaultSoilParams(4)

# Bewowground parameters (distribution of fine roots)
forest2belowground(exampleforest, examplesoil, SpParamsMED)


Run the code above in your browser using DataLab