pyinterp.grid.Grid4D

class pyinterp.grid.Grid4D(x: Axis, y: Axis, z: Axis | TemporalAxis, u: Axis, array: NDArray4D, increasing_axes: str | None = None)[source]

Bases: object

4D Cartesian Grid.

Parameters:
  • x – X-Axis.

  • y – Y-Axis.

  • z – Z-Axis.

  • u – U-Axis.

  • array – Discrete representation of a continuous function on a uniform 4-dimensional grid.

  • increasing_axes – Ensure that the axes of the grid are increasing. If this is not the case, the axes and grid provided will be flipped. Default to False.

Notes

If the Z axis is a temporal axis, the grid will handle this axis during interpolations as a time axis.

Attributes

array

Gets the values handled by this instance.

u

Gets the U-Axis handled by this instance.

x

Gets the X-Axis handled by this instance.

y

Gets the Y-Axis handled by this instance.

z

Gets the Z-Axis handled by this instance.

Protected Methods

Special Methods

__repr__()

Get the string representation of this instance.