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
multiscalesblock 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
zarrlibrary can open any store; no custom codec is needed. The per-chunk arrays hold Zarr Vectors encodings invlen-bytescells, 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¶
- Zarr v3 primer
- Store types and backends
- Dimensionality
- Codec pipeline
- Directory structure
- Root metadata
- Level groups
- Chunk arrays
- Fragment-index arrays
- Geometry types
- Fragments
- Object manifest
- Links
- Object attributes
- Chunk shape
- Bin shape
- Chunk vs bin
- Attribute-based chunking
- Rechunking
- Sharding
- Chunk sources (composite levels)
- Octree chunks
- Multiscale metadata
- Pyramid construction
- Object sparsity
- Validation overview
- L1: Structural validation
- L2: Metadata validation
- L3: Consistency validation
- Spec change process
- Adding a geometry type
- Compliance testing
- Implementation notes
- Machine-readable schema