API Documentation#
This page presents the high-level public Python API grouped by theme. For low-level (C++ binding) symbols see Core API Documentation.
Coordinates & Axes#
Fundamental 1D axis helpers used by grid and interpolator objects.
|
Create a coordinate axis for variable values. |
|
Create a coordinate axis with integer values. |
|
Create a time axis for temporal coordinates. |
CF Metadata Helpers#
Identify axis meaning from CF-compliant unit strings.
Units known to the axis defining the latitude. |
|
Units known to the axis defining the longitude. |
|
Units known to the axis defining the time. |
|
|
Units management for axes. |
Spatial Index#
Spatial search structures.
|
R*Tree spatial index for geodetic scalar values. |
Geohash#
Encode geographic coordinates into compact base32 strings and work with the resulting discrete spatial grid.
Handle GeoHash encoded in base 32. |
|
|
Overloaded function. |
|
Decode geohash strings into geographic coordinates. |
|
Encode geographic coordinates into geohash strings. |
|
Decode geohash into geographic coordinates. |
|
Encode geographic coordinates into geohash codes. |
|
Get all neighbors of a geohash code. |
|
Transform geohash codes between different precision levels. |
|
Get the start and end indexes for successive geohash codes. |
Geodetic Utilities#
Geodetic primitives, distance helpers and spherical geometry utilities.
|
Define a box made of two describing points in spherical coordinates. |
|
Returns the distance between the given coordinates. |
|
Represent a World Geodetic Coordinates System. |
|
Calculate the crossover between two half-orbits. |
|
Create a linestring as a collection of points. |
|
Represent a collection of polygons. |
|
Normalize longitudes to the range |
|
Handle a point in an equatorial spherical coordinate system. |
|
Represent a polygon with an outer ring and optional inner rings. |
|
Provide a spatial index based on the R-tree data structure. |
|
Represent a World Geodetic System (WGS). |
Binning & Histograms#
One and two dimensional statistical accumulation utilities.
|
Group continuous values into bins located on a vector. |
|
Group continuous values into bins located on a grid. |
|
Group continuous values into bins located on a grid. |
Cartesian Grids#
Regular rectilinear grid containers used with interpolators.
|
2D Cartesian Grid. |
|
3D Cartesian Grid. |
|
4D Cartesian Grid. |
Filling Undefined Values#
Functions for filling missing values in grids.
|
Fill undefined values in a grid using spectral in-painting. |
|
Replace all undefined values in a 2D grid using Gauss-Seidel method. |
Filter values using a locally weighted regression function (LOESS). |
|
|
Replace undefined values (NaN) in a 2-D grid using the multigrid V-cycle. |
Interpolators#
Scalar field interpolation functions over Cartesian grids.
|
Interpolate a 1D function |
|
Bicubic gridded interpolator. |
|
Interpolate the values provided on the defined bivariate function. |
|
Interpolate the values provided on the defined trivariate function. |
|
Interpolate the values provided on the defined quadrivariate function. |
Univariate Statistics#
Streaming descriptive statistics of 1D sample streams.
|
Univariate descriptive statistics. |
|
Compute streaming histogram for statistical analysis. |
Orbit Interpolation#
Work with repeating satellite orbits and derived passes/swaths.
|
Calculate the orbit at the given height. |
|
Get the properties of a swath of an half-orbit. |
|
Get the properties of a swath of an half-orbit. |
|
Represent coordinates of the satellite at the equator. |
|
Represent properties of the orbit. |
|
Represent a pass of an orbit. |
|
Represent a swath of an orbital pass. |
Xarray Backends#
Helpers for constructing interpolators directly from xarray.DataArray objects.
|
Build a Grid2D from Xarray data. |
|
Build a Grid3D from Xarray data. |
|
Build a Grid4D from Xarray data. |
Interpolate on a regular grid in arbitrary dimensions. |
Type Hints#
Type aliases for numpy array shapes used throughout the library.
Typing definitions.
- pyinterp.typing.NDArray#
A numpy array of any data type. This alias corresponds to numpy.typing.NDArray[Any].
- pyinterp.typing.NDArray1D#
A numpy array specifically of one dimension.
- pyinterp.typing.NDArray1DBool#
A numpy array specifically of one dimension with
numpy.bool_elements.
- pyinterp.typing.NDArray1DDateTime#
A numpy array specifically of one dimension with
numpy.datetime64elements.
- pyinterp.typing.NDArray1DFloat32#
A numpy array specifically of one dimension with
numpy.float32elements.
- pyinterp.typing.NDArray1DFloat64#
A numpy array specifically of one dimension with
numpy.float64elements.
- pyinterp.typing.NDArray1DInt64#
A numpy array specifically of one dimension with
numpy.int64elements.
- pyinterp.typing.NDArray1DStr#
A numpy array specifically of one dimension with
numpy.str_elements.
- pyinterp.typing.NDArray1DTimeDelta#
A numpy array specifically of one dimension with
numpy.timedelta64elements.
- pyinterp.typing.NDArray1DUInt64#
A numpy array specifically of one dimension with
numpy.uint64elements.
- pyinterp.typing.NDArray2D#
A numpy array specifically of two dimensions.
- pyinterp.typing.NDArray2DBool#
A numpy array specifically of two dimensions with
numpy.bool_elements.
- pyinterp.typing.NDArray2DDateTime#
A numpy array specifically of two dimensions with
numpy.datetime64elements.
- pyinterp.typing.NDArray2DFloat32#
A numpy array specifically of two dimensions with
numpy.float32elements.
- pyinterp.typing.NDArray2DFloat64#
A numpy array specifically of two dimensions with
numpy.float64elements.
- pyinterp.typing.NDArray2DInt8#
A numpy array specifically of two dimensions with
numpy.int8elements.
- pyinterp.typing.NDArray2DUInt8#
A numpy array specifically of two dimensions with
numpy.uint8elements.
- pyinterp.typing.NDArray2DUInt64#
A numpy array specifically of two dimensions with
numpy.uint64elements.
- pyinterp.typing.NDArray3D#
A numpy array specifically of three dimensions.
- pyinterp.typing.NDArray3DFloat32#
A numpy array specifically of three dimensions with
numpy.float32elements.
- pyinterp.typing.NDArray3DFloat64#
A numpy array specifically of three dimensions with
numpy.float64elements.
- pyinterp.typing.NDArray3DInt8#
A numpy array specifically of three dimensions with
numpy.int8elements.
- pyinterp.typing.NDArray3DUInt8#
A numpy array specifically of three dimensions with
numpy.uint8elements.
- pyinterp.typing.NDArray4D#
A numpy array specifically of four dimensions.
- pyinterp.typing.NDArray4DFloat32#
A numpy array specifically of four dimensions with
numpy.float32elements.
- pyinterp.typing.NDArray4DFloat64#
A numpy array specifically of four dimensions with
numpy.float64elements.
- pyinterp.typing.NDArray4DInt8#
A numpy array specifically of four dimensions with
numpy.int8elements.
- pyinterp.typing.NDArray4DUInt8#
A numpy array specifically of four dimensions with
numpy.uint8elements.
- pyinterp.typing.NDArrayDateTime#
A numpy array of any dimension with
numpy.datetime64elements.
- pyinterp.typing.NDArrayFloat32#
A numpy array of any dimension with
numpy.float32elements.
- pyinterp.typing.NDArrayFloat64#
A numpy array of any dimension with
numpy.float64elements.
- pyinterp.typing.NDArrayInt64#
A numpy array of any dimension with
numpy.int64elements.
- pyinterp.typing.NDArrayStructured#
A numpy array of any dimension with structured elements.
- pyinterp.typing.NDArrayTimeDelta#
A numpy array of any dimension with
numpy.timedelta64elements.
- pyinterp.typing.NDArrayUInt64#
A numpy array of any dimension with
numpy.uint64elements.