pyinterp.core.RTree3DFloat32¶
- class pyinterp.core.RTree3DFloat32(self, spheroid: pyinterp.core.geodetic.Spheroid | None = None)¶
Bases:
pybind11_object
RTree spatial index for geodetic scalar values
- Parameters:
spheroid – 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.
ecef – If true, the coordinates managed by this instance are always in the Cartesian coordinate system (ECEF). If true, no conversion to the LLA system is performed. Defaults to
False
.
- Raises:
ValueError – If a Cartesian coordinate system (ECEF) is desired, there is no need to use a geodetic system for LLA to ECEF conversion. Please set either the spheroid or ecef parameter, but not both.
Public Methods
bounds
(self)Returns the box able to contain all values stored in the container.
clear
(self)Removes all values stored in the container.
insert
(self, coordinates, values)Insert new data into the search tree.
inverse_distance_weighting
(self, coordinates)Interpolation of the value at the requested position by inverse distance weighting method.
packing
(self, coordinates, values)The tree is created using packing algorithm (The old data is erased before construction.)
query
(self, coordinates[, k, within, ...])Search for the nearest K nearest neighbors of a given point.
radial_basis_function
(self, coordinates, ...)Interpolation of the value at the requested position by radial basis function interpolation.
universal_kriging
(self, coordinates, radius, ...)Universal Kriging interpolation of the value at the requested position.
value
(self, coordinates[, radius, k, ...])Get the K nearest neighbors of a given point.
window_function
(self, coordinates, radius, ...)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)