View source: R/calc_variables_tree_level.R
calc_variables_tree_level | R Documentation |
This function calculates additional variables based on measurements, such as
nr_of_stems
: the number of shoots in the tree
(= 1 for an individual tree; >= 1 when coppice)
individual
: true for individual tree or coppice,
false if record is a secondary shoot
calc_height_m
: calculated height based on dbh_mm
and
a species specific diameter-height model
basal_area_m2
vol_bole_m3
: calculated based on dbh_mm
, calc_height_m
and
species specific tariffs
vol_crown_m3
: calculated based on dbh_mm
and
species specific tariffs
vol_tot_m3
: sum of vol_bole_m3
and vol_crowwn_m3
dbh_mm
(based on average for coppice trees)
decaystage
(based on average for coppice trees)
basal_area_alive_m2_ha
basal_area_dead_m2_ha
vol_alive_m3_ha
vol_dead_standing_m3_ha
vol_bole_alive_m3_ha
vol_bole_dead_m3_ha
calc_variables_tree_level(data_dendro, data_stems_calc)
data_dendro |
dataframe on tree measures with variables |
data_stems_calc |
dataframe on stem level measurements with variables
|
Dataframe with ...
library(forrescalc)
# (add path to your own fieldmap database here)
path_to_fieldmapdb <-
system.file("example/database/mdb_bosres.sqlite", package = "forrescalc")
data_dendro <- load_data_dendrometry(path_to_fieldmapdb)
data_shoots <- load_data_shoots(path_to_fieldmapdb)
data_stems <- compose_stem_data(data_dendro, data_shoots)
# omit argument 'example_dataset = TRUE' below to use all height models
height_model <- load_height_models(example_dataset = TRUE)
data_stems_calc <- calc_variables_stem_level(data_stems, height_model)
calc_variables_tree_level(data_dendro, data_stems_calc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.