Grid Structures#
Xarray Backends#
High-level grid containers compatible with xarray.
These classes provide a convenient interface for creating interpolators directly
from xarray.DataArray objects. They automatically handle coordinate systems,
including temporal axes and geodetic units.
Xarray Accessors#
Once both pyinterp and xarray are imported, in either order,
xarray.DataArray and xarray.Dataset objects have a pyinterp
accessor. Importing pyinterp does not import xarray: the accessor is
registered when xarray is imported. Its interp method follows
xarray.DataArray.interp() and returns labelled results:
import pyinterp
result = ds.mss.pyinterp.interp(lon=lons, lat=lats, method="bicubic")
|
Interpolate a data array with |
|
Interpolate the variables of a dataset with |
Core Grids#
The fundamental grid structure used internally by the library.
|
Overloaded function. |
N-dimensional Cartesian grid with runtime dtype detection. |
Core Grids Aliases#
Aliases of pyinterp.Grid used in type hints; they are the same class
at runtime.
|
Alias for |
|
Alias for |
|
Alias for |
|
Alias for |