pyinterp.RTree.packing#
- RTree.packing(coordinates: numpy.ndarray, values: numpy.ndarray) None [source]#
The tree is created using packing algorithm (The old data is erased before construction.)
- Parameters
coordinates – a matrix
(n, ndims)
wheren
is the number of observations andndims
is the number of coordinates in order: longitude and latitude in degrees, altitude in meters and then the other coordinates defined in Euclidean space ifdims
> 3. If the shape of the matrix is(n, ndims)
then the method considers the altitude constant and equal to zero.values – An array of size
(n)
containing the values associated with the coordinates provided.