pyinterp.RTree.insert#
- RTree.insert(coordinates: ndarray, values: ndarray) None [source]#
Insert new data into the search tree.
- 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.