Rechunker currently assumes that the input array has uniform chunks (except for the last chunk). This fits well with Zarr inputs, which must have uniform chunk sizes.
There are however some cases where chunks are not uniform, such as Dask arrays that have had filtering applied (producing chunks with different sizes), or concatenated Zarr arrays (as discussed in https://github.com/dask/dask/issues/6745). Should these cases be supported in rechunker?
Rechunker currently assumes that the input array has uniform chunks (except for the last chunk). This fits well with Zarr inputs, which must have uniform chunk sizes.
There are however some cases where chunks are not uniform, such as Dask arrays that have had filtering applied (producing chunks with different sizes), or concatenated Zarr arrays (as discussed in https://github.com/dask/dask/issues/6745). Should these cases be supported in rechunker?