ChunkGrid¶
zarrista.ChunkGrid ¶
The chunk grid of an array: how its shape is partitioned into chunks.
array_shape
property
¶
The shape of the array, in elements along each dimension.
grid_shape
property
¶
The shape of the grid, in number of chunks along each dimension.
from_metadata
staticmethod
¶
Build a chunk grid from its Zarr v3 metadata and the array shape.
rectilinear
staticmethod
¶
Construct a rectilinear grid with per-dimension chunk sizes.
regular
staticmethod
¶
Construct a regular grid with a fixed chunk_shape over array_shape.
zarrista.ChunkKeyEncoding ¶
How an array maps chunk grid indices to store keys.
default
staticmethod
¶
default(sep: Literal['.', '/']) -> ChunkKeyEncoding
Construct the default chunk key encoding with the given separator.
from_metadata
staticmethod
¶
from_metadata(metadata: NamedConfigV3) -> ChunkKeyEncoding
Build a chunk key encoding from its Zarr v3 metadata.