pyinterp.core.RTree3DFloat64.packing#
- RTree3DFloat64.packing(self: pyinterp.core.RTree3DFloat64, coordinates: Annotated[numpy.typing.ArrayLike, numpy.float64], values: Annotated[numpy.typing.ArrayLike, numpy.float64]) None#
Build the spatial index using a packing algorithm.
Constructs the R*-tree using the packing algorithm. This method erases any existing data before construction.
- Parameters:
coordinates – Array of shape
(n, 3)or(n, 2)containing observation coordinates. Herenis the number of observations and each row represents a coordinate in the order x, y, and optionally z. If the matrix shape is(n, 2), the z-coordinate is assumed to be zero. The coordinate system depends on the instance configuration: Ifecef=True, coordinates are in the Cartesian coordinate system (ECEF). Otherwise, coordinates are in the geodetic system (longitude, latitude, altitude) in degrees, degrees, and meters, respectively.values – Array of size (n) containing the values associated with the coordinates provided.