pyinterp.core.geodetic.RTree

Contents

pyinterp.core.geodetic.RTree#

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

Bases: pybind11_object

Create an R*Tree spatial index.

Parameters:

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

Public Methods

clear(self)

Remove 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, ], lat, ], ...)

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

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

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

Special Methods

__bool__(self)

Return the truth value of the RTree (non-empty).

__copy__(self)

Implement the shallow copy operation.

__getstate__(self, /)

__len__(self)

Return the length of the RTree.

__setstate__(self, arg0)