forest_parametrization {medfateland} | R Documentation |
Landscape forest parametrization
Description
Utility functions to define forest inputs in a landscape:
impute_forests()
performs imputation of forest objects from a forest inventory using a forest map to match forest types and topography as covariates.modify_forest_structure()
uses forest structure rasters supplied by the user to correct forest structure metrics.check_forests()
checks that forests are defined and do not contain missing values in key tree/shrub attributes.
Usage
impute_forests(
x,
sf_fi,
dem,
forest_map,
var_class = NA,
max_distance_km = 100,
replace_existing = FALSE,
missing_class_imputation = FALSE,
missing_class_forest = NULL,
merge_trees = TRUE,
merge_shrubs = TRUE,
progress = TRUE
)
modify_forest_structure(
x,
structure_map,
variable,
map_var = NA,
ratio_limits = NULL,
minDBH = 7.5,
progress = TRUE
)
check_forests(x, progress = FALSE)
Arguments
x |
An object of class |
sf_fi |
An object of class |
dem |
A digital elevation model (class |
forest_map |
An object of class |
var_class |
Variable name or index containing forest classes in |
max_distance_km |
Maximum distance, in km, for forest inventory plot imputation. |
replace_existing |
A logical flag to force the replacement of existing |
missing_class_imputation |
A logical flag to force imputation in locations where forest class is not defined. If |
missing_class_forest |
A |
merge_trees |
A logical flag to simplify tree cohorts by merging tree records in DBH classes (see |
merge_shrubs |
A logical flag to simplify shrub cohorts by merging shrub records in height classes (see |
progress |
A logical flag to print console output. |
structure_map |
An object of class |
variable |
Structural variable to correct. See options in details. |
map_var |
Variable name or index containing structural variable in 'structure_map'. If missing the first column is taken. |
ratio_limits |
Limits for ratio of variable in corrections, used to avoid outliers. |
minDBH |
Minimum diameter for stand metric calculation. If |
Details
Function impute_forests()
performs imputation of forest inventory plots on target locations provided that
they correspond to the same forest class, defined in the input forest map, and are geographically closer than a distance threshold (max_distance_km
).
Among the multiple stands that can have fulfill these two requirements, the function chooses the one that has the most similar elevation
and position in the N-to-S slopes (i.e. the product of the cosine of aspect and slope). Both topographic
features are standardized to zero mean and unit standard deviation (using the supplied digital elevation model to calculate those metrics), to make their
weight on the imputation equal. This imputation method will be more or less successful depending on the resolution of forest classes and
the number of forest inventory plots available for each of them. Additionally, tree and shrub cohorts can be simplified after imputation (merge_trees
and merge_shrubs
),
to reduce the number of records (and hence, speed-up simulations).
Function modify_forest_structure()
can be used to modify specific structure variables of the imputed forests
building on rasters supplied by the user (typically from aerial or satellite LiDAR products). For any given metric,
the function will calculate the ratio of the structure metric between the target forest
object (see stand_basalArea
)
and the input map in the target location. Options for structural variables are the following:
mean_tree_height
: Should contain values in cm. Corrects tree heights and diameters (assuming a constant diameter-height relationship).dominant_tree_height
: Should contain values in cm. Corrects tree heights and diameters (assuming a constant diameter-height relationship).tree_density
: Should contain values in individuals per hectare. Corrects tree density.basal_area
: Should contain values in squared meters per hectare (m2/ha). Corrects tree density. Forests thatmean_shrub_height
: Should contain values in cm. Corrects shrub cover.
Locations where the metric value in the map is missing are left unmodified. The same happens if metric value is zero, to avoid division by zero. A special case occurs
for correction of basal area. In that case, if there are no trees larger than minDBH
but structural map indicates positive values of basal area,
DBH values will be set to minDBH, and correction of basal area will be performed.
Function check_forest()
checks first that forest
objects are defined in "wildland" locations. Then, it looks for missing
data in tree or shrub attributes required for simulations. The function does not modify the data.
Value
Functions impute_forests()
and modify_forest_structure()
return a modified object of class sf
.
Function check_forests()
returns an invisible data frame with columns indicating missing forest data and missing values in tree or shrub parameters.
Author(s)
Miquel De Cáceres Ainsa, CREAF
Rodrigo Balaguer-Romano, CREAF
See Also
add_topography()
, add_forests()
, add_soilgrids()
, forest_mergeTrees
Examples
# See package vignettes 'Preparing inputs'