iterate_chunks

glue.utils.array.iterate_chunks(shape, chunk_shape=None, n_max=None)[source]

Given a data shape and a chunk shape (or maximum chunk size), iteratively return slice objects that can be used to slice the array.