zarr.open_like
zarr.open_like ¶
open_like(
a: ArrayLike,
path: str,
*,
zarr_format: ZarrFormat | None = None,
**kwargs: Any,
) -> AnyArray
Open a persistent array like another array.
Parameters:
-
a(Array) –The shape and data-type of a define these same attributes of the returned array.
-
path(str) –The path to the new array.
-
zarr_format((2, 3, None), default:2) –The zarr format of the array to open or create. If
None(default), an existing array of either format is opened, and a missing one is created in the default zarr format. The zarr format ofais not inherited. -
**kwargs(Any, default:{}) –Additional keyword arguments passed to
open_array. Ifmodeis omitted orNone, it defaults to"a". Passmode="r"when opening an existing array from a read-only store.
Returns:
-
Array–The opened array.