# NOT RUN {
normlas.file = system.file("extdata", "lidar_example.laz", package="leafR")
# Calculate LAD from voxelization
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); lidar.lai
# The real LAI was measured in the field work for validation
k.coefficient(lidar.lai, real.lai = 6)
# }
Run the code above in your browser using DataCamp Workspace