pyinterp.core.AxisInt64¶
- class pyinterp.core.AxisInt64(self, values: numpy.ndarray[tuple[int], numpy.dtype[numpy.int64]])¶
Bases:
pybind11_objectCreate a coordinate axis with integer values.
A coordinate axis is a Variable that specifies one of the coordinates of a variable’s values.
- Parameters:
values – Axis values.
Public Methods
back(self)Get the last value of this axis.
find_index(self, coordinates[, bounded])Find grid elements that contain or are closest to coordinate positions.
find_indexes(self, coordinates)Search for axis elements around all coordinate positions.
flip(self[, inplace])Reverse the order of elements in this axis.
front(self)Get the first value of this axis.
increment(self)Get the increment value if axis is regular.
is_ascending(self)Test if the data is sorted in ascending order.
is_regular(self)Check if this axis values are spaced regularly.
max_value(self)Get the maximum coordinate value.
min_value(self)Get the minimum coordinate value.
Special Methods
__copy__(self)Implement the shallow copy operation.
__eq__(self, other)Override the default behavior of the
==operator.__getitem__(*args, **kwargs)Overloaded function.
__getstate__(self, /)__len__(self)Return the length of the axis.
__ne__(self, other)Override the default behavior of the
!=operator.__repr__(self)Return the string representation of this Axis.
__setstate__(self, arg0)