Debian Codegraph @

resources/schemas/representation-1.2.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.2.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.6.0
16 - |
17 !<tag:astropy.org:astropy/coordinates/representation-1.2.0>
18 components:
19 distance: !unit/quantity-1.2.0 {unit: !unit/unit-1.0.0 AU, value: 1.0}
20 lat: !<tag:astropy.org:astropy/coordinates/latitude-1.1.0> {unit: !unit/unit-1.0.0 deg,
21 value: 10.0}
22 lon: !<tag:astropy.org:astropy/coordinates/longitude-1.1.0>
23 unit: !unit/unit-1.0.0 deg
24 value: 10.0
25 wrap_angle: !<tag:astropy.org:astropy/coordinates/angle-1.1.0> {unit: !unit/unit-1.0.0 deg,
26 value: 360.0}
27 type: SphericalRepresentation
28 -
29 - A CartesianDifferential
30 - asdf-standard-1.6.0
31 - |
32 !<tag:astropy.org:astropy/coordinates/representation-1.2.0>
33 components:
34 d_x: !unit/quantity-1.2.0 {unit: !unit/unit-1.0.0 km s-1, value: 100.0}
35 d_y: !unit/quantity-1.2.0 {unit: !unit/unit-1.0.0 km s-1, value: 200.0}
36 d_z: !unit/quantity-1.2.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 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
66 y:
67 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
68 z:
69 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
70
71 # SphericalRepresentation
72 - type: object
73 properties:
74 lat:
75 tag: "tag:astropy.org:astropy/coordinates/latitude-1.*"
76 lon:
77 tag: "tag:astropy.org:astropy/coordinates/longitude-1.*"
78 distance:
79 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
80
81 # UnitSphericalRepresentation
82 - type: object
83 properties:
84 lat:
85 tag: "tag:astropy.org:astropy/coordinates/latitude-1.*"
86 lon:
87 tag: "tag:astropy.org:astropy/coordinates/longitude-1.*"
88
89 # RadialRepresentation
90 - type: object
91 properties:
92 distance:
93 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
94
95 # PhysicsSphericalRepresentation
96 - type: object
97 properties:
98 phi:
99 tag: "tag:astropy.org:astropy/coordinates/angle-1.*"
100 theta:
101 tag: "tag:astropy.org:astropy/coordinates/angle-1.*"
102 r:
103 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
104
105 # CylindricalRepresentation
106 - type: object
107 properties:
108 rho:
109 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
110 phi:
111 tag: "tag:astropy.org:astropy/coordinates/angle-1.*"
112 z:
113 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
114
115 # CartesianDifferential
116 - type: object
117 properties:
118 d_x:
119 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
120 d_y:
121 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
122 d_z:
123 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
124
125 # SphericalDifferential
126 - type: object
127 properties:
128 d_lon:
129 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
130 d_lat:
131 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
132 d_distance:
133 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
134
135 # UnitSphericalCosLatDifferential
136 - type: object
137 properties:
138 d_lon_coslat:
139 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
140 d_lat:
141 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
142
143 # UnitSphericalDifferential
144 - type: object
145 properties:
146 d_lon:
147 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
148 d_lat:
149 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
150
151 # SphericalCosLatDifferential
152 - type: object
153 properties:
154 d_lon_coslat:
155 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
156 d_lat:
157 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
158 d_distance:
159 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
160
161 # SphericalDifferential
162 - type: object
163 properties:
164 d_lon:
165 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
166 d_lat:
167 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
168 d_distance:
169 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
170
171 # RadialDifferential
172 - type: object
173 properties:
174 d_phi:
175 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
176 d_theta:
177 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
178 d_r:
179 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
180
181 # PhysicsSphericalDifferential
182 - type: object
183 properties:
184 d_phi:
185 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
186 d_theta:
187 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
188 d_r:
189 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
190
191 # RadialDifferential
192 - type: object
193 properties:
194 d_distance:
195 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
196
197 # CylindricalDifferential
198 - type: object
199 properties:
200 d_rho:
201 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
202 d_phi:
203 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
204 d_z:
205 tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
206
207 required: [type, components]
208 ...