# NOT RUN {
# Build a LAScatalog
catalog = catalog("<Path to a folder containing a set of .las or .laz files>")
# Get coordinates from an external file
X = runif(30, 690000, 800000)
Y = runif(30, 5010000, 5020000)
R = 25
# Return a List of 30 circular LAS objects of 25 m radius
catalog_queries(catalog, X, Y, R)
# Return a List of 30 square LAS objects of 50x50 m
catalog_queries(catalog, X, Y, R, R)
# Return a List of 30 circular LAS objects of 30 m radius. 25 m being the ROI and 5 m
# being a buffered area. The LAS objects have an extra column called 'buffer' to
# differentiate the points.
catalog_queries(catalog, X, Y, R, buffer = 5)
# Return a List of 30 circular LAS objects of 25 m radius for which only the fields X, Y and
# Z have been loaded and Z values < 0 were removed.
catalog_queries(catalog, X, Y, R, select = "xyz", filter = "-drop_z_below 0")
# }
Run the code above in your browser using DataLab