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