Core API Documentation#
Low-level classes & functions implemented in the compiled extension module (pyinterp.core).
Most users should start with the high-level API Documentation overview.
NumPy Datetime Utilities#
Vectorized helpers for working with numpy.datetime64 values.
|
Extract the date part from a datetime64 array. |
|
Convert datetime64 values to native Python datetime objects. |
Calculate the timedelta since January 1st. |
|
|
Extract the ISO calendar from datetime64 values. |
|
Extract the time part from a datetime64 array. |
|
Get the weekday for each date in the datetime64 array. |
Bicubic & Spline Routines#
Internal bicubic spline interpolation kernels.
|
Overloaded function. |
|
Overloaded function. |
|
Overloaded function. |
|
Overloaded function. |
Binning#
Core accumulation structures by dtype.
|
Create a 1D binning for grouping values into bins on a vector. |
|
Create a 1D binning for grouping values into bins on a vector. |
|
Create a 2D binning for grouping values into bins on a grid. |
|
Create a 2D binning for grouping values into bins on a grid. |
Histogram2DFloat64(self, x: pyinterp.core.Axis, y: pyinterp.core.Axis, bins: int | None = None)Group continuous values into bins located on a grid. |
|
Histogram2DFloat32(self, x: pyinterp.core.Axis, y: pyinterp.core.Axis, bins: int | None = None)Group continuous values into bins located on a grid. |
Bivariate Interpolators#
Object oriented 2D interpolator classes.
Bilinear interpolation in a 2D space. |
|
Bilinear interpolation in a 2D space. |
|
Inverse distance weighting interpolation in a 2D space. |
|
Nearest interpolation in a 2D space. |
Bivariate Kernel Functions#
Vectorized functional 2D interpolation routines.
|
Interpolate values on a bivariate function. |
|
Interpolate values on a bivariate function. |
|
Interpolate values on a bivariate function. |
Cartesian Grids#
Typed grid containers.
|
Cartesian Grid 2D. |
|
Cartesian Grid 2D. |
|
Cartesian Grid 2D. |
|
Cartesian Grid 3D |
|
Cartesian Grid 3D |
|
Cartesian Grid 3D |
|
Cartesian Grid 4D |
|
Cartesian Grid 4D |
|
Cartesian Grid 4D |
Univariate Descriptive Statistics#
Streaming statistics.
|
Compute univariate descriptive statistics. |
|
Compute univariate descriptive statistics. |
|
Compute streaming histogram for statistical analysis. |
|
Compute streaming histogram for statistical analysis. |
Geodetic System#
Geodetic primitives and spatial operations.
|
Define a box made of two corner points. |
|
Create a World Geodetic Coordinates System. |
|
Calculate the crossover between two half-orbits. |
|
Create a linestring as a collection of points. |
|
Create a MultiPolygon collection of polygons. |
|
Create a point in a geographic coordinate system. |
|
Create a polygon with an outer ring and optional inner rings. |
|
Create an R*Tree spatial index. |
|
Create a World Geodetic System (WGS). |
Geohash (Integer)#
Integer encoded geohash helpers.
|
Decode geohash into geographic coordinates. |
|
Encode geographic coordinates into geohash codes. |
|
Get all neighbors of a geohash code. |
Geohash (Bytes)#
Byte encoded geohash helpers and transformations.
|
Create a GeoHash encoded in base 32. |
|
Calculate the area covered by geohash codes. |
|
Overloaded function. |
|
Decode geohash strings into geographic coordinates. |
|
Encode geographic coordinates into geohash strings. |
GeoHash encoded as integer 64 bits |
|
|
Transform geohash codes between different precision levels. |
|
Get the start and end indexes for successive geohash codes. |
Temporal Cartesian Grids#
Grids extended with a time dimension.
|
Temporal Cartesian Grid 3D |
|
Temporal Cartesian Grid 3D |
|
Temporal Cartesian Grid 4D |
|
Temporal Cartesian Grid 4D |
4D Interpolation Kernels#
Functional 4D interpolation (space + time) routines.
|
Overloaded function. |
|
Overloaded function. |
R*Tree#
Spatial index & associated interpolation kernels.
Radial basis functions |
|
Window functions |
|
|
Create a spatial index for geodetic scalar values. |
|
Create a spatial index for geodetic scalar values. |
Replace Undefined Values#
Gap filling routines and supporting types.
Type of first guess grid to solve Poisson's equation. |
|
Type of values processed by the loess filter |
|
|
Replace all undefined values (NaN) in a grid using spectral in-painting. |
|
Replace all undefined values (NaN) in a grid using spectral in-painting. |
|
Replace all undefined values in a grid using Gauss-Seidel method. |
|
Replace all undefined values in a grid using Gauss-Seidel method. |
|
Overloaded function. |
|
Overloaded function. |
|
Replace all undefined values (NaN) in a grid using multigrid method. |
|
Replace all undefined values (NaN) in a grid using multigrid method. |
3D Interpolators#
Object oriented 3D interpolator classes.
Bilinear interpolation in a 3D space. |
|
Bilinear interpolation in a 3D space. |
|
Inverse distance weighting interpolation in a 3D space. |
|
Nearest interpolation in a 3D space. |
Temporal 3D Interpolators#
Object oriented 3D + time interpolator classes.
Bilinear interpolation in a 3D space. |
|
Bilinear interpolation in a 3D space. |
|
Inverse distance weighting interpolation in a 3D space. |
|
Nearest interpolation in a 3D space. |
3D Interpolation Kernels#
Vectorized functional 3D interpolation routines.
|
Overloaded function. |
|
Overloaded function. |