pyinterp.core.RTree3DFloat64.packing

RTree3DFloat64.packing(self: pyinterp.core.RTree3DFloat64, coordinates: numpy.ndarray[numpy.float64], values: numpy.ndarray[numpy.float64]) 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.