package zarr
Module Ndarray.IndexingSource
A module housing functions for creating and manipulating indices and slices for working with Zarr arrays.
slice_of_coords c takes a list of array coordinates and returns a slice corresponding to the coordinates. Elements of each slice variant are sorted in increasing order.
coords_of_slice s shp returns an array of coordinates given a slice s and array shape shp.
cartesian_prod ll returns a cartesian product of the elements of list ll. It is mainly used to generate a C-order of chunk indices in a regular Zarr array grid.