Fills parameters from inventory data
Source:R/fill_inventory_traits.R
fill_medfate_inventory_traits.Rd
Extracts species parameter values from forest inventory data
Usage
fill_medfate_inventory_traits(
SpParams,
x,
quantile_Hmed = 0.5,
quantile_Hmax = 0.99,
quantile_fHDmin = 0.05,
quantile_fHDmax = 0.95,
progress = TRUE,
verbose = FALSE
)
Arguments
- SpParams
A species parameter data frame to be filled.
- x
A list of
forest
objects, or a data frame with a column calledforest
, whose elements are of classforest
.- quantile_Hmed
Quantile for Hmed
- quantile_Hmax
Quantile for Hmax
- quantile_fHDmin
Quantile for fHDmin
- quantile_fHDmax
Quantile for fHDmax
- progress
A boolean flag to prompt progress.
- verbose
A boolean flag to indicate extra console output.
Details
This function fills information of the species parameter table from the data of the target forest inventory where simulations are to be conducted. Matching is performed between `Species` of the forest inventory data and `Name` of the species parameter table. The following information is extracted:
GrowthForm
: Growth form according to the usage in the forest inventory. For example, if the species is cited intreeData
tables but not inshrubData
tables, then growth form will be"Tree"
.Hmax
: Maximum tree/shrub height (cm), according to the `Height` column intreeData
orshrubData
andquantile_Hmax
parameter.Hmed
: Median tree/shrub height (cm), according to the `Height` column intreeData
orshrubData
andquantile_Hmed
parameter.fHDmin, fHDmax
: Minimum or maximum height to diameter ratio for trees, according to the `Height` and `DBH` columns intreeData
andquantile_fHDmin
orquantile_fHDmax
parameters, respectively.