Debian Codegraph @

resources/schemas/stsci.edu/gwcs/regions_selector-1.1.0.yaml

raw
1 %YAML 1.1
2 ---
3 $schema: "http://stsci.edu/schemas/yaml-schema/draft-01"
4 id: "http://stsci.edu/schemas/gwcs/regions_selector-1.1.0"
5 title: >
6 Represents a discontinuous transform.
7 description: |
8 Maps regions to transgorms and evaluates the transforms with the corresponding inputs.
9
10 examples:
11 -
12 - Create a regions_selector schema for 2 regions, labeled "1" and "2".
13 - asdf-standard-1.5.0
14 - |
15 !<tag:stsci.edu:gwcs/regions_selector-1.1.0>
16 inputs: [x, y]
17 label_mapper: !<tag:stsci.edu:gwcs/label_mapper-1.1.0>
18 mapper: !core/ndarray-1.0.0
19 datatype: int8
20 data:
21 - [0, 1, 1, 0, 2, 0]
22 - [0, 1, 1, 0, 2, 0]
23 - [0, 1, 1, 0, 2, 0]
24 - [0, 1, 1, 0, 2, 0]
25 - [0, 1, 1, 0, 2, 0]
26 datatype: int64
27 shape: [5, 6]
28 no_label: 0
29 outputs: [ra, dec, lam]
30 selector: !!omap
31 - !!omap
32 labels: [1, 2]
33 - !!omap
34 transforms:
35 - !transform/compose-1.2.0
36 forward:
37 - !transform/remap_axes-1.3.0
38 mapping: [0, 1, 1]
39 - !transform/concatenate-1.2.0
40 forward:
41 - !transform/concatenate-1.2.0
42 forward:
43 - !transform/shift-1.2.0 {offset: 1.0}
44 - !transform/shift-1.2.0 {offset: 2.0}
45 - !transform/shift-1.2.0 {offset: 3.0}
46 - !transform/compose-1.2.0
47 forward:
48 - !transform/remap_axes-1.3.0
49 mapping: [0, 1, 1]
50 - !transform/concatenate-1.2.0
51 forward:
52 - !transform/concatenate-1.2.0
53 forward:
54 - !transform/scale-1.2.0 {factor: 2.0}
55 - !transform/scale-1.2.0 {factor: 3.0}
56 - !transform/scale-1.2.0 {factor: 3.0}
57 undefined_transform_value: .nan
58
59
60 allOf:
61 - $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.2.0"
62 - type: object
63 properties:
64 label_mapper:
65 description: |
66 An instance of
67 [label_mapper-1.1.0](ref:label_mapper-1.1.0)
68 $ref: "./label_mapper-1.1.0"
69 inputs:
70 description: |
71 Names of inputs.
72 type: array
73 items:
74 type: string
75 outputs:
76 description: |
77 Names of outputs.
78 type: array
79 items:
80 type: string
81 selector:
82 description: |
83 A mapping of regions to trransforms.
84 type: object
85 properties:
86 labels:
87 description: |
88 An array of unique region labels.
89 type: array
90 items:
91 type:
92 - integer
93 - string
94 transforms:
95 description: |
96 A transform for each region. The order should match the order of labels.
97 type: array
98 items:
99 $ref: "http://stsci.edu/schemas/asdf/transform/transform-1.2.0"
100 undefined_transform_value:
101 description: |
102 Value to be returned if there's no transform defined for the inputs.
103 type: number
104 required: [label_mapper, inputs, outputs, selector]
105 ...