pyinterp.geodetic.RTree#
- class pyinterp.geodetic.RTree(spheroid: Spheroid | None = None)[source]#
Bases:
RTreeProvide a spatial index based on the R-tree data structure.
Create a spatial indexing structure for efficient geographic queries.
- 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[, ...])Interpolate values using inverse distance weighting method.
radial_basis_function(lon, lat[, radius, k, ...])Interpolate values using radial basis function interpolation.
window_function(lon, lat, radius[, k, wf, ...])Interpolate values using a window function.
Inherited Methods
clear(self)Remove 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.