subspace Examples#

This document contains JSON examples for subspace metadata layouts.

subspaceMultidim#

 1{
 2  "coordinateSystems": [
 3    {
 4      "name": "in",
 5      "axes": [
 6        { "name": "0", "type": "array" },
 7        { "name": "1", "type": "array" },
 8        { "name": "2", "type": "array" },
 9        { "name": "3", "type": "array" },
10        { "name": "4", "type": "array" }
11      ]
12    },
13    {
14      "name": "out",
15      "axes": [
16        { "name": "x", "type": "space" },
17        { "name": "y", "type": "space" },
18        { "name": "z", "type": "space" }
19      ]
20    }
21  ],
22  "coordinateTransformations": [
23    {
24      "type": "byDimension",
25      "name": "5D-to-3D-not-contiguous",
26      "input": "in",
27      "output": "out",
28      "transformations": [
29        {
30          "type": "mapAxis",
31          "mapAxis": { "0": "x", "2": "z" },
32          "input_axes": [ "0", "2" ],
33          "output_axes": [ "x", "z" ]
34        },
35        {
36          "type": "scale",
37          "scale": [ 2 ],
38          "input_axes": [ "1" ],
39          "output_axes": [ "y" ]
40        }
41      ]
42    }
43  ]
44}

subspacePermute#

 1{
 2  "coordinateSystems" : [
 3    { "name" : "in", "axes" : [ {"name" : "i"}, {"name" : "j" } ]},
 4    { "name" : "out", "axes" : [ {"name" : "x"}, {"name" : "y" } ]}
 5  ],
 6  "coordinateTransformations" : [
 7    { 
 8      "type" : "byDimension",
 9      "input" : "in",
10      "output" : "out",
11      "transformations" : [
12        {
13          "type": "identity",
14          "input_axes" : ["j"],
15          "output_axes" : ["x"]
16        },
17        {
18          "type": "scale",
19          "scale" : [2],
20          "input_axes" : ["i"],
21          "output_axes" : ["y"]
22        }
23      ]
24    }
25  ]
26}