blosc2.NDField.__getitem__#

NDField.__getitem__(key: int | slice | Sequence[slice]) np.ndarray#

Get a slice of self.

Parameters:

key (int or slice or Sequence[slice]) – The slice to be retrieved.

Returns:

out – A NumPy array with the data slice.

Return type:

NumPy.ndarray