forest2aboveground | R Documentation |
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.
forest2aboveground(x, SpParams, gdd = NA_real_, loading = FALSE)
forest2belowground(x, soil, SpParams)
forest2spwbInput(x, soil, SpParams, control)
forest2growthInput(x, soil, SpParams, control)
x |
An object of class |
SpParams |
A data frame with species parameters (see |
gdd |
Growth degree days to account for leaf phenology effects (in Celsius). This should be left |
loading |
A logical flag to indicate that fuel loading should be included (for fire hazard calculations). |
soil |
An object of class |
control |
A list with default control parameters (see |
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
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
.
Miquel De Cáceres Ainsa, CREAF
spwbInput
, soil
,
forest
, SpParamsMED
, defaultSoilParams
, plant_ID
#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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.