leafR (version 0.1.4)

lai.raster: Produce a raster map of LAI. The resolution of the raster depends of grain.size choosed on lad.voxel() funtion.

Description

Produce a raster map of LAI. The resolution of the raster depends of grain.size choosed on lad.voxel() funtion.

Usage

lai.raster(VOXELS_LAD, min = 1, relative.value = NULL)

Arguments

VOXELS_LAD

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

min

mix canopy height

relative.value

LAI map can be made in percentage of a relative lai value (indicate for effective LAI)

Examples

Run this code
# NOT RUN {
# Get the example laz file
normlas.file = system.file("extdata", "lidar_example.laz", package="leafR")

# Calculate LAD from voxelization
# use thicker grain size to avoid voxels
# without returns
VOXELS_LAD.5 = lad.voxels(normlas.file,
                        grain.size = 5, k=1)

#Map using absolute values
lai_raster = lai.raster(VOXELS_LAD.5)
# }
# NOT RUN {
x11()
plot(lai_raster)
# }
# NOT RUN {
#############################
## RELATIVE LAI Raster
######################
# Calculate voxels LAD with finer grain size for
# better estimation of LAI
VOXELS_LAD = lad.voxels(normlas.file,
                        grain.size = 2)

# Calculate the LAD profile
lad_profile = lad.profile(VOXELS_LAD)

#Calculate LAI derived from LAD profile
lidar.lai = lai(lad_profile)

#Map using relative values (%)
relative.lai_raster = lai.raster(VOXELS_LAD.5, relative.value = lidar.lai)
# }
# NOT RUN {
x11()
plot(relative.lai_raster)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab