This function is an internal function reserved for lidR developers. When we have a set of (x, y) coordinates corresponding to a region of interest (ROI) in a catalog this function retrieve in which file(s) are these ROIs.
catalog_index(catalog, x, y, w, h, buffer, roinames)
A LAScatalog object
vector. A set of x plot coordinates
vector. A set of y plot coordinates
vector. A set of ROI names
numeric or vector. A radius or a set of radii of the ROI. If only r is provided (r2 = NULL) it will extract data falling onto a disc.
numeric or vector. A radius or a set of radii of plots. If r2 is provided, the selection turns into a rectangular ROI. If r= r2 it is a square.
A list of LAScluster object.