- class pyinterp.RTree(system: Optional[pyinterp.geodetic.System] = None, dtype: Optional[numpy.dtype] = None, ndims: int = 3)#
R*Tree spatial index for geodetic scalar values.
system – WGS of the coordinate system used to transform equatorial spherical positions (longitudes, latitudes, altitude) into ECEF coordinates. If not set the geodetic system used is WGS-84. Default to
dtype – Data type of the instance to create.
ndims – The number of dimensions of the tree. This dimension must be at least equal to 3 to store the ECEF coordinates of the points. Default to
Returns the box able to contain all values stored in the container.
Removes all values stored in the container.
Insert new data into the search tree.
Interpolation of the value at the requested position by inverse distance weighting method.
The tree is created using packing algorithm (The old data is erased before construction.)
query(coordinates[, k, within, num_threads])
Search for the nearest K nearest neighbors of a given point.
radial_basis_function(coordinates[, radius, ...])
Interpolation of the value at the requested position by radial basis function interpolation.
window_function(coordinates, radius[, k, ...])
Interpolation of the value at the requested position by window function.