Debian Codegraph @

resources/schemas/representation-1.0.0.yaml

raw
1 %YAML 1.1
2 ---
3 $schema: "http://stsci.edu/schemas/yaml-schema/draft-01"
4 id: "http://astropy.org/schemas/astropy/coordinates/representation-1.0.0"
5
6 title: |
7 Representation of points or differentials in two or three dimensional space.
8
9 description: |
10 Representation of points or differentials in two or three dimensional space.
11
12 examples:
13 -
14 - A SphericalRepresentation
15 - asdf-standard-1.5.0
16 - |
17 !<tag:astropy.org:astropy/coordinates/representation-1.0.0>
18 components:
19 distance: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 AU, value: 1.0}
20 lat: !<tag:astropy.org:astropy/coordinates/latitude-1.0.0> {unit: !unit/unit-1.0.0 deg,
21 value: 10.0}
22 lon: !<tag:astropy.org:astropy/coordinates/longitude-1.0.0>
23 unit: !unit/unit-1.0.0 deg
24 value: 10.0
25 wrap_angle: !<tag:astropy.org:astropy/coordinates/angle-1.0.0> {unit: !unit/unit-1.0.0 deg,
26 value: 360.0}
27 type: SphericalRepresentation
28 -
29 - A CartesianDifferential
30 - asdf-standard-1.5.0
31 - |
32 !<tag:astropy.org:astropy/coordinates/representation-1.0.0>
33 components:
34 d_x: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 km s-1, value: 100.0}
35 d_y: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 km s-1, value: 200.0}
36 d_z: !unit/quantity-1.1.0 {unit: !unit/unit-1.0.0 km s-1, value: 3141.0}
37 type: CartesianDifferential
38
39 type: object
40 properties:
41 type:
42 type: string
43 enum:
44 - CartesianRepresentation
45 - SphericalRepresentation
46 - UnitSphericalRepresentation
47 - RadialRepresentation
48 - PhysicsSphericalRepresentation
49 - CylindricalRepresentation
50 - CartesianDifferential
51 - SphericalDifferential
52 - UnitSphericalCosLatDifferential
53 - UnitSphericalDifferential
54 - SphericalCosLatDifferential
55 - RadialDifferential
56 - PhysicsSphericalDifferential
57 - CylindricalDifferential
58
59 components:
60 anyOf:
61 # CartesianRepresentation
62 - type: object
63 properties:
64 x:
65 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
66 y:
67 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
68 z:
69 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
70
71 # SphericalRepresentation
72 - type: object
73 properties:
74 lat:
75 $ref: "latitude-1.0.0"
76 lon:
77 $ref: "longitude-1.0.0"
78 distance:
79 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
80
81 # UnitSphericalRepresentation
82 - type: object
83 properties:
84 lat:
85 $ref: "latitude-1.0.0"
86 lon:
87 $ref: "longitude-1.0.0"
88
89 # RadialRepresentation
90 - type: object
91 properties:
92 distance:
93 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
94
95 # PhysicsSphericalRepresentation
96 - type: object
97 properties:
98 phi:
99 $ref: "angle-1.0.0"
100 theta:
101 $ref: "angle-1.0.0"
102 r:
103 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
104
105 # CylindricalRepresentation
106 - type: object
107 properties:
108 rho:
109 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
110 phi:
111 $ref: "angle-1.0.0"
112 z:
113 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
114
115 # CartesianDifferential
116 - type: object
117 properties:
118 d_x:
119 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
120 d_y:
121 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
122 d_z:
123 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
124
125 # SphericalDifferential
126 - type: object
127 properties:
128 d_lon:
129 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
130 d_lat:
131 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
132 d_distance:
133 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
134
135 # UnitSphericalCosLatDifferential
136 - type: object
137 properties:
138 d_lon_coslat:
139 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
140 d_lat:
141 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
142
143 # UnitSphericalDifferential
144 - type: object
145 properties:
146 d_lon:
147 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
148 d_lat:
149 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
150
151 # SphericalCosLatDifferential
152 - type: object
153 properties:
154 d_lon_coslat:
155 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
156 d_lat:
157 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
158 d_distance:
159 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
160
161 # SphericalDifferential
162 - type: object
163 properties:
164 d_lon:
165 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
166 d_lat:
167 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
168 d_distance:
169 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
170
171 # RadialDifferential
172 - type: object
173 properties:
174 d_phi:
175 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
176 d_theta:
177 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
178 d_r:
179 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
180
181 # PhysicsSphericalDifferential
182 - type: object
183 properties:
184 d_phi:
185 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
186 d_theta:
187 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
188 d_r:
189 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
190
191 # RadialDifferential
192 - type: object
193 properties:
194 d_distance:
195 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
196
197 # CylindricalDifferential
198 - type: object
199 properties:
200 d_rho:
201 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
202 d_phi:
203 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
204 d_z:
205 $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
206
207 required: [type, components]
208 ...