Large volumes
Navigate streamed data without loading the whole source.
Start with an overview
TIFF sources use byte-range reads and decode tiles or strips. Zarr sources read individual chunks and choose a coarse pyramid level. The 3D view holds a sampled overview, not the entire volume.
Load a region
- Load your TIFF or Zarr source in the viewer.
- Open Large volume · streamed regions.
- Choose a resolution level.
- Enter start and exclusive end coordinates in Z/Y/X order. For example, start 0 and end 64 selects indices 0 through 63.
- Choose Load region. Use Whole overview to return to the selected level’s full extent.
Regions up to 128 voxels per axis can show full detail when their storage-block read budget permits. Larger regions use nearest-neighbor sampling. Initial and region loads can be cancelled; local TIFF reads finish the current block first.
Memory limits
| Per-source limit | Budget |
|---|---|
| Decoded block or shard index | 16 MiB |
| Decoded LRU cache | 32 MiB |
| Resident view | At most 128³ voxels; 8 MiB for uint32/float32 |
| Nominal decoded reads per overview request | 256 MiB |
GPU copies, decoder buffers, metadata, and other layers consume additional memory. A sampled overview can miss small structures: use a pyramid and inspect smaller regions for detail.
Prepare a pyramid
Run these commands from the repository root, using your Python virtual environment:
.venv/bin/python -m pip install numpy tifffile 'zarr>=3,<4'
.venv/bin/python scripts/prepare_large_volume.py input.tif output.zarr --spacing 25 25 25
Supply your actual spacing in Z/Y/X order, in micrometers. To prepare an existing Zarr array:
.venv/bin/python scripts/prepare_large_volume.py input.zarr output.zarr --array-path 0
The tool writes 64³ chunks and nearest-neighbor pyramid levels. It refuses an existing output and requires disk space for the complete pyramid. Compressed TIFF or Zarr blocks decoding above 16 MiB need retiling or rechunking first. Preparation does not register datasets.