Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

las_check

Inspect a LAS object


Description

Performs a deep inspection of a LAS or LAScatalog object and prints a report.

For a LAS object it checks:

  • if the point cloud is valid according to las specification

  • if the header is valid according to las specification

  • if the point cloud is in accordance with the header

  • if the point cloud has duplicated points and degenerated ground points

  • it the coordinate reference sytem is correctly recorded

  • if some pre-processing, such as normalization or ground filtering, is already done.

For a LAScatalog object it checks:

  • if the headers are consistent across files

  • if the files are overlapping

  • if some pre-processing, such as normalization, is already done.

For the pre-processing tests the function only makes an estimation and may not be correct.

Usage

las_check(las, print = TRUE, ...)

Arguments

las

An object of class LAS or LAScatalog.

print

logical. By default, prints a report into standard ouptut. If print = FALSE the functions returns a list with two elements named 'warnings' and 'errors' containing a vector with the reported warnings and errors.

...

Use deep = TRUE on a LAScatalog only. Instead of a shallow inspection it reads all the files and performs a deep inspection.

Value

A list with two elements named warnings and errors. This list is returned invisibly if print = TRUE. If deep = TRUE a nested list is returned with one element per file.

See Also

Other las utilities: las_utilities

Examples

LASfile <- system.file("extdata", "Megaplot.laz", package="lidR")
las <- readLAS(LASfile)
las_check(las)

lidR

Airborne LiDAR Data Manipulation and Visualization for Forestry Applications

v3.1.2
GPL-3
Authors
Jean-Romain Roussel [aut, cre, cph], David Auty [aut, ctb] (Reviews the documentation), Florian De Boissieu [ctb] (Fixed bugs and improved catalog features), Andrew Sánchez Meador [ctb] (Implemented wing2015() for segment_snags()), Bourdon Jean-François [ctb] (Contributed to Roussel2020() for track_sensor()), Gatziolis Demetrios [ctb] (Implemented Gatziolis2019() for track_sensor())
Initial release
2021-03-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.