Specification

This section is the reference for the Zarr Vectors on-disk format as zarr-vectors-py implements it: what a store contains, how it is chunked, how levels and objects are recorded, and how a store is validated. Each page has Terms, an Introduction and a Technical reference ending in Validation.

It describes format version 0.10.0 (zarr_vectors.constants.FORMAT_VERSION, whose docstring records the version history). Its metadata is the Zarr Vectors convention v0.1.0. 0.9.x stores are refused until migrated in place with zarr_vectors.building.migrate_metadata_0_10 (see Migrating from 0.9.x); older stores cannot be read. Where a page and the code disagree, the code is authoritative. Start with Directory structure.

Design goals

  • Spatial random access. A query reads only the chunks it overlaps, and only the bins it needs within them, on local disk or in an object store.

  • Pyramids in the format. Coarser levels live in the same store, listed by a multiscales block from the multiscales convention. See Multiscale metadata.

  • One layout for every geometry type. Points, streamlines, graphs, skeletons and meshes share one chunk layout. They differ only in which arrays a level holds.

  • Plain Zarr v3. The zarr library can open any store; no custom codec is needed. The per-chunk arrays hold Zarr Vectors encodings in vlen-bytes cells, a serializer whose Zarr spec is not final. See Zarr v3 primer and Codec pipeline.

  • Implementable from this spec. These pages are enough to write a conforming reader, writer or validator.

Specification sections