pyinterp.geodetic.RTree

class pyinterp.geodetic.RTree(spheroid: Spheroid | None = None)[source]

Bases: RTree

A spatial index based on the R-tree data structure.

Parameters:

spheroid – WGS of the coordinate system used to calculate distance. If this argument is not defined, the instance manages a WGS84 ellipsoid.

Public Methods

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

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

radial_basis_function(lon, lat[, radius, k, ...])

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

window_function(lon, lat, radius[, k, wf, ...])

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

Inherited Methods

clear(self)

Removes all values stored in the container.

insert(self, lon, lat, values)

Insert new data into the search tree.

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.