# ExA-SPIM test acquisition 2026-08-04: four light-sheet tiles as OME-NGFF 0.5 / Zarr v3, sharded

## Facts

- Provider: Allen Institute for Neural Dynamics (AIND)
- License: CC-BY-4.0
- Size: 282 objects, 16,519,295,393 B (16.5 GB)
- Records: 4 tiles (2 positions x 2 channels); 6 levels (488) / 5 levels (561); 84 level-0 shards per 488 tile = 1,344 inner chunks of 128 x 256 x 256; level 0 of a 488 tile is 19.3 GB raw, 7.1 GB on disk
- Stored at: Amazon S3, s3://aind-open-data/exaSPIM_2026-08-04_10-27-41 (us-west-2)
- Access: public, readable without an account
- Category: Imaging
- Source: https://registry.opendata.aws/allen-nd-open-data/
- Page: https://scigantic.com/archive/965e3732-3286-5e26-8e6a-c0a78546ae16
- Keywords: Imaging, AWS Open Data

## About

A small ExA-SPIM acquisition from the Allen Institute for Neural Dynamics in the public aind-open-data bucket (us-west-2), notable because it is written in the current OME-NGFF 0.5 / Zarr v3 layout rather than the Zarr v2 of the older exaSPIM uploads. SPIM/ holds four stores, tile_{000000,000001}_ch_{488,561}.ome.zarr, each a zarr.json group whose attributes.ome.multiscales carries axes t,c,z,y,x and a 'mode'-downsampled pyramid. The 488 nm tiles have six levels from shape (1, 1, 1024, 2660, 3548) uint16 at 15.04 x 15.04 x 20 um (as recorded in the metadata) down to (1, 1, 32, 84, 111); the 561 nm tiles have five levels starting one step coarser at (1, 1, 512, 1330, 1774) and 30.08 x 30.08 x 40 um. Every array uses the sharding_indexed codec: 512^3 shards holding 128 x 256 x 256 inner chunks encoded transpose -> bytes (little endian) -> zstd level 3, with a bytes + crc32c shard index, so a level-0 tile is 84 shard objects of 69 to 110 MB rather than hundreds of thousands of small chunk files. Measured: 282 objects and 16.5 GB in total (7.1 and 7.3 GB for the two 488 tiles, 1.1 GB each for the 561 tiles). There is no acquisition.json, subject.json or data_description.json at this prefix, the omero window is the placeholder 0..1, and both tiles carry the same translation (z 19520, y -60276.8, x -37412.7 um), so the tile positions cannot be recovered from the store. Licence: the bucket is published under CC-BY-4.0 on the AWS Registry of Open Data; this prefix carries no licence file of its own.

## Load the data

```python
# Start here: click this cell, press Shift+Enter.
import os, time
import zarr

TILE = "tile_000000_ch_488"      # tile_000000 or tile_000001, channel 488 or 561

ROOT = os.environ.get("SCIGANTIC_MOUNT_PATH") or os.path.expanduser("~/archive")
g = zarr.open_group(f"{ROOT}/SPIM/{TILE}.ome.zarr", mode="r")
ome = g.attrs["ome"]
ms = ome["multiscales"][0]
print(f"{TILE}: Zarr v{g.metadata.zarr_format}, OME-NGFF {ome['version']}, axes {''.join(a['name'] for a in ms['axes'])}, {len(ms['datasets'])} levels")
for d in ms["datasets"]:
    a = g[d["path"]]
    z, y, x = d["coordinateTransformations"][0]["scale"][2:]
    print(f"  level {d['path']}: shape {a.shape[2:]}  voxel {x:.2f} x {y:.2f} x {z:.0f} um  shard {a.shards[2:]}  inner chunk {a.chunks[2:]}")
sh = g["0"].metadata.codecs[0].to_dict()
print("codecs: sharding_indexed ->", " -> ".join(c["name"] for c in sh["configuration"]["codecs"]),
      "| shard index:", " + ".join(c["name"] for c in sh["configuration"]["index_codecs"]))

t0 = time.time()
coarse = g[ms["datasets"][-1]["path"]][0, 0]
print(f"coarsest level read in {time.time() - t0:.1f} s: {coarse.shape} {coarse.dtype}, min {coarse.min()}, max {coarse.max()}, mean {coarse.mean():.1f}")
```

