# NOT RUN {
# A single file LAScatalog using data provided with the package
LASfile <- system.file("extdata", "Megaplot.laz", package="lidR")
ctg = readLAScatalog(LASfile)
plot(ctg)
# }
# NOT RUN {
ctg <- readLAScatalog("/path/to/a/folder/of/las/files")
# 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.
opt_output_files(ctg) <- "/path/to/folder/templated_filename_{XBOTTOM}_{ID}"
# More details in the documentation
help("LAScatalog-class", "lidR")
help("catalog_options_tools", "lidR")
# }
Run the code above in your browser using DataLab