pyinterp.GridHolder

Contents

pyinterp.GridHolder#

class pyinterp.GridHolder#

Bases: object

N-dimensional Cartesian grid with runtime dtype detection.

This class represents a grid of values defined on N spatial or temporal axes. The grid automatically detects the data type from the input array and creates the appropriate internal representation.

Attributes

array

The underlying data array

dtype

Data type of the grid values

has_temporal_axis

Whether this grid has a temporal axis

ndim

Number of dimensions

shape

Shape of the grid

temporal_axis_index

Index of the temporal axis, or -1 if none

u

U-axis (fourth axis)

x

X-axis (first axis)

y

Y-axis (second axis)

z

Z-axis (third axis)

Special Methods

__getstate__(self)

Get the state for pickling (axes..., array).

__new__(*args, **kwargs)

__repr__(self)

Return the string representation of this Grid.