ZarrStore

class tifffile.ZarrStore(*, fillvalue=None, chunkmode=None)

Zarr store base class.

ZarrStore instances must be closed with ZarrStore.close(), which is automatically called when using the ‘with’ context manager.

Parameters:
  • fillvalue (int | float | None) – Value to use for missing chunks of Zarr store. The default is 0.

  • chunkmode (CHUNKMODE | int | str | None) – Specifies how to chunk data.

References

  1. https://zarr.readthedocs.io/en/stable/spec/v2.html

  2. https://forum.image.sc/t/multiscale-arrays-v0-1/37930

close()

Close ZarrStore.

Return type:

None

flush()

Flush ZarrStore.

Return type:

None

clear()

Clear ZarrStore.

Return type:

None

keys()

Return keys in ZarrStore.

Return type:

KeysView[str]

items()

Return items in ZarrStore.

Return type:

ItemsView[str, Any]

values()

Return values in ZarrStore.

Return type:

ValuesView[Any]

property is_multiscales: bool

Return if ZarrStore is multi-scales.