get_stratum_counts: Get LiDAR point counts for defined strata.

View source: R/tile_functions.R

get_stratum_countsR Documentation

Get LiDAR point counts for defined strata.

Description

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.

Usage

get_stratum_counts(las, strata, res = 10, classes = c(2, 3, 4, 5, 9))

Arguments

las

A LAS object, e.g. imported using prepare_tile.

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 check_strata.

res

Raster cell size.

classes

Integer classification codes for points to include. Default is 2 (ground) and 3:5 (vegetation) and 9 (water).

Value

A terra::SpatRast object where each band corresponds to a stratum (including the ground layer) and cell values are voxel point counts.

See Also

check_strata


mbedward/CERMBlidar documentation built on April 10, 2024, 2:05 p.m.