to_zarr#
- caput.mpiarray.MPIArray.to_zarr(f: str | zarr.Group, dataset: str, create: bool, chunks: tuple[int, Ellipsis] | None, compression: str | int | None, compression_opts: tuple | None = None) None[source]#
Parallel write into a contiguous Zarr dataset.
- Parameters:
- f
str|zarr.Group File to write dataset into.
- dataset
str Name of dataset to write into. Should not exist.
- createbool
True if a new file should be created (if needed)
- chunks
tuple[int, …] |None, optional Chunk shape.
- compression
str|int|None, optional Name or identifier of compression filter.
- compression_opts
tuple|None, optional See documentation for compression filters. Compression options for the dataset.
- f
- Raises:
RuntimeErrorIf
zarris not installed.ValueErrorIf
zarrgroup is already initialized without a synchronizer, or if file name argument type is invalid.