Written for a Scigantic notebook, where /mnt/archive (SCIGANTIC_MOUNT_PATH) is the mounted dataset.

## Data structure

| Field | Type |
| --- | --- |
| `<tile>.ome.zarr/zarr.json` | zarr_format 3, node_type group, attributes.ome = {version '0.5', multiscales[{axes[5], datasets[{path… |
| `<tile>.ome.zarr/<level>/zarr.json` | zarr_format 3, node_type array, data_type uint16, fill_value 0, shape (1,1,z,y,x), chunk_grid regular chunk_shape… |
| `shard object <level>/c/0/0/<z>/<y>/<x>` | concatenated zstd inner chunks followed by the index: n x (uint64 offset, uint64 nbytes) + uint32 crc32c; n = 16 for a… |

Files:

```text
/mnt/archive/
  SPIM/tile_000000_ch_488.ome.zarr/   zarr.json (group; attributes.ome.{version '0.5', multiscales, omero}), 0..5/zarr.json, 0..5/c/0/0/<z>/<y>/<x> shard objects
  SPIM/tile_000001_ch_488.ome.zarr/   same, 113 objects, 7.25 GB
  SPIM/tile_000000_ch_561.ome.zarr/   zarr.json, 0..4/zarr.json, 0..4/c/0/0/<z>/<y>/<x>, 28 objects, 1.09 GB
  SPIM/tile_000001_ch_561.ome.zarr/   same, 28 objects, 1.09 GB
  (nothing else: no acquisition.json, subject.json, data_description.json, derivatives/ or logs)

488 tiles: 6 levels, (z, y, x) shapes 0 (1024, 2660, 3548) | 1 (512, 1330, 1774) | 2 (256, 665, 887) | 3 (128, 333, 444) | 4 (64, 167, 222) | 5 (32, 84, 111); voxel 15.04 x 15.04 x 20 um at level 0 doubling per level; shard grids 84, 12, 4, 4, 1, 1 objects.
561 tiles: 5 levels starting at (512, 1330, 1774) and 30.08 x 30.08 x 40 um; shard grids 12, 4, 4, 1, 1.
Shard shape (as read from each level's zarr.json of the 488 tiles): 512^3 at levels 0 and 1, (256, 512, 512) at level 2, (128, 256, 256) at level 3, and the whole level at 4 and 5; inner chunk (128, 256, 256) through level 3, then the whole level. Level-0 shards are 69 to 110 MB (the first one 72.1 MB = 16 inner chunks of 4.5 MB each, zstd ratio 3.7x on 16.8 MB raw); the level-5 shard is 250,923 B.
multiscales: axes t c z y x (ms, channel, um), type 'mode' (downsampling method), name '<tile name>'; omero.channels[0] window 0..1 placeholder, color 000000; every tile's level-0 translation is (z 19520, y -60276.8, x -37412.66) um.
```

Example file: `SPIM/tile_000000_ch_488.ome.zarr/0/c/0/0/0/0/0 -> the first level-0 shard (72,134,335 B) holding 16 inner chunks; zarr's a[0, 0, 0:128, 0:256, 0:256] fetches one 4.5 MB inner chunk from it (max 1328, mean 1031.5, 1.0 s over HTTPS)`

## Open it

- In a hosted notebook with the data mounted: https://scigantic.com/archive/965e3732-3286-5e26-8e6a-c0a78546ae16
- Full record as JSON (schema card included): https://api.scigantic.com/api/archives/965e3732-3286-5e26-8e6a-c0a78546ae16
- Over MCP: `get_schema_card` with id `965e3732-3286-5e26-8e6a-c0a78546ae16` at https://api.scigantic.com/mcp

## Related topics

- [Imaging datasets](https://scigantic.com/topics/imaging)
