Learn R Programming

lidR (version 1.6.1)

lasfilters: Predefined filters

Description

Select only some returns

Usage

lasfilterfirst(.las)

lasfilterfirstlast(.las)

lasfilterfirstofmany(.las)

lasfilterground(.las)

lasfilterlast(.las)

lasfilternth(.las, n)

lasfiltersingle(.las)

lasfilterfirstofmany(.las)

Arguments

.las

An object of class LAS

n

the position in the return sequence

Value

An object of class LAS

Details

  • lasfilterfirst Select only the first returns.

  • lasfilterfirstlast Select only the first and last returns.

  • lasfilterground Select only the returns classified as ground according to LAS specification v1.3.

  • lasfilterlast Select only the last returns i.e. the last returns and the single returns.

  • lasfilternth Select the returns from their position in the return sequence.

  • lasfilterfirstofmany Select only the first returns from pulses which returned multiple points.

  • lasfiltersingle Select only the returns which return only one point.

See Also

Other lasfilters: lasfiltersurfacepoints, lasfilter

Other lasfilters: lasfiltersurfacepoints, lasfilter

Other lasfilters: lasfiltersurfacepoints, lasfilter

Other lasfilters: lasfiltersurfacepoints, lasfilter

Other lasfilters: lasfiltersurfacepoints, lasfilter

Other lasfilters: lasfiltersurfacepoints, lasfilter

Other lasfilters: lasfiltersurfacepoints, lasfilter

Other lasfilters: lasfiltersurfacepoints, lasfilter

Other lasfilters: lasfiltersurfacepoints, lasfilter

Examples

Run this code
# NOT RUN {
LASfile <- system.file("extdata", "Megaplot.laz", package="lidR")
lidar = readLAS(LASfile)

firstReturns  = lasfilterfirst(lidar)
groundReturns = lasfilterground(lidar)
# }

Run the code above in your browser using DataLab