Create a lookup function to query locations against spatial masks
Simple pixel spacing is used to overlay point locations on a spatial grid, or a series of grids.
mkLookup(x, by.segment = TRUE)
x
: an xyz-list with matrix or array of masksby.segment
: logical - is the mask to be queried separately for each time step?A function, with one argument - a matrix of points - that returns a logical vector indicating the overlay of each point against the masks.
Michael D. Sumner
Very little error checking is done.
get.mask
and related examples for creating and using masks.
See over
for more general capabilities for overlays.