zarr
stores.arrays._zarr.ZarrArrayStore(path, disk_format=DiskFormat.ZARR, mode='r', **kwargs)
¶
Bases: ArrayStore
Zarr-based array store where each logical path maps to a Zarr array.
Paths use '/' to denote nested logical structure.
Open a Zarr store using
zarr.open_group
.
Please refer to it's
documentation
for information on available args
and kwargs
.
PARAMETER | DESCRIPTION |
---|---|
store
|
Store or path to directory in file system or name of zip file.
Strings are interpreted as paths on the local file system and used as
the root argument to
|
mode
|
Persistence modes:
TYPE:
|
append(path, data, *args, **kwargs)
¶
Append data along the first axis to an existing Zarr array; creates the array with an unlimited first dimension if it does not exist.
available()
¶
List all stored Zarr array paths (joined by '/').
create(path, shape, overwrite=False, dtype=None, chunks='auto', **kwargs)
¶
Pre-allocate an array with the given shape and dtype.
PARAMETER | DESCRIPTION |
---|---|
path
|
hierarchical key, e.g. 'coords'. |
shape
|
full shape of the array. |
overwrite
|
if True, delete existing before create; otherwise error if exists.
TYPE:
|
dtype
|
numpy-compatible dtype.
TYPE:
|
chunks
|
chunk shape or 'auto'. |
read(path, view=None, **kwargs)
¶
Read the array from Zarr, optionally returning a subset efficiently. Returns None if the path does not exist.
write(path, data, view=None, dtype=None, **kwargs)
¶
Write data to an array, whole or sliced. Will create the array if it does not exist.
PARAMETER | DESCRIPTION |
---|---|
path
|
hierarchical key of the array. |
array
|
data to write.
|
view
|
if None, overwrite entire array (requires create or existing), else write into the specified slice region.
TYPE:
|
overwrite
|
if True and slices is None, replaces existing array definition.
|