lad.profile: This function calculate the lad profile from the input...

Description Usage Arguments Value Examples

View source: R/main.R

Description

This function calculate the lad profile from the input lad.voxels

Usage

1
lad.profile(VOXELS_LAD, relative = FALSE)

Arguments

VOXELS_LAD

3D grid of LAD values (output of lad.voxels() function)

relative

produce lad profile by relative total LAI values. Indicate when usinh effective LAI

Value

A data.frame with the calculated Leaf Area Density

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# Get the example laz file
normlas.file = system.file("extdata", "lidar_example.laz", package="leafR")

# Calculate LAD from voxelization
VOXELS_LAD = lad.voxels(normlas.file,
                        grain.size = 2)

lad_profile = lad.profile(VOXELS_LAD)
plot(lad_profile$height ~ lad_profile$lad, type = "l", ylim = c(0, 40),
     ylab = "Canopy height (m)", xlab = "LAD (m2/m3)")

# relative LAD PROFILE
relative.lad_profile = lad.profile(VOXELS_LAD, relative = TRUE)

plot(relative.lad_profile$height ~ relative.lad_profile$lad, type = "l", ylim = c(0, 40),
     ylab = "Canopy height (m)", xlab = "LAD (% of LAI)")

leafR documentation built on July 5, 2021, 1:07 a.m.