DBH_qsm: Diameter at breast height TreeQSM

dbh_qsmR Documentation

Diameter at breast height TreeQSM

Description

Extracts the DBH from the treedata of a TreeQSM.

Usage

dbh_qsm(treedata)

Arguments

treedata

Treedata field of a TreeQSM that is returned by read_tree_qsm.

Details

The DBH is calculated as the diameter of the cylinder in the QSM at the right height (cylinder at 1.3 m). If the trunk was modeled with triangulation the DBH is calculated as mean length of the diagonals in the triangulation.

Value

The DBH of the TreeQSM in meters.

Examples

## Not run: 
# Read tree qsm and extract DBH
qsm <- read_tree_qsm(QSM_path = "path/to/qsm.mat")
dbh <- dbh_qsm(treedata = qsm$treedata)

## End(Not run)

lmterryn/ITSMe documentation built on Feb. 4, 2025, 2:21 a.m.