pyinterp.RTree3DFloat64.insert

pyinterp.RTree3DFloat64.insert#

RTree3DFloat64.insert(self, coordinates: numpy.ndarray[dtype=float64, shape=(*, *), writable=False], values: numpy.ndarray[dtype=float64, shape=(*), writable=False]) None#

Insert points into the tree.

Add new points to an existing tree. Can be called multiple times to add points incrementally.

Parameters:
  • coordinates – Matrix of shape (n, 3) or (n, 2) containing point coordinates. If spheroid was provided: (lon, lat, alt) in degrees/degrees/meters If spheroid was not provided: Cartesian coordinates in any consistent unit system (e.g., meters for ECEF, units on a plane, etc.) If shape is (n, 2), the third coordinate is assumed to be zero.

  • values – Vector of size n containing values at each point.

Note

When no spheroid is provided, coordinates are treated as Cartesian without any transformation. Users must ensure all coordinates and search radii use consistent units.