remove_zero_gpstimes: Check for and drop any points with zero GPS times

View source: R/tile_functions.R

remove_zero_gpstimesR Documentation

Check for and drop any points with zero GPS times

Description

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.

Usage

remove_zero_gpstimes(las, max_prop = 0.01, quiet = FALSE)

Arguments

las

A LAS object, e.g. imported using prepare_tile.

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 TRUE to suppress messages. Default is FALSE.

Details

Note: Any points with a missing value for GPS time will be retained.

Value

The (possibly modified) LAS object.

See Also

get_scan_times

Examples

## Not run: 
las <- remove_zero_gpstimes(las)

## End(Not run)


mbedward/CERMBlidar documentation built on April 10, 2024, 2:05 p.m.