
Fills parameters from inventory data
Source:R/fill_inventory_traits.R
fill_medfate_inventory_traits.RdExtracts 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
forestobjects, 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 intreeDatatables but not inshrubDatatables, then growth form will be"Tree".Hmax: Maximum tree/shrub height (cm), according to the `Height` column intreeDataorshrubDataandquantile_Hmaxparameter.Hmed: Median tree/shrub height (cm), according to the `Height` column intreeDataorshrubDataandquantile_Hmedparameter.fHDmin, fHDmax: Minimum or maximum height to diameter ratio for trees, according to the `Height` and `DBH` columns intreeDataandquantile_fHDminorquantile_fHDmaxparameters, respectively.