cubed.Array#
- class cubed.Array(name, zarray, spec, plan)#
Chunked array backed by Zarr storage that conforms to the Python Array API standard.
- __init__(name, zarray, spec, plan)#
Methods
__init__
(name, zarray, spec, plan)compute
(*[, executor, callbacks, ...])Compute this array, and any arrays that it depends on.
rechunk
(chunks)Change the chunking of this array without changing its shape or data.
to_svg
([size])Convert chunks from Cubed Array into an SVG Image
visualize
([filename, format, ...])Produce a visualization of the computation graph for this array.
Attributes
T
chunkmem
Amount of memory in bytes that a single chunk uses.
chunks
A tuple containing a sequence of block sizes for each corresponding array dimension.
chunksize
A tuple indicating the chunk size of each corresponding array dimension.
device
dtype
Data type of the array elements.
itemsize
Length of one array element in bytes
mT
nbytes
Number of bytes in array
ndim
Number of array dimensions (axes).
npartitions
Number of chunks in the array.
numblocks
A tuple indicating the number of blocks (chunks) in each corresponding array dimension.
shape
Array dimensions.
size
Number of elements in the array.
zarray
The underlying Zarr array.
zarray_maybe_lazy
The underlying Zarr array or LazyZarrArray.