analyze_cyl_file: analyze_cyl_file

View source: R/struct_funcs.r

analyze_cyl_fileR Documentation

analyze_cyl_file

Description

Reads in a cyl file (which is usually created by treeqsm), and calculates path length, surface area, volume, and sapwood metrics.

Usage

analyze_cyl_file(
  cyl_file,
  calc_sapwood = T,
  sapwood_depth = 2,
  treeid,
  size_classes = c(0, 1, 3, 5, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130,
    140)
)

Arguments

cyl_file

path to file with the cylinder data

calc_sapwood

Whether or not sapwood should be calculated, Default: T

sapwood_depth

Set assumed sapwood depth (cm) at the base of the tree, Default: 2

treeid

identifier to use in outputs for this tree, Default: basename(cyl_file)

size_classes

branch diameter size classes (cm) across which aggregated computations will be made, Default: c(0,1,3,5,10,20,30,40,50,60,70,80,90,100,110,120,130,140)

Details

DETAILS

Value

a list of metrics and an updated tree structure dataframe with metrics appended to each row

Examples

## Not run: 
if(interactive()){
 #EXAMPLE1
 }

## End(Not run)

ashenkin/treestruct documentation built on June 11, 2025, 10:40 a.m.