View source: R/metrics_Terryn_2020.R
dbh | R Documentation |
Returns the diameter at breast height or diameter above buttresses.
dbh(
treedata,
pc = NA,
buttress = FALSE,
thresholdR2 = 0.001,
slice_thickness = 0.06,
thresholdbuttress = 0.001,
maxbuttressheight = 7,
concavity = 4,
dtm = NA,
r = 5
)
treedata |
Treedata field of a TreeQSM that is returned by
|
pc |
The tree point cloud as a data.frame with columns X,Y,Z. Output of
|
buttress |
Logical (default=FALSE), indicates if the trees have buttresses. Only relevant if pc is available. |
thresholdR2 |
Numeric value (default=0.001). Parameter of the
|
slice_thickness |
Numeric value (default = 0.06). Parameter of the
|
thresholdbuttress |
Numeric value (default=0.001). Parameter of the
|
maxbuttressheight |
Numeric value (default=7). Parameter of the
|
concavity |
Numeric value (default=4) concavity for the computation of
the functional diameter using a concave hull based on
|
dtm |
The digital terrain model as a data.frame with columns X,Y,Z
(default = NA). If the digital terrain model is in the same format as a
point cloud it can also be read with |
r |
Numeric value (default=5) r which determines the range taken for the dtm. Should be at least the resolution of the dtm. Only relevant when a dtm is provided. |
If the tree point cloud is available the calculations are based on the point
cloud (most accurate). In this case the diameter at breast height (dbh) or
diameter above buttresses (dab) is calculated with dbh_pc
or
dab_pc
respectively. If the tree point cloud is not available
the dbh is based on the treeQSM with dbh_qsm
. When the bottom
of the point cloud is incomplete or obstructed you can choose to add a
digital terrain model as an input which is used to estimate lowest point of
the point cloud in order to obtain slices at the correct height of the tree.
The dbh or dab in meters.
## Not run:
qsm <- read_tree_qsm(QSM_path = "path/to/qsm.mat")
DBH <- dbh(treedata = qsm$treedata)
pc_tree <- read_tree_pc(PC_path = "path/to/point_cloud.txt")
DBH <- dbh(treedata = qsm$treedata, pc = pc_tree, buttress = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.