trunk_volume_qsm: Total trunk volume TreeQSM

View source: R/basic_metrics_qsm.R

trunk_volume_qsmR Documentation

Total trunk volume TreeQSM

Description

Extracts the total trunk volume from the treedata of a TreeQSM.

Usage

trunk_volume_qsm(treedata)

Arguments

treedata

Treedata field of a TreeQSM that is returned by read_tree_qsm.

Value

The total trunk volume of the TreeQSM in liters. If the trunk was modelled with triangulation the total volume is the sum of the triangulated volume of the stem (bottom) and the volume of the stem cylinder (top).

Examples

## Not run: 
# Read tree qsm and extract trunk volume
qsm <- read_tree_qsm(QSM_path = "path/to/qsm.mat")
trunkvol <- trunk_volume_qsm(treedata = qsm$treedata)

## End(Not run)

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