NDField#

This class is used to represent fields of a structured NDArray.

For instance, you can create an array with two fields:

s = blosc2.empty(shape, dtype=[("a", np.float32), ("b", np.float64)])
a = blosc2.NDField(s, "a")
b = blosc2.NDField(s, "b")

Methods#

__init__

Create a new NDField.

__getitem__

Get a slice of self.

__setitem__

Set a slice of self to a value.

Attributes#

schunk

The associated SChunk.

shape

The shape of the associated NDArray.