pyinterp.reduced_gaussian.Zone#
- class pyinterp.reduced_gaussian.Zone(self, mesh: pyinterp.core.reduced_gaussian.Mesh, ranges: numpy.ndarray[dtype=int64, shape=(*, 2), writable=False])#
Bases:
objectThe points of a mesh a regional grid holds: sorted, disjoint ranges [start, stop) of flat indices.
Build a zone from ranges [start, stop) of flat indices, shape (k, 2).
Attributes
Number of points of the mesh.
Number of ranges.
Number of points held.
Public Methods
indices(self)The flat indices of the points held, in storage order.
ranges(self)The ranges [start, stop), shape (k, 2), sorted and disjoint.
rows(self, index[, shape, writable])The rows of points of the mesh in the values, -1 if not held.
Special Methods
__eq__(self, arg, /)__getstate__(self)__new__(*args, **kwargs)__setstate__(self, arg, /)