View source: R/tile_functions.R
get_stratum_counts | R Documentation |
Give a LAS tile and a set of height ranges, this function creates a multi-band raster where the cells in each band represent voxels for a given stratum, and each cell value is the number of points within the voxel. This can be used as the first step in the calculation of vegetation cover estimates.
get_stratum_counts(las, strata, res = 10, classes = c(2, 3, 4, 5, 9))
las |
A LAS object, e.g. imported using |
strata |
A data frame of strata definitions with (at least) three
columns: label, lowerht, upperht. Strata must cover all heights and be
non-overlapping. This will be checked by the function |
res |
Raster cell size. |
classes |
Integer classification codes for points to include. Default is 2 (ground) and 3:5 (vegetation) and 9 (water). |
A terra::SpatRast
object where each band corresponds to a
stratum (including the ground layer) and cell values are voxel point
counts.
check_strata
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.