lidR (version 2.1.0)

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.

  • 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 that return only one point.

See Also

Other lasfilters: lasfilterduplicates, lasfiltersurfacepoints, lasfilter

Other lasfilters: lasfilterduplicates, lasfiltersurfacepoints, lasfilter

Other lasfilters: lasfilterduplicates, lasfiltersurfacepoints, lasfilter

Other lasfilters: lasfilterduplicates, lasfiltersurfacepoints, lasfilter

Other lasfilters: lasfilterduplicates, lasfiltersurfacepoints, lasfilter

Other lasfilters: lasfilterduplicates, lasfiltersurfacepoints, lasfilter

Other lasfilters: lasfilterduplicates, lasfiltersurfacepoints, lasfilter

Other lasfilters: lasfilterduplicates, lasfiltersurfacepoints, lasfilter

Other lasfilters: lasfilterduplicates, 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 DataCamp Workspace