add_physiological_ages: Add the physiological age of an annual shoots based on their...

add_physiological_agesR Documentation

Add the physiological age of an annual shoots based on their length

Description

Add the physiological age of an annual shoots based on their length

Usage

add_physiological_ages(aRchi, th = c(0.1, 0.2, 0.5), correct_PA = TRUE)

## S4 method for signature 'aRchi'
add_physiological_ages(aRchi, th = c(0.1, 0.2, 0.5), correct_PA = TRUE)

Arguments

aRchi

an object of class aRchi containing at least a QSM.

th

numeric. The length thresholds used to segment annual shoots into physiological ages.

correct_PA

logical. Should a correction of the physiological age be performed ? This correction is based on the assumption that the child annual shoot can not be of lower order than its parent annual shoot. The parent annual shoot physiological age is modified accordingly.

Value

The aRchi file with a physiological age field added to the QSM slot

References

Lecigne, B., Delagrange, S., & Taugourdeau, O. (2021). Annual Shoot Segmentation and Physiological Age Classification from TLS Data in Trees with Acrotonic Growth. Forests, 12(4), 391. https://doi.org/10.3390/f12040391

Examples


# import aRchi file
aRchi=system.file("extdata","Tree_2.aRchi",package = "aRchi")
aRchi = aRchi::read_aRchi(aRchi)

# smooth skeleton
aRchi = smooth_skeleton(aRchi)

# segment annual shoots
aRchi = aRchi::segment_annual_shoots(aRchi,tree_age = 13)

# add physiological ages
aRchi = aRchi::add_physiological_ages(aRchi)

plot(aRchi,color="physiological_age",bg = "white")


aRchi documentation built on Sept. 3, 2022, 9:06 a.m.