pyinterp.core.geodetic.RTree

class pyinterp.core.geodetic.RTree(self, spheroid: pyinterp.core.geodetic.Spheroid | None = None)

Bases: pybind11_object

R*Tree spatial index.

Parameters:

spheroid – WGS of the coordinate system used to calculate the distance.

Public Methods

clear(self)

Removes all values stored in the container.

insert(self, lon, lat, values)

Insert new data into the search tree.

inverse_distance_weighting(self, lon, lat[, ...])

Interpolation of the value at the requested position by inverse distance weighting method.

packing(self, lon, lat, values)

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

query(self, lon, lat[, k, within, num_threads])

Search for the nearest K nearest neighbors of a given point.

radial_basis_function(self, lon, 1]], lat, ...)

Interpolation of the value at the requested position by radial basis function interpolation.

window_function(self, lon, 1]], lat, 1]], ...)

Interpolation of the value at the requested position by window function.

Protected Methods

Special Methods

__bool__(self)

Called to implement truth value testing and the built-in operation bool().

__copy__(self)

Implements the shallow copy operation.

__getstate__(self)

__len__(self)

Called to implement the built-in function len()

__setstate__(self, arg0)