Learn R Programming

forestr (version 2.0.2)

calc_vai: Calculate vegetation area index (VAI) from normalized PCL data matrix

Description

calc_vai calculates vegetation area index (VAI) from a normalized matrix of LiDAR data.

Usage

calc_vai(df, max.vai)

Arguments

df

data frame of pcl data that has been corrected for light extinction using the normalize_pcl function.

max.vai

the maximum value of column VAI. The default is 8. Should be a max value, not a mean.

Value

a matrix of vai by x, z in the canopy

Examples

Run this code
# NOT RUN {
pcl_vai <- calc_vai(pcl_norm, max.vai = 8)

# }

Run the code above in your browser using DataLab