pyinterp.RTree3DFloat32.packing

pyinterp.RTree3DFloat32.packing#

RTree3DFloat32.packing(self, coordinates: numpy.ndarray[dtype=float32, shape=(*, *), writable=False], values: numpy.ndarray[dtype=float32, shape=(*), writable=False]) None#

Bulk-load points using STR packing algorithm.

Efficiently inserts all points at once using the STR (Space-Tree Recursive) packing algorithm. This method erases any existing data in the tree.

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.