Learn R Programming

TreeLS (version 1.0)

gpsTimeFilter: Filter points based on gpstime

Description

This is a simple wrapper to lasfilter that takes as inputs proportional values instead of absolute time stamp values for filtering a point cloud object based on the gpstime field. This function is particularly useful to check narrow intervals of point cloud frames from mobile scanning data.

Usage

gpsTimeFilter(las, from = 0, to = 1)

Arguments

las

LAS object.

from, to

numeric - between 0 and 1 - gpstime quantile limits to filter by

Value

LAS object.

Examples

Run this code
# NOT RUN {
file = system.file("extdata", "model_boles.laz", package="TreeLS")
tls = readTLS(file)

### color points according to its chronological time stamp
plot(tls, color='gpstime')

### keep points registered in the 70% to 95% time interval
tls = gpsTimeFilter(tls, .7, .95)
plot(tls, color='gpstime')

# }

Run the code above in your browser using DataLab