pyinterp.core.RTree3DFloat32.packing

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

The tree is created using packing algorithm (The old data is erased before construction.)

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.