# A single file LAScatalog using data provided with the package
LASfile <- system.file("extdata", "Megaplot.laz", package="lidR")
ctg = readLAScatalog(LASfile)
plot(ctg)
if (FALSE) {
ctg <- readLAScatalog("")
# Internal engine will sequentially process chunks of size 500 x 500 m
opt_chunk_size(ctg) <- 500
# Internal engine will align the 500 x 500 m chunks on x = 250 and y = 300
opt_alignment(ctg) <- c(250, 300)
# Internal engine will not display a progress estimation
opt_progress(ctg) <- FALSE
# Internal engine will not return results into R.
# Instead it will write results in files.
# Files will be named e.g.
# filename_256000_1.ext
# filename_257000_2.ext
# filename_258000_3.ext
# ...
opt_output_files(ctg) <- "/path/filename_{XBOTTOM}_{ID}"
# More details in the documentation
help("LAScatalog-class", "lidR")
help("engine_options", "lidR")
}
Run the code above in your browser using DataLab