las_check {lidR}R Documentation

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:

For a LAScatalog object it checks:

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 and returns a list invisibly. If print = FALSE the functions returns a list visibly and do not print the report.

...

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 three elements named message, 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)

[Package lidR version 4.1.1 Index]