update_cylinders {rTwig} | R Documentation |
Update Cylinders
Description
Updates the QSM cylinder data in preparation for radii correction
Usage
update_cylinders(cylinder)
Arguments
cylinder |
QSM cylinder data frame |
Details
Updates and verifies parent-child cylinder relationships and
calculates new variables and metrics found throughout the supported QSM
software. update_cylinders()
is required to run all rTwig functions, and
is run automatically if rTwig detects a new QSM.
Value
Returns a data frame
References
Hackenberg J, Spiecker H, Calders K, Disney M, Raumonen P (2015). “SimpleTree —An Efficient Open Source Tool to Build Tree Models from TLS Clouds.” Forests, 6(11), 4245–4294. doi:10.3390/f6114245.
Hackenberg J, Bontemps J (2023). “Improving quantitative structure models with filters based on allometric scaling theory.” Applied Geomatics, 15. doi:10.1007/s12518-023-00537-4.
Examples
## TreeQSM Processing Chain
file <- system.file("extdata/QSM.mat", package = "rTwig")
qsm <- import_treeqsm(file)
cylinder <- qsm$cylinder
cylinder <- update_cylinders(cylinder)
str(cylinder)
## SimpleForest Processing Chain
file <- system.file("extdata/QSM.csv", package = "rTwig")
cylinder <- read.csv(file)
cylinder <- update_cylinders(cylinder)
str(cylinder)
## aRchi Processing Chain
file <- system.file("extdata/QSM2.csv", package = "rTwig")
cylinder <- read.csv(file)
cylinder <- update_cylinders(cylinder)
str(cylinder)
[Package rTwig version 1.4.0 Index]