multiscales_strict Examples#

This document contains JSON examples for multiscales_strict metadata layouts.

multiscales_example#

 1{
 2  "zarr_format": 3,
 3  "node_type": "group",
 4  "attributes": {
 5    "ome": {
 6      "version": "0.5",
 7      "multiscales": [
 8        {
 9          "name": "example",
10          "axes": [
11            { "name": "t", "type": "time", "unit": "millisecond" },
12            { "name": "c", "type": "channel" },
13            { "name": "z", "type": "space", "unit": "micrometer" },
14            { "name": "y", "type": "space", "unit": "micrometer" },
15            { "name": "x", "type": "space", "unit": "micrometer" }
16          ],
17          "datasets": [
18            {
19              "path": "0",
20              "coordinateTransformations": [
21                {
22                  // the voxel size for the first scale level (0.5 micrometer)
23                  "type": "scale",
24                  "scale": [1.0, 1.0, 0.5, 0.5, 0.5]
25                }
26              ]
27            },
28            {
29              "path": "1",
30              "coordinateTransformations": [
31                {
32                  // the voxel size for the second scale level (downscaled by a factor of 2 -> 1 micrometer)
33                  "type": "scale",
34                  "scale": [1.0, 1.0, 1.0, 1.0, 1.0]
35                }
36              ]
37            },
38            {
39              "path": "2",
40              "coordinateTransformations": [
41                {
42                  // the voxel size for the third scale level (downscaled by a factor of 4 -> 2 micrometer)
43                  "type": "scale",
44                  "scale": [1.0, 1.0, 2.0, 2.0, 2.0]
45                }
46              ]
47            }
48          ],
49          "coordinateTransformations": [
50            {
51              // the time unit (0.1 milliseconds), which is the same for each scale level
52              "type": "scale",
53              "scale": [0.1, 1.0, 1.0, 1.0, 1.0]
54            }
55          ],
56          "type": "gaussian",
57          "metadata": {
58            "description": "the fields in metadata depend on the downscaling implementation. Here, the parameters passed to the skimage function are given",
59            "method": "skimage.transform.pyramid_gaussian",
60            "version": "0.16.1",
61            "args": "[true]",
62            "kwargs": { "multichannel": true }
63          }
64        }
65      ]
66    }
67  }
68}

multiscales_transformations#

 1{
 2  "zarr_format": 3,
 3  "node_type": "group",
 4  "attributes": {
 5    "ome": {
 6      "version": "0.5",
 7      "multiscales": [
 8        {
 9          "axes": [
10            {
11              "name": "y",
12              "type": "space",
13              "unit": "micrometer"
14            },
15            {
16              "name": "x",
17              "type": "space",
18              "unit": "micrometer"
19            }
20          ],
21          "datasets": [
22            {
23              "path": "0",
24              "coordinateTransformations": [
25                {
26                  "scale": [1, 1],
27                  "type": "scale"
28                }
29              ]
30            }
31          ],
32          "coordinateTransformations": [
33            {
34              "scale": [10, 10],
35              "type": "scale"
36            }
37          ],
38          "name": "image_with_coordinateTransformations",
39          "type": "foo",
40          "metadata": {
41            "key": "value"
42          }
43        }
44      ]
45    }
46  }
47}