pyinterp.RTree.packing#
- RTree.packing(coordinates: NDArray2DFloat32, values: NDArray1DFloat32) None[source]#
- RTree.packing(coordinates: NDArray3DFloat32, values: NDArray1DFloat32) None
- RTree.packing(coordinates: NDArray2DFloat64, values: NDArray1DFloat64) None
- RTree.packing(coordinates: NDArray3DFloat64, values: NDArray1DFloat64) None
Create the tree using packing algorithm.
The old data is erased before construction.
- Parameters:
coordinates – Array of shape
(n, 3)or(n, 2)containing observation coordinates. Here n is 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 – An array of size
(n)containing the values associated with the coordinates provided.