Skip to contents

Extracts the trunk height from the treedata of a TreeQSM. For stems without and with trangulation it selects the TrunkLenght and TriaTrunkLength object from treedata respectively.

Usage

trunk_height_qsm(treedata)

Arguments

treedata

Treedata field of a TreeQSM that is returned by read_tree_qsm.

Value

The trunk height of the TreeQSM in meters.

Examples

if (FALSE) {
# Read tree qsm and extract tree height
qsm <- read_tree_qsm(QSM_path = "path/to/qsm.mat")
trunk_height <- trunk_height_qsm(treedata = qsm$treedata)
}