mask_tile: Apply a raster mask to a LAS tile

View source: R/tile_functions.R

mask_tileR Documentation

Apply a raster mask to a LAS tile

Description

This function uses a raster layer as a mask to subset a LAS point cloud. Those points that fall within raster cells with non-missing values are retained. Any points outside the bounds of the raster, or falling in cells with NA values are dropped. If no points fall within data cells of the raster, a warning message is issued and NULL is returned.

Usage

mask_tile(las, r)

Arguments

las

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

r

A RasterLayer object to use as the mask.

Value

A new LAS object containing the masked points and updated header information.

Note

This function does not check that the coordinate reference systems of the LAS and raster objects are the same.


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