powered by
Select only some returns
lasfilterfirst(.las)lasfilterfirstlast(.las)lasfilterfirstofmany(.las)lasfilterground(.las)lasfilterlast(.las)lasfilternth(.las, n)lasfiltersingle(.las)lasfilterfirstofmany(.las)
lasfilterfirstlast(.las)
lasfilterfirstofmany(.las)
lasfilterground(.las)
lasfilterlast(.las)
lasfilternth(.las, n)
lasfiltersingle(.las)
An object of class LAS
LAS
the position in the return sequence
lasfilterfirst Select only the first returns.
lasfilterfirst
lasfilterfirstlast Select only the first and last returns.
lasfilterfirstlast
lasfilterground Select only the returns classified as ground according to LAS specification v1.3.
lasfilterground
lasfilterlast Select only the last returns i.e. the last returns and the single returns.
lasfilterlast
lasfilternth Select the returns from their position in the return sequence.
lasfilternth
lasfilterfirstofmany Select only the first returns from pulses which returned multiple points.
lasfilterfirstofmany
lasfiltersingle Select only the returns which return only one point.
lasfiltersingle
Other lasfilters: lasfilter
lasfilter
# NOT RUN { LASfile <- system.file("extdata", "Megaplot.laz", package="lidR") lidar = readLAS(LASfile) firstReturns = lidar %>% lasfilterfirst groundReturns = lidar %>% lasfilterground # }
Run the code above in your browser using DataLab