Skip to article frontmatterSkip to article content

subspace

This document contains JSON examples for subspace metadata layouts.

subspaceMultidim

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

subspacePermute

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