xamr.AMReXDataArray.__getitem__

AMReXDataArray.__getitem__(key)[source]

Index into the coarsest level data

Parameters:

key – Index or slice. For time series, time index is leftmost. Spatial indices follow yt convention (z, y, x for 3D).

Returns:

Scalar value or numpy array depending on indexing