View source: R/tile_functions.R
remove_zero_gpstimes | R Documentation |
Sometimes the GPS time for a point is zero rather than the expected large integer value (seconds since epoch), which will lead to incorrect capture times being reported for the LiDAR tile. This function checks for the presence of such invalid GPS times and drops those points from the data if they constitute no more than a specified proportion of the total points. The function returns the (possibly modified) LAS object.
remove_zero_gpstimes(las, max_prop = 0.01, quiet = FALSE)
las |
A LAS object, e.g. imported using |
max_prop |
The maximum proportion of points with zero GPS times. This should be set to a small value (default is 0.01). If the proportion of zero GPS times exceeds this value, the function will throw an error. |
quiet |
Set to |
Note: Any points with a missing value for GPS time will be retained.
The (possibly modified) LAS object.
get_scan_times
## Not run:
las <- remove_zero_gpstimes(las)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.