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 – a matrix of shape
(n, 3)
, wheren
is the number of observations and 3 represents the coordinates in the order: x, y, and z. If the matrix shape is(n, 2)
, the z-coordinate is assumed to be zero. The coordinates (x, y, z) are in the Cartesian coordinate system (ECEF) if the instance is configured to use this system (ecef keyword set to True during construction). Otherwise, the coordinates are in the geodetic system (longitude, latitude, and altitude) in degrees, degrees, and meters, respectively.values – An array of size
(n)
containing the values associated with the coordinates provided.