View source: R/tile_functions.R
get_max_height | R Documentation |
This is useful for checking purposes. It can also be used to derive
an approximate vegetation height layer by setting the classes
argument to c(3:5)
.
get_max_height(
las,
res = 10,
classes = c(2, 3:5, 9),
point_height_range = c(0, Inf),
nodata = NA_real_
)
las |
A LAS object, e.g. imported using |
res |
Raster cell size. The default value is 10 which assumes that the LAS data is in a projected coordinate system with metres as units. |
classes |
Point classes to include when calculating maximum height for each cell. Default is c(2, 3:5, 9) for ground, vegetation and water point classes. |
point_height_range |
A two-element numeric vector with the minimum and maximum
heights of points to include when determining the maximum height. The values can be
in any order. The default is |
nodata |
Numeric value for cells with no points. Default is |
A RasterLayer
in which cell values are maximum point height.
## Not run:
# Determine approximate vegetation height for each voxel, setting
# the height range filter based on tallest New South Wales tree height
#
rmaxht <- get_max_height(las, classes = 3:5, point_height_range = c(0, 76))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.