pyinterp.core.RTree3DFloat32.insert

RTree3DFloat32.insert(self: pyinterp.core.RTree3DFloat32, coordinates: numpy.ndarray[numpy.float32], values: numpy.ndarray[numpy.float32]) None

Insert new data into the search tree.

Parameters
  • coordinates (numpy.ndarray) – a matrix (n, 3) where n is the number of observations and 3 is the number of coordinates in order: longitude and latitude in degrees and altitude in meters. If the shape of the matrix is (n, 2) then the method considers the altitude constant and equal to zero.

  • values (numpy.ndarray) – An array of size (n) containing the values associated with the coordinates provided.