pyinterp.RTree.insert#

RTree.insert(coordinates: ndarray, values: ndarray) None[source]#

Insert new data into the search tree.

Parameters:
  • coordinates – a matrix (n, ndims) where n is the number of observations and ndims is the number of coordinates in order: longitude and latitude in degrees, altitude in meters and then the other coordinates defined in Euclidean space if dims > 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.