Sphere Specification
Layer Specification
Sphere annotations are stored on a napari
Points layer and
can contain multiple splines.
Points.datais an(n, d)array of n d-dimensional points.Points.featuresis a table which will contain column calledsphere_id, an integer id for each sphere.radius, a radius for each sphere.
Points.metadata["n3d_metadata"]is a dictionary with the following key/value pairsannotation_type:sphere
Zarr Array Specification
The following assumes an n3d file has been read into a variable called
n3d using the zarr library
import zarr
zarr.load('sphere.n3d')
n3dis an(n, d)zarr.core.Arraycontaining the center of each spheren3d.attrs["annotation_type"]is"sphere"n3d.attrs["sphere_id"]is an(n, )array containing a unique id for each spheren3d.attrs["radius"]is an(n, )array containing the radius for each sphere