When the user has a set of (x, y) coordinates corresponding to a region of interest (ROI) (a ground inventory, for example), they can automatically find the tiles containing the lidar data associated with the ROIs from a Catalog. The algorithm will do this even for ROIs falling on the edges of one or more tiles. It only works for tiles that are arranged in gridlines. This function is used by catalog_queries. Users do not really need it.
catalog_index(obj, x, y, r, r2 = NULL, roinames = NULL)
A Catalog object
vector. A set of x plot coordinates
vector. A set of y plot coordinates
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.
vector. A set of ROI names