Debian Codegraph @

gavo/resources/schemata/stc-v1.20.xsd

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- edited with XMLSpy v2005 sp2 U (http://www.altova.com) by Arnold Rots (Smithsonian Observatory) -->
3 <!-- edited with XMLSPY v2004 rel. 4 U (http://www.xmlspy.com) by Arnold Rots (Smithsonian Observatory) -->
4 <!-- edited with XML Spy v4.4 U (http://www.xmlspy.com) by Arnold Rots (Smithsonian Astrophysical Observatory) -->
5 <!-- $Id: stc.xsd,v 2.6 2005/02/25 19:30:24 arots Exp arots $ -->
6 <!-- Schema definition for the SpaceTimeCoords -->
7 <!--Change Log:
8 $Log: stc.xsd,v $
9 Revision 2.6 2005/02/25 19:30:24 arots
10 IVOA version 1.20:
11 Distinguished LSRK and LSRD, LOCAL_GROUP_CENTER replaces SUPER_GALACTIC_CENTER
12 Subtle changes to force validation by Xerces-J2: slight obfuscation
13 Added TEB time scale, warning on use of ISOTime (> 0001-01-01 !)
14 Added reference spheroid to GEO_D, changed GEO to GEO_C
15 Added discussion of planetographic vs planetocentric systems,
16 right- and left-handed systems
17 Removed GEOGRAPHIC CoordFlavor (is really 3-D spherical); added POLAR
18
19 Revision 2.5 2005/01/05 14:22:11 arots
20 Release Version 1.10
21 Added Pixel Space; overhaul of inheritance and polymorphism
22
23 Revision 2.4 2004/07/23 21:17:50 arots
24 Modified ivoa schema locations; changed URN from nvo- to vo-
25
26 Revision 2.3 2004/07/16 22:37:53 arots
27 Release version v1.0.
28
29 Revision 2.2 2004/07/07 16:16:22 arots
30 Completed conversion to substitution groups.
31 This version is ready for review.
32
33 revision 2.1
34 date: 2004/05/23 03:32:59; author: arots; state: Exp; lines: +798 -1
35 Fixed line breaks
36
37 revision 2.0
38 date: 2004/05/21 21:09:17; author: arots; state: Exp; lines: +1 -679
39 Reworking with substitution groups and generalized CoordSys & Coords.
40
41 revision 1.10
42 date: 2004/03/31 21:20:30; author: arots; state: Exp; lines: +362 -218
43 Proper units and improvements.
44
45 Revision 1.9 2003/08/06 19:31:04 arots
46 Added time reference direction to time frame.
47
48 Revision 1.8 2003/05/15 10:04:23 arots
49 Allow multiple intervals, add fill factor.
50
51 Revision 1.7 2003/05/08 20:28:19 arots
52 Added spectral coordinate.
53 Fixed intervals.
54 Rationalized coordinate frames.
55
56 Revision 1.6 2003/05/02 18:46:43 arots
57 Removed coord_sys_id attribute from time interval.
58
59 Revision 1.5 2003/04/30 16:55:58 arots
60 Added CoordSpec to Resource and Search - was needed.
61
62 Revision 1.4 2003/04/30 13:27:12 arots
63 Fixed up change log, changed schema locations.
64
65 Revision 1.3 2003/04/29 21:04:37 arots
66 Trivial.
67
68 Revision 1.2 2003/04/29 20:56:40 arots
69 Completed new astronTimeType and proper handling of units.
70
71 Revision 1.1 2003/04/28 16:25:34 arots
72 Initial revision
73 -->
74 <xs:schema xmlns:stc="http://www.ivoa.net/xml/STC/stc-v1.20.xsd" xmlns:crd="http://www.ivoa.net/xml/STC/STCcoords/v1.20" xmlns:reg="http://www.ivoa.net/xml/STC/STCregion/v1.20" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.ivoa.net/xml/STC/stc-v1.20.xsd" elementFormDefault="qualified">
75 <xs:import namespace="http://www.ivoa.net/xml/STC/STCcoords/v1.20"
76 schemaLocation="http://docs.g-vo.org/schemata/coords-v1.20.xsd"/>
77 <xs:import namespace="http://www.ivoa.net/xml/STC/STCregion/v1.20" schemaLocation="http://vo.ari.uni-heidelberg.de/docs/schemata/region-v1.20.xsd"/>
78 <!-- CoordSystem -->
79 <!-- Reference frames -->
80 <xs:complexType name="coordFrameType">
81 <xs:annotation>
82 <xs:documentation>A CoordFrame has to have at least a name</xs:documentation>
83 </xs:annotation>
84 <xs:sequence>
85 <xs:element name="Name" type="xs:string" minOccurs="0"/>
86 </xs:sequence>
87 </xs:complexType>
88 <xs:element name="CoordFrame" type="stc:coordFrameType" abstract="true">
89 <xs:annotation>
90 <xs:documentation>CoordFrame substitution group head element</xs:documentation>
91 </xs:annotation>
92 </xs:element>
93 <xs:simpleType name="coordEquinoxType">
94 <xs:annotation>
95 <xs:documentation>Coordinate equinox: B{year} or J{year} with at least one decimal; do not use in conjunction with ICRS</xs:documentation>
96 </xs:annotation>
97 <xs:restriction base="xs:string">
98 <xs:pattern value="[BJ]\-?\d?\d?\d?\d\d\d\d\.\d\d?\d?"/>
99 </xs:restriction>
100 </xs:simpleType>
101 <xs:complexType name="spaceRefFrameType" abstract="true">
102 <xs:annotation>
103 <xs:documentation>Abstract space reference frame type</xs:documentation>
104 </xs:annotation>
105 </xs:complexType>
106 <xs:complexType name="icrsType">
107 <xs:annotation>
108 <xs:documentation>ICRS type: no equinox</xs:documentation>
109 </xs:annotation>
110 <xs:complexContent>
111 <xs:extension base="stc:spaceRefFrameType"/>
112 </xs:complexContent>
113 </xs:complexType>
114 <xs:complexType name="fkType">
115 <xs:annotation>
116 <xs:documentation>FK[45] type: needs an equinox</xs:documentation>
117 </xs:annotation>
118 <xs:complexContent>
119 <xs:extension base="stc:spaceRefFrameType">
120 <xs:sequence>
121 <xs:element name="Equinox" type="stc:coordEquinoxType" nillable="true"/>
122 </xs:sequence>
123 </xs:extension>
124 </xs:complexContent>
125 </xs:complexType>
126 <xs:complexType name="customSpaceRefFrameType">
127 <xs:annotation>
128 <xs:documentation>A custom space reference frame type defined through pole and X-axis directions</xs:documentation>
129 </xs:annotation>
130 <xs:complexContent>
131 <xs:extension base="stc:spaceRefFrameType">
132 <xs:sequence>
133 <xs:annotation>
134 <xs:documentation>Define coordinate reference frame from scratch; pole and X-axis need to be defined in a known coordinate system</xs:documentation>
135 </xs:annotation>
136 <xs:element name="Frame" type="xs:string"/>
137 <xs:element name="Pole_Zaxis" type="crd:astroCoordsType"/>
138 <xs:element name="Xaxis" type="crd:astroCoordsType"/>
139 </xs:sequence>
140 </xs:extension>
141 </xs:complexContent>
142 </xs:complexType>
143 <xs:element name="SpaceRefFrame" type="stc:spaceRefFrameType" abstract="true">
144 <xs:annotation>
145 <xs:documentation>Head element for the Coordinate reference frame substitution group: optional equinox with either a standard reference system (ICRS, FK5, FK4) and optional standard pole (equatorial, ecliptic, galactic, etc.), or a custom frame with pole (positive Z-axis) and positive X-axis direction </xs:documentation>
146 </xs:annotation>
147 </xs:element>
148 <xs:element name="ICRS" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
149 <xs:annotation>
150 <xs:documentation>The ICRS reference frame</xs:documentation>
151 </xs:annotation>
152 </xs:element>
153 <xs:element name="FK4" type="stc:fkType" substitutionGroup="stc:SpaceRefFrame">
154 <xs:annotation>
155 <xs:documentation>FK4; needs a Besselian epoch</xs:documentation>
156 </xs:annotation>
157 </xs:element>
158 <xs:element name="FK5" type="stc:fkType" substitutionGroup="stc:SpaceRefFrame">
159 <xs:annotation>
160 <xs:documentation>FK5; needs a Julian epoch</xs:documentation>
161 </xs:annotation>
162 </xs:element>
163 <xs:element name="ECLIPTIC" type="stc:fkType" substitutionGroup="stc:SpaceRefFrame">
164 <xs:annotation>
165 <xs:documentation>Ecliptic coordinates; needs an epoch</xs:documentation>
166 </xs:annotation>
167 </xs:element>
168 <xs:element name="GALACTIC_I" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
169 <xs:annotation>
170 <xs:documentation>Galactic coordinates; first system</xs:documentation>
171 </xs:annotation>
172 </xs:element>
173 <xs:element name="GALACTIC_II" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
174 <xs:annotation>
175 <xs:documentation>Galactic coordinates; second system</xs:documentation>
176 </xs:annotation>
177 </xs:element>
178 <xs:element name="SUPER_GALACTIC" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
179 <xs:annotation>
180 <xs:documentation>SuperGalactic coordinates</xs:documentation>
181 </xs:annotation>
182 </xs:element>
183 <xs:element name="AZ_EL" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
184 <xs:annotation>
185 <xs:documentation>Local Azimuth and Elevation coordinates</xs:documentation>
186 </xs:annotation>
187 </xs:element>
188 <xs:element name="BODY" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
189 <xs:annotation>
190 <xs:documentation>Generic Body coordinates</xs:documentation>
191 </xs:annotation>
192 </xs:element>
193 <!--Solar and earth-related coordinate frames; see Fraenz & Harper 2002, Plan & Sp Sci 50, 217-->
194 <xs:element name="GEO_C" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
195 <xs:annotation>
196 <xs:documentation>The Geocentric (co-rotating) reference frame</xs:documentation>
197 </xs:annotation>
198 </xs:element>
199 <xs:element name="GEO_D" substitutionGroup="stc:SpaceRefFrame">
200 <xs:annotation>
201 <xs:documentation>The Geodetic reference frame; semi-major axis and inverse flattening may be provided to define the reference spheroid; the default is the IAU 1976 reference spheroid</xs:documentation>
202 </xs:annotation>
203 <xs:complexType>
204 <xs:complexContent>
205 <xs:extension base="stc:icrsType">
206 <xs:attribute name="radius" type="xs:double" use="optional" default="6378140"/>
207 <xs:attribute name="inv_flattening" type="xs:double" use="optional" default="298.257"/>
208 <xs:attribute name="unit" type="crd:posUnitType" use="optional" default="m"/>
209 </xs:extension>
210 </xs:complexContent>
211 </xs:complexType>
212 </xs:element>
213 <xs:element name="MAG" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
214 <xs:annotation>
215 <xs:documentation>The Geomagnetic reference frame</xs:documentation>
216 </xs:annotation>
217 </xs:element>
218 <xs:element name="GSE" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
219 <xs:annotation>
220 <xs:documentation>The Geocentric Solar Ecliptic reference frame</xs:documentation>
221 </xs:annotation>
222 </xs:element>
223 <xs:element name="GSM" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
224 <xs:annotation>
225 <xs:documentation>The Geocentric Solar Magnetic reference frame</xs:documentation>
226 </xs:annotation>
227 </xs:element>
228 <xs:element name="SM" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
229 <xs:annotation>
230 <xs:documentation>The Solar Magnetic reference frame</xs:documentation>
231 </xs:annotation>
232 </xs:element>
233 <xs:element name="HGC" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
234 <xs:annotation>
235 <xs:documentation>The Heliographic reference frame</xs:documentation>
236 </xs:annotation>
237 </xs:element>
238 <xs:element name="HEE" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
239 <xs:annotation>
240 <xs:documentation>The Heliocentric Earth Ecliptic reference frame</xs:documentation>
241 </xs:annotation>
242 </xs:element>
243 <xs:element name="HEEQ" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
244 <xs:annotation>
245 <xs:documentation>The Heliocentric Earth Equatorial reference frame</xs:documentation>
246 </xs:annotation>
247 </xs:element>
248 <xs:element name="HCI" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
249 <xs:annotation>
250 <xs:documentation>The Heliocentric Inertial reference frame</xs:documentation>
251 </xs:annotation>
252 </xs:element>
253 <xs:element name="HCD" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
254 <xs:annotation>
255 <xs:documentation>The Heliocentric of Date reference frame</xs:documentation>
256 </xs:annotation>
257 </xs:element>
258 <!--Planetocentric (co-rotating) system coordinate frames; see Explanatory Supplement, Sec 7.4 or Fraenz & Harper 2002, Plan & Sp Sci 50, 217, Table 6-->
259 <xs:element name="MERCURY_C" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
260 <xs:annotation>
261 <xs:documentation>The planetocentric reference frame anchored on Mercury</xs:documentation>
262 </xs:annotation>
263 </xs:element>
264 <xs:element name="VENUS_C" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
265 <xs:annotation>
266 <xs:documentation>The planetocentric reference frame anchored on Venus</xs:documentation>
267 </xs:annotation>
268 </xs:element>
269 <xs:element name="LUNA_C" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
270 <xs:annotation>
271 <xs:documentation>The lunacentric reference frame anchored on the moon</xs:documentation>
272 </xs:annotation>
273 </xs:element>
274 <xs:element name="MARS_C" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
275 <xs:annotation>
276 <xs:documentation>The planetocentric reference frame anchored on Mars</xs:documentation>
277 </xs:annotation>
278 </xs:element>
279 <xs:element name="JUPITER_C_III" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
280 <xs:annotation>
281 <xs:documentation>The planetocentric reference frame anchored on Jupiter</xs:documentation>
282 </xs:annotation>
283 </xs:element>
284 <xs:element name="SATURN_C_III" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
285 <xs:annotation>
286 <xs:documentation>The planetocentric reference frame anchored on Saturn</xs:documentation>
287 </xs:annotation>
288 </xs:element>
289 <xs:element name="URANUS_C_III" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
290 <xs:annotation>
291 <xs:documentation>The planetocentric reference frame anchored on Uranus</xs:documentation>
292 </xs:annotation>
293 </xs:element>
294 <xs:element name="NEPTUNE_C_III" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
295 <xs:annotation>
296 <xs:documentation>The planetocentric reference frame anchored on Neptune</xs:documentation>
297 </xs:annotation>
298 </xs:element>
299 <xs:element name="PLUTO_C" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
300 <xs:annotation>
301 <xs:documentation>The planetocentric reference frame anchored on Pluto</xs:documentation>
302 </xs:annotation>
303 </xs:element>
304 <!--Planetographic (co-rotating) system coordinate frames; see Explanatory Supplement, Sec 7.4 or Fraenz & Harper 2002, Plan & Sp Sci 50, 217, Table 6-->
305 <xs:element name="MERCURY_G" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
306 <xs:annotation>
307 <xs:documentation>The planetographic reference frame anchored on Mercury</xs:documentation>
308 </xs:annotation>
309 </xs:element>
310 <xs:element name="VENUS_G" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
311 <xs:annotation>
312 <xs:documentation>The planetographic reference frame anchored on Venus</xs:documentation>
313 </xs:annotation>
314 </xs:element>
315 <xs:element name="LUNA_G" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
316 <xs:annotation>
317 <xs:documentation>The lunagraphic reference frame anchored on the moon</xs:documentation>
318 </xs:annotation>
319 </xs:element>
320 <xs:element name="MARS_G" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
321 <xs:annotation>
322 <xs:documentation>The planetographic reference frame anchored on Mars</xs:documentation>
323 </xs:annotation>
324 </xs:element>
325 <xs:element name="JUPITER_G_III" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
326 <xs:annotation>
327 <xs:documentation>The planetographic reference frame anchored on Jupiter</xs:documentation>
328 </xs:annotation>
329 </xs:element>
330 <xs:element name="SATURN_G_III" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
331 <xs:annotation>
332 <xs:documentation>The planetographic reference frame anchored on Saturn</xs:documentation>
333 </xs:annotation>
334 </xs:element>
335 <xs:element name="URANUS_G_III" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
336 <xs:annotation>
337 <xs:documentation>The planetographic reference frame anchored on Uranus</xs:documentation>
338 </xs:annotation>
339 </xs:element>
340 <xs:element name="NEPTUNE_G_III" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
341 <xs:annotation>
342 <xs:documentation>The planetographic reference frame anchored on Neptune</xs:documentation>
343 </xs:annotation>
344 </xs:element>
345 <xs:element name="PLUTO_G" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
346 <xs:annotation>
347 <xs:documentation>The planetographic reference frame anchored on Pluto</xs:documentation>
348 </xs:annotation>
349 </xs:element>
350 <!--Unknown space reference frame; the client is responsible for assigning a default-->
351 <xs:element name="UNKNOWNFrame" type="stc:icrsType" substitutionGroup="stc:SpaceRefFrame">
352 <xs:annotation>
353 <xs:documentation>Unknown space reference frame; the client is responsible for assigning a default</xs:documentation>
354 </xs:annotation>
355 </xs:element>
356 <!--The Custom frame-->
357 <xs:element name="CustomSpaceRefFrame" type="stc:customSpaceRefFrameType" substitutionGroup="stc:SpaceRefFrame">
358 <xs:annotation>
359 <xs:documentation>Coordinate reference frame: a custom pole (positive Z-axis) and positive X-axis direction </xs:documentation>
360 </xs:annotation>
361 </xs:element>
362 <xs:simpleType name="planetaryEphemType">
363 <xs:annotation>
364 <xs:documentation>If solar system positions are implied anywhere, the planetary ephemeris to be used needs to be provided - usually JPL-DE405 with ICRS and JPL-DE200 with FK5</xs:documentation>
365 </xs:annotation>
366 <xs:restriction base="xs:string">
367 <xs:enumeration value="JPL-DE200"/>
368 <xs:enumeration value="JPL-DE405"/>
369 </xs:restriction>
370 </xs:simpleType>
371 <xs:complexType name="referencePositionType" abstract="true">
372 <xs:annotation>
373 <xs:documentation>Abstract type for reference positions</xs:documentation>
374 </xs:annotation>
375 </xs:complexType>
376 <xs:complexType name="stdRefPosType">
377 <xs:annotation>
378 <xs:documentation>Type for standard reference positions</xs:documentation>
379 </xs:annotation>
380 <xs:complexContent>
381 <xs:extension base="stc:referencePositionType">
382 <xs:sequence>
383 <xs:element name="PlanetaryEphem" type="stc:planetaryEphemType" nillable="true" minOccurs="0"/>
384 </xs:sequence>
385 </xs:extension>
386 </xs:complexContent>
387 </xs:complexType>
388 <xs:complexType name="customRefPosType">
389 <xs:annotation>
390 <xs:documentation>Type for custom positions: specifies reference origin</xs:documentation>
391 </xs:annotation>
392 <xs:complexContent>
393 <xs:extension base="stc:referencePositionType">
394 <xs:sequence>
395 <xs:element name="CoordOrigin" type="crd:astroCoordsType"/>
396 </xs:sequence>
397 </xs:extension>
398 </xs:complexContent>
399 </xs:complexType>
400 <xs:element name="ReferencePosition" type="stc:referencePositionType" abstract="true">
401 <xs:annotation>
402 <xs:documentation>Head element from the ReferencePosition substitution group: either a "known place" such as geocenter or barycenter (RefPos), or a position defined in a known coordinate system (CoordOrigin)</xs:documentation>
403 </xs:annotation>
404 </xs:element>
405 <xs:element name="TOPOCENTER" type="stc:stdRefPosType" substitutionGroup="stc:ReferencePosition">
406 <xs:annotation>
407 <xs:documentation>Location of the observer/telescope</xs:documentation>
408 </xs:annotation>
409 </xs:element>
410 <xs:element name="BARYCENTER" type="stc:stdRefPosType" substitutionGroup="stc:ReferencePosition">
411 <xs:annotation>
412 <xs:documentation>Barycenter of the solar system</xs:documentation>
413 </xs:annotation>
414 </xs:element>
415 <xs:element name="HELIOCENTER" type="stc:stdRefPosType" substitutionGroup="stc:ReferencePosition">
416 <xs:annotation>
417 <xs:documentation>Center of the sun</xs:documentation>
418 </xs:annotation>
419 </xs:element>
420 <xs:element name="GEOCENTER" type="stc:stdRefPosType" substitutionGroup="stc:ReferencePosition">
421 <xs:annotation>
422 <xs:documentation>Center of the earth</xs:documentation>
423 </xs:annotation>
424 </xs:element>
425 <xs:element name="LSR" type="stc:stdRefPosType" substitutionGroup="stc:ReferencePosition">
426 <xs:annotation>
427 <xs:documentation>(Kinematic) Local Standard of Rest (only used for Doppler velocities); equivalent to LSRK</xs:documentation>
428 </xs:annotation>
429 </xs:element>
430 <xs:element name="LSRK" type="stc:stdRefPosType" substitutionGroup="stc:ReferencePosition">
431 <xs:annotation>
432 <xs:documentation>Kinematic Local Standard of Rest (only used for Doppler velocities); equivalent to LSR</xs:documentation>
433 </xs:annotation>
434 </xs:element>
435 <xs:element name="LSRD" type="stc:stdRefPosType" substitutionGroup="stc:ReferencePosition">
436 <xs:annotation>
437 <xs:documentation>Dynamic Local Standard of Rest (only used for Doppler velocities)</xs:documentation>
438 </xs:annotation>
439 </xs:element>
440 <xs:element name="GALACTIC_CENTER" type="stc:stdRefPosType" substitutionGroup="stc:ReferencePosition">
441 <xs:annotation>
442 <xs:documentation>Center of the Galaxy</xs:documentation>
443 </xs:annotation>
444 </xs:element>
445 <xs:element name="LOCAL_GROUP_CENTER" type="stc:stdRefPosType" substitutionGroup="stc:ReferencePosition">
446 <xs:annotation>
447 <xs:documentation>Center of the Local Group</xs:documentation>
448 </xs:annotation>
449 </xs:element>
450 <xs:element name="MOON" type="stc:stdRefPosType" substitutionGroup="stc:ReferencePosition">
451 <xs:annotation>
452 <xs:documentation>Center of the Moon</xs:documentation>
453 </xs:annotation>
454 </xs:element>
455 <xs:element name="EMBARYCENTER" type="stc:stdRefPosType" substitutionGroup="stc:ReferencePosition">
456 <xs:annotation>
457 <xs:documentation>Barycenter of the Earth-Moon system</xs:documentation>
458 </xs:annotation>
459 </xs:element>
460 <xs:element name="MERCURY" type="stc:stdRefPosType" substitutionGroup="stc:ReferencePosition">
461 <xs:annotation>
462 <xs:documentation>Center of Mercury</xs:documentation>
463 </xs:annotation>
464 </xs:element>
465 <xs:element name="VENUS" type="stc:stdRefPosType" substitutionGroup="stc:ReferencePosition">
466 <xs:annotation>
467 <xs:documentation>Center of Venus</xs:documentation>
468 </xs:annotation>
469 </xs:element>
470 <xs:element name="MARS" type="stc:stdRefPosType" substitutionGroup="stc:ReferencePosition">
471 <xs:annotation>
472 <xs:documentation>Center of Mars</xs:documentation>
473 </xs:annotation>
474 </xs:element>
475 <xs:element name="JUPITER" type="stc:stdRefPosType" substitutionGroup="stc:ReferencePosition">
476 <xs:annotation>
477 <xs:documentation>Center of Jupiter</xs:documentation>
478 </xs:annotation>
479 </xs:element>
480 <xs:element name="SATURN" type="stc:stdRefPosType" substitutionGroup="stc:ReferencePosition">
481 <xs:annotation>
482 <xs:documentation>Center of Saturn</xs:documentation>
483 </xs:annotation>
484 </xs:element>
485 <xs:element name="URANUS" type="stc:stdRefPosType" substitutionGroup="stc:ReferencePosition">
486 <xs:annotation>
487 <xs:documentation>Center of Uranus</xs:documentation>
488 </xs:annotation>
489 </xs:element>
490 <xs:element name="NEPTUNE" type="stc:stdRefPosType" substitutionGroup="stc:ReferencePosition">
491 <xs:annotation>
492 <xs:documentation>Center of Neptune</xs:documentation>
493 </xs:annotation>
494 </xs:element>
495 <xs:element name="PLUTO" type="stc:stdRefPosType" substitutionGroup="stc:ReferencePosition">
496 <xs:annotation>
497 <xs:documentation>Center of Pluto</xs:documentation>
498 </xs:annotation>
499 </xs:element>
500 <xs:element name="RELOCATABLE" type="stc:stdRefPosType" substitutionGroup="stc:ReferencePosition">
501 <xs:annotation>
502 <xs:documentation>A relocatable origin, especially useful for simulations</xs:documentation>
503 </xs:annotation>
504 </xs:element>
505 <xs:element name="UNKNOWNRefPos" type="stc:stdRefPosType" substitutionGroup="stc:ReferencePosition">
506 <xs:annotation>
507 <xs:documentation>Unknown origin; the client is responsible for assigning a default</xs:documentation>
508 </xs:annotation>
509 </xs:element>
510 <xs:element name="CustomRefPos" type="stc:customRefPosType" substitutionGroup="stc:ReferencePosition">
511 <xs:annotation>
512 <xs:documentation>Origin of the coordinate system, given as a position in another, known, coordinate system</xs:documentation>
513 </xs:annotation>
514 </xs:element>
515 <xs:complexType name="coordFlavorType">
516 <xs:annotation>
517 <xs:documentation>Provides the coordinate definitions: number of axes, SPHERICAL, CARTESIAN, or UNITSPHERE, presence of velocities</xs:documentation>
518 </xs:annotation>
519 <xs:attribute name="coord_naxes" default="2">
520 <xs:simpleType>
521 <xs:restriction base="xs:integer">
522 <xs:minInclusive value="1"/>
523 <xs:maxInclusive value="3"/>
524 </xs:restriction>
525 </xs:simpleType>
526 </xs:attribute>
527 <xs:attribute name="coord_vel" type="xs:boolean" default="false"/>
528 </xs:complexType>
529 <xs:element name="CoordFlavor" type="stc:coordFlavorType" abstract="true">
530 <xs:annotation>
531 <xs:documentation>Abstract head element for the CoordFlavor substitution group</xs:documentation>
532 </xs:annotation>
533 </xs:element>
534 <xs:element name="SPHERICAL" type="stc:coordFlavorType" substitutionGroup="stc:CoordFlavor">
535 <xs:annotation>
536 <xs:documentation>Spherical 2-D (longitude, latitude) or 3-D (long, lat, radius/elevation) coordinates</xs:documentation>
537 </xs:annotation>
538 </xs:element>
539 <xs:element name="CARTESIAN" type="stc:coordFlavorType" substitutionGroup="stc:CoordFlavor">
540 <xs:annotation>
541 <xs:documentation>Cartesian 1-, 2-, or 3-D coordinates</xs:documentation>
542 </xs:annotation>
543 </xs:element>
544 <xs:element name="UNITSPHERE" type="stc:coordFlavorType" substitutionGroup="stc:CoordFlavor">
545 <xs:annotation>
546 <xs:documentation>3-D Unit sphere coordinates (direction cosines); in (long,lat), X is in the direction (0,0), Y (pi/2,0), Z (0,pi/2)</xs:documentation>
547 </xs:annotation>
548 </xs:element>
549 <xs:element name="POLAR" type="stc:coordFlavorType" substitutionGroup="stc:CoordFlavor">
550 <xs:annotation>
551 <xs:documentation>2-D polar coordinates (radius, posangle)</xs:documentation>
552 </xs:annotation>
553 </xs:element>
554 <xs:complexType name="spaceFrameType">
555 <xs:annotation>
556 <xs:documentation>A spatial coordinate frame consists of a coordinate frame and a reference position</xs:documentation>
557 </xs:annotation>
558 <xs:complexContent>
559 <xs:extension base="stc:coordFrameType">
560 <xs:sequence>
561 <xs:element ref="stc:SpaceRefFrame">
562 <xs:annotation>
563 <xs:documentation>Coordinate reference frame: optional equinox with either a standard reference system (ICRS, FK5, FK4) and optional standard pole (equatorial, ecliptic, galactic, etc.), or pole (positive Z-axis) and positive X-axis direction </xs:documentation>
564 </xs:annotation>
565 </xs:element>
566 <xs:element ref="stc:ReferencePosition">
567 <xs:annotation>
568 <xs:documentation>Origin of the coordinate reference frame: either a "known place" such as geocenter or barycenter, or a position defined in a known coordinate system</xs:documentation>
569 </xs:annotation>
570 </xs:element>
571 <xs:element name="OffsetCenter" minOccurs="0">
572 <xs:complexType>
573 <xs:sequence>
574 <xs:element ref="crd:CoordValue"/>
575 </xs:sequence>
576 </xs:complexType>
577 </xs:element>
578 <xs:element ref="stc:CoordFlavor">
579 <xs:annotation>
580 <xs:documentation>Provides the coordinate definitions: number of axes, SPHERICAL or CARTESIAN, presence of velocities, and the Doppler definitions (if needed)</xs:documentation>
581 </xs:annotation>
582 </xs:element>
583 </xs:sequence>
584 </xs:extension>
585 </xs:complexContent>
586 </xs:complexType>
587 <xs:complexType name="timeFrameType">
588 <xs:annotation>
589 <xs:documentation>The time reference frame consists of a timescale, a reference position, and optionally a reference direction (needed when transformations have been applied)</xs:documentation>
590 </xs:annotation>
591 <xs:complexContent>
592 <xs:extension base="stc:coordFrameType">
593 <xs:sequence>
594 <xs:element name="TimeScale" type="crd:timeScaleType" default="TT">
595 <xs:annotation>
596 <xs:documentation>The time reference frame consists of a time scale, a time format, and a reference time, if needed</xs:documentation>
597 </xs:annotation>
598 </xs:element>
599 <xs:element ref="stc:ReferencePosition">
600 <xs:annotation>
601 <xs:documentation>Origin of the coordinate reference frame: either a "known place" such as geocenter or barycenter, or a position defined in a known coordinate system</xs:documentation>
602 </xs:annotation>
603 </xs:element>
604 <xs:element name="TimeRefDirection" type="crd:astroCoordsType" minOccurs="0">
605 <xs:annotation>
606 <xs:documentation>Some time transformations (e.g., change of RefPos) depend on an assumed directonal position of the source</xs:documentation>
607 </xs:annotation>
608 </xs:element>
609 </xs:sequence>
610 </xs:extension>
611 </xs:complexContent>
612 </xs:complexType>
613 <xs:complexType name="spectralFrameType">
614 <xs:annotation>
615 <xs:documentation>Contains the spectral frame reference position</xs:documentation>
616 </xs:annotation>
617 <xs:complexContent>
618 <xs:extension base="stc:coordFrameType">
619 <xs:sequence>
620 <xs:element ref="stc:ReferencePosition">
621 <xs:annotation>
622 <xs:documentation>The reference frame for the Doppler velocities; note presence of LSR</xs:documentation>
623 </xs:annotation>
624 </xs:element>
625 </xs:sequence>
626 </xs:extension>
627 </xs:complexContent>
628 </xs:complexType>
629 <xs:simpleType name="dopplerDefinitionType">
630 <xs:annotation>
631 <xs:documentation>The Doppler definition used: optical, radio, or pseudo-relativistic (i.e., how is a redshift converted to a velocity); the most common is optical, except when the reference is LSR (usually radio)</xs:documentation>
632 </xs:annotation>
633 <xs:restriction base="xs:string">
634 <xs:enumeration value="OPTICAL"/>
635 <xs:enumeration value="RADIO"/>
636 <xs:enumeration value="RELATIVISTIC"/>
637 </xs:restriction>
638 </xs:simpleType>
639 <xs:complexType name="redshiftFrameType">
640 <xs:annotation>
641 <xs:documentation>Contains the Doppler definitions, including whether the values are velocity or redshift (value_type)</xs:documentation>
642 </xs:annotation>
643 <xs:complexContent>
644 <xs:extension base="stc:coordFrameType">
645 <xs:sequence>
646 <xs:element name="DopplerDefinition" type="stc:dopplerDefinitionType" nillable="true">
647 <xs:annotation>
648 <xs:documentation>The Doppler definition used: optical, radio, or pseudo-relativistic (i.e., how is a redshift converted to a velocity); the most common is optical, except when the reference is LSR (usually radio)</xs:documentation>
649 </xs:annotation>
650 </xs:element>
651 <xs:element ref="stc:ReferencePosition">
652 <xs:annotation>
653 <xs:documentation>The reference frame for the Doppler velocities; note presence of LSR</xs:documentation>
654 </xs:annotation>
655 </xs:element>
656 </xs:sequence>
657 <xs:attribute name="value_type" use="optional" default="VELOCITY">
658 <xs:simpleType>
659 <xs:restriction base="xs:string">
660 <xs:enumeration value="VELOCITY"/>
661 <xs:enumeration value="REDSHIFT"/>
662 </xs:restriction>
663 </xs:simpleType>
664 </xs:attribute>
665 </xs:extension>
666 </xs:complexContent>
667 </xs:complexType>
668 <!--CoordSys definition-->
669 <xs:complexType name="coordSysType">
670 <xs:annotation>
671 <xs:documentation>A CoordSys consists of at least one coordinate frames</xs:documentation>
672 </xs:annotation>
673 <xs:sequence maxOccurs="unbounded">
674 <xs:element ref="stc:TimeFrame" minOccurs="0"/>
675 <xs:element ref="stc:SpaceFrame" minOccurs="0"/>
676 <xs:element ref="stc:SpectralFrame" minOccurs="0"/>
677 <xs:element ref="stc:RedshiftFrame" minOccurs="0"/>
678 <xs:sequence minOccurs="0" maxOccurs="unbounded">
679 <xs:element ref="stc:CoordFrame"/>
680 </xs:sequence>
681 </xs:sequence>
682 <xs:attribute name="ID" type="xs:ID" use="required"/>
683 </xs:complexType>
684 <xs:element name="CoordSys" type="stc:coordSysType">
685 <xs:annotation>
686 <xs:documentation>Head element (not abstract) of the CoordSys group</xs:documentation>
687 </xs:annotation>
688 </xs:element>
689 <!-- AstroCoordSystem -->
690 <xs:element name="TimeFrame" type="stc:timeFrameType">
691 <xs:annotation>
692 <xs:documentation>The time coordinate reference frame</xs:documentation>
693 </xs:annotation>
694 </xs:element>
695 <xs:element name="SpaceFrame" type="stc:spaceFrameType">
696 <xs:annotation>
697 <xs:documentation>The spatial coordinate reference frame</xs:documentation>
698 </xs:annotation>
699 </xs:element>
700 <xs:element name="SpectralFrame" type="stc:spectralFrameType">
701 <xs:annotation>
702 <xs:documentation>The reference frame for the spectral coordinate; note presence of LSR</xs:documentation>
703 </xs:annotation>
704 </xs:element>
705 <xs:element name="RedshiftFrame" type="stc:redshiftFrameType">
706 <xs:annotation>
707 <xs:documentation>Contains the Doppler definitions, including whether the values are velocity or redshift (value_type)</xs:documentation>
708 </xs:annotation>
709 </xs:element>
710 <xs:element name="PixelCoordFrame" type="stc:coordFrameType" substitutionGroup="stc:CoordFrame">
711 <xs:annotation>
712 <xs:documentation>Element for pixel Coordinate Frames</xs:documentation>
713 </xs:annotation>
714 </xs:element>
715 <xs:element name="GenericCoordFrame" type="stc:coordFrameType" substitutionGroup="stc:CoordFrame">
716 <xs:annotation>
717 <xs:documentation>Element for generic Coordinate Frames</xs:documentation>
718 </xs:annotation>
719 </xs:element>
720 <xs:complexType name="astroCoordSystemType">
721 <xs:annotation>
722 <xs:documentation>The astroniomical coordinate system definition: spatial coordinate frame and reference position; time frame and reference position; the coordinate flavor; spectral frame and (optionally) Doppler frame; and the planetary ephemeris; an ID is required, since this is how coordinate elements are associated with their coordinate systems</xs:documentation>
723 </xs:annotation>
724 <xs:complexContent>
725 <xs:restriction base="stc:coordSysType">
726 <xs:sequence>
727 <xs:element ref="stc:TimeFrame"/>
728 <xs:element ref="stc:SpaceFrame"/>
729 <xs:element ref="stc:SpectralFrame" minOccurs="0"/>
730 <xs:element ref="stc:RedshiftFrame" minOccurs="0"/>
731 <xs:sequence minOccurs="0" maxOccurs="unbounded">
732 <xs:element ref="stc:GenericCoordFrame"/>
733 </xs:sequence>
734 </xs:sequence>
735 <xs:attribute name="ID" type="xs:ID" use="required"/>
736 </xs:restriction>
737 </xs:complexContent>
738 </xs:complexType>
739 <xs:element name="AstroCoordSystem" type="stc:astroCoordSystemType" substitutionGroup="stc:CoordSys">
740 <xs:annotation>
741 <xs:documentation>The coordinate system definition: spatial coordinate frame and reference position; time frame and reference position; the coordinate flavor; and the planetary ephemeris; an ID is required, since this is how coordinate elements are associated with their coordinate systems</xs:documentation>
742 </xs:annotation>
743 </xs:element>
744 <!--Pixel coordinate system-->
745 <xs:complexType name="pixelCoordSystemType">
746 <xs:annotation>
747 <xs:documentation>The pixel coordinate system definition</xs:documentation>
748 </xs:annotation>
749 <xs:complexContent>
750 <xs:restriction base="stc:coordSysType">
751 <xs:sequence>
752 <xs:sequence maxOccurs="unbounded">
753 <xs:element ref="stc:PixelCoordFrame"/>
754 </xs:sequence>
755 </xs:sequence>
756 <xs:attribute name="ID" type="xs:ID" use="required"/>
757 </xs:restriction>
758 </xs:complexContent>
759 </xs:complexType>
760 <xs:element name="PixelCoordSystem" type="stc:pixelCoordSystemType" substitutionGroup="stc:CoordSys">
761 <xs:annotation>
762 <xs:documentation>Pixel form of CoordSys</xs:documentation>
763 </xs:annotation>
764 </xs:element>
765 <!--Types for CoordArea-->
766 <xs:complexType name="coordIntervalType" abstract="true">
767 <xs:annotation>
768 <xs:documentation>Abstract coordinate interval type</xs:documentation>
769 </xs:annotation>
770 <xs:attribute name="lo_include" type="xs:boolean" default="true">
771 <xs:annotation>
772 <xs:documentation>Limit to be included?</xs:documentation>
773 </xs:annotation>
774 </xs:attribute>
775 <xs:attribute name="hi_include" type="xs:boolean" default="true">
776 <xs:annotation>
777 <xs:documentation>Limit to be included?</xs:documentation>
778 </xs:annotation>
779 </xs:attribute>
780 <xs:attribute name="fill_factor" type="xs:float" use="optional" default="1.0">
781 <xs:annotation>
782 <xs:documentation>Fraction of interval that is occupied by data</xs:documentation>
783 </xs:annotation>
784 </xs:attribute>
785 </xs:complexType>
786 <xs:complexType name="timeIntervalType">
787 <xs:annotation>
788 <xs:documentation>The time interval needs to contain a start time or a stop time or both; it needs to refer to a coordinate system; boundaries may or may not be inclusive</xs:documentation>
789 </xs:annotation>
790 <xs:complexContent>
791 <xs:extension base="stc:coordIntervalType">
792 <xs:sequence>
793 <xs:element name="StartTime" type="crd:astronTimeType" minOccurs="0">
794 <xs:annotation>
795 <xs:documentation>astronTime may be expressed in ISO8601 or as a double relative to a reference time</xs:documentation>
796 </xs:annotation>
797 </xs:element>
798 <xs:element name="StopTime" type="crd:astronTimeType" minOccurs="0">
799 <xs:annotation>
800 <xs:documentation>astronTime may be expressed in ISO8601 or as a double relative to a reference time</xs:documentation>
801 </xs:annotation>
802 </xs:element>
803 </xs:sequence>
804 </xs:extension>
805 </xs:complexContent>
806 </xs:complexType>
807 <xs:complexType name="coordScalarIntervalType">
808 <xs:annotation>
809 <xs:documentation>Scalar coordinate interval type</xs:documentation>
810 </xs:annotation>
811 <xs:complexContent>
812 <xs:extension base="stc:coordIntervalType">
813 <xs:sequence>
814 <xs:element name="LoLimit" type="xs:double" minOccurs="0">
815 <xs:annotation>
816 <xs:documentation>Lower bound of interval</xs:documentation>
817 </xs:annotation>
818 </xs:element>
819 <xs:element name="HiLimit" type="xs:double" minOccurs="0">
820 <xs:annotation>
821 <xs:documentation>Upper bound of interval</xs:documentation>
822 </xs:annotation>
823 </xs:element>
824 </xs:sequence>
825 </xs:extension>
826 </xs:complexContent>
827 </xs:complexType>
828 <xs:complexType name="coord2VecIntervalType">
829 <xs:annotation>
830 <xs:documentation>2-D coordinate interval type</xs:documentation>
831 </xs:annotation>
832 <xs:complexContent>
833 <xs:extension base="stc:coordIntervalType">
834 <xs:sequence>
835 <xs:element name="LoLimit2Vec" type="crd:double2Type" minOccurs="0"/>
836 <xs:element name="HiLimit2Vec" type="crd:double2Type" minOccurs="0"/>
837 </xs:sequence>
838 </xs:extension>
839 </xs:complexContent>
840 </xs:complexType>
841 <xs:complexType name="coord3VecIntervalType">
842 <xs:annotation>
843 <xs:documentation>3-D coordinate interval type</xs:documentation>
844 </xs:annotation>
845 <xs:complexContent>
846 <xs:extension base="stc:coordIntervalType">
847 <xs:sequence>
848 <xs:element name="LoLimit3Vec" type="crd:double3Type" minOccurs="0"/>
849 <xs:element name="HiLimit3Vec" type="crd:double3Type" minOccurs="0"/>
850 </xs:sequence>
851 </xs:extension>
852 </xs:complexContent>
853 </xs:complexType>
854 <xs:element name="CoordInterval" type="stc:coordIntervalType" abstract="true">
855 <xs:annotation>
856 <xs:documentation>The spatial coordinate interval substitution group head element; such an element needs to contain a minimum or maximum scalar or vector value, or both; it needs to refer to a coordinate system; boundaries may or may not be inclusive; and it can have a fill factor</xs:documentation>
857 </xs:annotation>
858 </xs:element>
859 <xs:element name="CoordScalarInterval" type="stc:coordScalarIntervalType" substitutionGroup="stc:CoordInterval">
860 <xs:annotation>
861 <xs:documentation>An interval in a scalar coordinate</xs:documentation>
862 </xs:annotation>
863 </xs:element>
864 <xs:element name="Coord2VecInterval" type="stc:coord2VecIntervalType" substitutionGroup="stc:CoordInterval">
865 <xs:annotation>
866 <xs:documentation>An interval ("box") in a 2-D coordinate pair</xs:documentation>
867 </xs:annotation>
868 </xs:element>
869 <xs:element name="Coord3VecInterval" type="stc:coord3VecIntervalType" substitutionGroup="stc:CoordInterval">
870 <xs:annotation>
871 <xs:documentation>An interval ("cube") in a 3-D coordinate triplet</xs:documentation>
872 </xs:annotation>
873 </xs:element>
874 <xs:complexType name="spatialIntervalType" abstract="true">
875 <xs:annotation>
876 <xs:documentation>Parent type for spatial intervals</xs:documentation>
877 </xs:annotation>
878 </xs:complexType>
879 <xs:complexType name="sphereType">
880 <xs:annotation>
881 <xs:documentation>Defines a sphere</xs:documentation>
882 </xs:annotation>
883 <xs:complexContent>
884 <xs:extension base="stc:spatialIntervalType">
885 <xs:sequence>
886 <xs:element name="Radius" type="xs:double"/>
887 <xs:element name="Center" type="crd:double3Type"/>
888 </xs:sequence>
889 <xs:attribute name="unit" type="crd:posUnitType" use="required"/>
890 <xs:attribute name="radius_unit" type="crd:posUnitType" use="optional" default="deg"/>
891 <xs:attribute name="fill_factor" type="xs:float" use="optional" default="1.0"/>
892 </xs:extension>
893 </xs:complexContent>
894 </xs:complexType>
895 <xs:complexType name="velocitySphereType">
896 <xs:annotation>
897 <xs:documentation>Defines a velocity sphere</xs:documentation>
898 </xs:annotation>
899 <xs:complexContent>
900 <xs:extension base="stc:sphereType">
901 <xs:annotation>
902 <xs:documentation>A special kind of area is a circle or sphere (in two or three dimensions), defined by a center position and a radius; the radius requires a unit</xs:documentation>
903 </xs:annotation>
904 <xs:attribute name="vel_time_unit" type="crd:velTimeUnitType" use="required"/>
905 </xs:extension>
906 </xs:complexContent>
907 </xs:complexType>
908 <xs:complexType name="positionIntervalType">
909 <xs:annotation>
910 <xs:documentation>Contains a spatial position CoordInterval</xs:documentation>
911 </xs:annotation>
912 <xs:complexContent>
913 <xs:extension base="stc:spatialIntervalType">
914 <xs:sequence>
915 <xs:element ref="stc:CoordInterval"/>
916 </xs:sequence>
917 <xs:attribute name="unit" type="crd:posUnitType" use="required"/>
918 </xs:extension>
919 </xs:complexContent>
920 </xs:complexType>
921 <xs:complexType name="velocityIntervalType">
922 <xs:annotation>
923 <xs:documentation>Contains a spatial velocity CoordInterval</xs:documentation>
924 </xs:annotation>
925 <xs:complexContent>
926 <xs:extension base="stc:positionIntervalType">
927 <xs:annotation>
928 <xs:documentation>A special kind of area is a circle or sphere (in two or three dimensions), defined by a center position and a radius; the radius requires a unit</xs:documentation>
929 </xs:annotation>
930 <xs:attribute name="vel_time_unit" type="crd:velTimeUnitType" use="required"/>
931 </xs:extension>
932 </xs:complexContent>
933 </xs:complexType>
934 <xs:complexType name="regionFileType">
935 <xs:annotation>
936 <xs:documentation>Points to a Region file</xs:documentation>
937 </xs:annotation>
938 <xs:complexContent>
939 <xs:extension base="stc:spatialIntervalType">
940 <xs:sequence>
941 <xs:element name="File" type="xs:anyURI"/>
942 </xs:sequence>
943 </xs:extension>
944 </xs:complexContent>
945 </xs:complexType>
946 <xs:complexType name="regionType">
947 <xs:annotation>
948 <xs:documentation>Contains an abstract Region</xs:documentation>
949 </xs:annotation>
950 <xs:complexContent>
951 <xs:extension base="stc:spatialIntervalType">
952 <xs:sequence>
953 <xs:element ref="reg:Region"/>
954 </xs:sequence>
955 </xs:extension>
956 </xs:complexContent>
957 </xs:complexType>
958 <!-- CoordArea -->
959 <xs:element name="SpatialInterval" type="stc:spatialIntervalType" abstract="true">
960 <xs:annotation>
961 <xs:documentation>The spatial interval substitution group head element; a spatial coordinate interval (volume) is specified as a circle (cone) or sphere; a 1-D, 2-D, or 3-D interval; a Region; or a RegionFile</xs:documentation>
962 </xs:annotation>
963 </xs:element>
964 <xs:element name="Sphere" type="stc:sphereType" substitutionGroup="stc:SpatialInterval">
965 <xs:annotation>
966 <xs:documentation>Defines a sphere (3-D) region for spatial coordinates; contains a center position and a radius</xs:documentation>
967 </xs:annotation>
968 </xs:element>
969 <xs:element name="PositionInterval" type="stc:positionIntervalType" substitutionGroup="stc:SpatialInterval">
970 <xs:annotation>
971 <xs:documentation>Contains a CoordInterval element: a 1-D range, 2-D box, or 3-D cube</xs:documentation>
972 </xs:annotation>
973 </xs:element>
974 <xs:element name="RegionFile" type="stc:regionFileType" substitutionGroup="stc:SpatialInterval">
975 <xs:annotation>
976 <xs:documentation>A region as defined in a FITS region file</xs:documentation>
977 </xs:annotation>
978 </xs:element>
979 <xs:element name="Region" type="stc:regionType" substitutionGroup="stc:SpatialInterval">
980 <xs:annotation>
981 <xs:documentation>Contains a region as defined in the Region schema</xs:documentation>
982 </xs:annotation>
983 </xs:element>
984 <xs:element name="VelInterval" type="stc:spatialIntervalType" abstract="true">
985 <xs:annotation>
986 <xs:documentation>Contains a Velocity CoordInterval element: a 1-D range, 2-D box, or 3-D cube; plus a time unit for velocity values</xs:documentation>
987 </xs:annotation>
988 </xs:element>
989 <xs:element name="VelocitySphere" type="stc:velocitySphereType" substitutionGroup="stc:VelInterval">
990 <xs:annotation>
991 <xs:documentation>Defines a sphere (3-D) region for velocity coordinates; contains a center position and a radius</xs:documentation>
992 </xs:annotation>
993 </xs:element>
994 <xs:element name="VelocityInterval" type="stc:velocityIntervalType" substitutionGroup="stc:VelInterval">
995 <xs:annotation>
996 <xs:documentation>Contains a CoordInterval element: a 1-D range, 2-D box, or 3-D cube</xs:documentation>
997 </xs:annotation>
998 </xs:element>
999 <xs:complexType name="spectralIntervalType">
1000 <xs:annotation>
1001 <xs:documentation>Contains a 1-D spectral interval</xs:documentation>
1002 </xs:annotation>
1003 <xs:complexContent>
1004 <xs:extension base="stc:coordScalarIntervalType">
1005 <xs:attribute name="unit" type="crd:spectralUnitType" use="required"/>
1006 </xs:extension>
1007 </xs:complexContent>
1008 </xs:complexType>
1009 <xs:complexType name="redshiftIntervalType">
1010 <xs:annotation>
1011 <xs:documentation>Contains a 1-D redshift interval; position and time units are required if redshifts are expressed as Doppler velocities</xs:documentation>
1012 </xs:annotation>
1013 <xs:complexContent>
1014 <xs:extension base="stc:coordScalarIntervalType">
1015 <xs:attribute name="unit" type="crd:posUnitType" use="optional"/>
1016 <xs:attribute name="vel_time_unit" type="crd:velTimeUnitType" use="optional"/>
1017 </xs:extension>
1018 </xs:complexContent>
1019 </xs:complexType>
1020 <xs:complexType name="coordAreaType">
1021 <xs:annotation>
1022 <xs:documentation>Generalized coordinate area type</xs:documentation>
1023 </xs:annotation>
1024 <xs:sequence maxOccurs="unbounded">
1025 <xs:element name="TimeInterval" type="stc:timeIntervalType" minOccurs="0" maxOccurs="unbounded"/>
1026 <xs:element ref="stc:SpatialInterval" minOccurs="0"/>
1027 <xs:element ref="stc:VelInterval" minOccurs="0" maxOccurs="unbounded"/>
1028 <xs:element name="SpectralInterval" type="stc:spectralIntervalType" minOccurs="0" maxOccurs="unbounded"/>
1029 <xs:element name="RedshiftInterval" type="stc:redshiftIntervalType" minOccurs="0" maxOccurs="unbounded"/>
1030 <xs:sequence minOccurs="0" maxOccurs="unbounded">
1031 <xs:element ref="stc:CoordInterval"/>
1032 </xs:sequence>
1033 </xs:sequence>
1034 <xs:attribute name="ID" type="xs:ID" use="required"/>
1035 <xs:attribute name="coord_system_id" type="xs:IDREF" use="required"/>
1036 </xs:complexType>
1037 <xs:complexType name="astroCoordAreaType">
1038 <xs:annotation>
1039 <xs:documentation>Astronomical area type</xs:documentation>
1040 </xs:annotation>
1041 <xs:complexContent>
1042 <xs:restriction base="stc:coordAreaType">
1043 <xs:sequence>
1044 <xs:element name="TimeInterval" type="stc:timeIntervalType" minOccurs="0" maxOccurs="unbounded"/>
1045 <xs:element ref="stc:SpatialInterval" minOccurs="0"/>
1046 <xs:element ref="stc:VelInterval" minOccurs="0" maxOccurs="unbounded"/>
1047 <xs:element name="SpectralInterval" type="stc:spectralIntervalType" minOccurs="0" maxOccurs="unbounded"/>
1048 <xs:element name="RedshiftInterval" type="stc:redshiftIntervalType" minOccurs="0" maxOccurs="unbounded"/>
1049 <xs:sequence minOccurs="0" maxOccurs="unbounded">
1050 <xs:element ref="stc:CoordScalarInterval"/>
1051 </xs:sequence>
1052 </xs:sequence>
1053 <xs:attribute name="ID" type="xs:ID" use="required"/>
1054 <xs:attribute name="coord_system_id" type="xs:IDREF" use="required"/>
1055 </xs:restriction>
1056 </xs:complexContent>
1057 </xs:complexType>
1058 <xs:complexType name="pixelCoordAreaType">
1059 <xs:annotation>
1060 <xs:documentation>Pixel area type</xs:documentation>
1061 </xs:annotation>
1062 <xs:complexContent>
1063 <xs:restriction base="stc:coordAreaType">
1064 <xs:sequence>
1065 <xs:sequence maxOccurs="unbounded">
1066 <xs:element ref="stc:CoordScalarInterval"/>
1067 </xs:sequence>
1068 </xs:sequence>
1069 <xs:attribute name="ID" type="xs:ID" use="required"/>
1070 <xs:attribute name="coord_system_id" type="xs:IDREF" use="required"/>
1071 </xs:restriction>
1072 </xs:complexContent>
1073 </xs:complexType>
1074 <xs:element name="CoordArea" type="stc:coordAreaType">
1075 <xs:annotation>
1076 <xs:documentation>General coordinate area description; head element but not abstract</xs:documentation>
1077 </xs:annotation>
1078 </xs:element>
1079 <xs:element name="AstroCoordArea" type="stc:astroCoordAreaType" substitutionGroup="stc:CoordArea">
1080 <xs:annotation>
1081 <xs:documentation>Astronomical coordinate volume</xs:documentation>
1082 </xs:annotation>
1083 </xs:element>
1084 <xs:element name="PixelCoordArea" type="stc:pixelCoordAreaType" substitutionGroup="stc:CoordArea">
1085 <xs:annotation>
1086 <xs:documentation>Pixel space bounds</xs:documentation>
1087 </xs:annotation>
1088 </xs:element>
1089 <!-- Toplevel: STCmetadata contains a choice of: ResourceProfile, SearchLocation, CatalogEntryLocation, and
1090 ObservationLocation plus ObservatoryLocation elements -->
1091 <xs:complexType name="stcMetadataType" abstract="true">
1092 <xs:annotation>
1093 <xs:documentation>Abstract stcMetadata type</xs:documentation>
1094 </xs:annotation>
1095 <xs:attribute name="ID" type="xs:ID" use="optional"/>
1096 </xs:complexType>
1097 <xs:complexType name="stcDescriptionType">
1098 <xs:annotation>
1099 <xs:documentation>Generalized single stcMetadata type</xs:documentation>
1100 </xs:annotation>
1101 <xs:complexContent>
1102 <xs:extension base="stc:stcMetadataType">
1103 <xs:sequence>
1104 <xs:sequence maxOccurs="unbounded">
1105 <xs:element ref="stc:CoordSys"/>
1106 </xs:sequence>
1107 <xs:sequence minOccurs="0" maxOccurs="unbounded">
1108 <xs:element ref="crd:Coords"/>
1109 </xs:sequence>
1110 <xs:sequence minOccurs="0" maxOccurs="unbounded">
1111 <xs:element ref="stc:CoordArea"/>
1112 </xs:sequence>
1113 </xs:sequence>
1114 </xs:extension>
1115 </xs:complexContent>
1116 </xs:complexType>
1117 <xs:complexType name="stcResourceProfileType">
1118 <xs:annotation>
1119 <xs:documentation>Type for STC Resource Profile</xs:documentation>
1120 </xs:annotation>
1121 <xs:complexContent>
1122 <xs:restriction base="stc:stcDescriptionType">
1123 <xs:sequence>
1124 <xs:sequence maxOccurs="unbounded">
1125 <xs:element ref="stc:AstroCoordSystem">
1126 <xs:annotation>
1127 <xs:documentation>The coordinate system definition: spatial coordinate frame and reference position; time frame and reference position; the coordinate flavor; and the planetary ephemeris; an ID is required, since this is how coordinate elements are associated with their coordinate systems</xs:documentation>
1128 </xs:annotation>
1129 </xs:element>
1130 </xs:sequence>
1131 <xs:element ref="crd:AstroCoords">
1132 <xs:annotation>
1133 <xs:documentation>CoordSpec contains information on time and spatial resolution, errors, and pixelsizes (if fixed); typical best numbers are expected</xs:documentation>
1134 </xs:annotation>
1135 </xs:element>
1136 <xs:element ref="stc:AstroCoordArea">
1137 <xs:annotation>
1138 <xs:documentation>The coverage area of the resource; the fill factor does not need to be 1.0</xs:documentation>
1139 </xs:annotation>
1140 </xs:element>
1141 </xs:sequence>
1142 <xs:attribute name="ID" type="xs:ID" use="optional"/>
1143 </xs:restriction>
1144 </xs:complexContent>
1145 </xs:complexType>
1146 <xs:complexType name="searchLocationType">
1147 <xs:annotation>
1148 <xs:documentation>Type for STC search location</xs:documentation>
1149 </xs:annotation>
1150 <xs:complexContent>
1151 <xs:restriction base="stc:stcDescriptionType">
1152 <xs:sequence>
1153 <xs:sequence maxOccurs="unbounded">
1154 <xs:element ref="stc:AstroCoordSystem"/>
1155 </xs:sequence>
1156 <xs:sequence minOccurs="0">
1157 <xs:element ref="crd:AstroCoords"/>
1158 </xs:sequence>
1159 <xs:element ref="stc:AstroCoordArea"/>
1160 </xs:sequence>
1161 <xs:attribute name="ID" type="xs:ID" use="optional"/>
1162 </xs:restriction>
1163 </xs:complexContent>
1164 </xs:complexType>
1165 <xs:complexType name="catalogEntryLocationType">
1166 <xs:annotation>
1167 <xs:documentation>Type for STC catalog entry description</xs:documentation>
1168 </xs:annotation>
1169 <xs:complexContent>
1170 <xs:restriction base="stc:stcDescriptionType">
1171 <xs:sequence>
1172 <xs:sequence maxOccurs="unbounded">
1173 <xs:element ref="stc:AstroCoordSystem"/>
1174 </xs:sequence>
1175 <xs:sequence maxOccurs="unbounded">
1176 <xs:element ref="crd:AstroCoords"/>
1177 </xs:sequence>
1178 <xs:sequence minOccurs="0" maxOccurs="unbounded">
1179 <xs:element ref="stc:AstroCoordArea"/>
1180 </xs:sequence>
1181 </xs:sequence>
1182 <xs:attribute name="ID" type="xs:ID" use="optional"/>
1183 </xs:restriction>
1184 </xs:complexContent>
1185 </xs:complexType>
1186 <xs:complexType name="obsDataLocationType">
1187 <xs:annotation>
1188 <xs:documentation>Type for observational STC metadata</xs:documentation>
1189 </xs:annotation>
1190 <xs:complexContent>
1191 <xs:extension base="stc:stcMetadataType">
1192 <xs:sequence>
1193 <xs:annotation>
1194 <xs:documentation>Describes the spatial and temporal volume covered by an observation</xs:documentation>
1195 </xs:annotation>
1196 <xs:element name="ObservatoryLocation" type="stc:observatoryLocationType">
1197 <xs:annotation>
1198 <xs:documentation>Specifies the location of the observatory during the observation</xs:documentation>
1199 </xs:annotation>
1200 </xs:element>
1201 <xs:element name="ObservationLocation" type="stc:observationLocationType">
1202 <xs:annotation>
1203 <xs:documentation>Describes the spatial and temporal coverage of the observation</xs:documentation>
1204 </xs:annotation>
1205 </xs:element>
1206 <xs:element name="PixelSpace" type="stc:pixelSpaceType" minOccurs="0">
1207 <xs:annotation>
1208 <xs:documentation>Defines the pixel coordinate system for pixelated data</xs:documentation>
1209 </xs:annotation>
1210 </xs:element>
1211 </xs:sequence>
1212 </xs:extension>
1213 </xs:complexContent>
1214 </xs:complexType>
1215 <xs:complexType name="observatoryLocationType">
1216 <xs:annotation>
1217 <xs:documentation>Type for an observatory location</xs:documentation>
1218 </xs:annotation>
1219 <xs:complexContent>
1220 <xs:restriction base="stc:stcDescriptionType">
1221 <xs:sequence>
1222 <xs:sequence maxOccurs="unbounded">
1223 <xs:element ref="stc:AstroCoordSystem"/>
1224 </xs:sequence>
1225 <xs:element ref="crd:AstroCoords"/>
1226 </xs:sequence>
1227 <xs:attribute name="ID" type="xs:ID" use="optional"/>
1228 </xs:restriction>
1229 </xs:complexContent>
1230 </xs:complexType>
1231 <xs:complexType name="observationLocationType">
1232 <xs:annotation>
1233 <xs:documentation>Type for describing the coordinate volume occupied by observational data, as seen from the observatory location</xs:documentation>
1234 </xs:annotation>
1235 <xs:complexContent>
1236 <xs:restriction base="stc:stcDescriptionType">
1237 <xs:sequence>
1238 <xs:sequence maxOccurs="unbounded">
1239 <xs:element ref="stc:AstroCoordSystem"/>
1240 </xs:sequence>
1241 <xs:element ref="crd:AstroCoords"/>
1242 <xs:sequence minOccurs="0">
1243 <xs:element ref="stc:AstroCoordArea"/>
1244 </xs:sequence>
1245 </xs:sequence>
1246 <xs:attribute name="ID" type="xs:ID" use="optional"/>
1247 </xs:restriction>
1248 </xs:complexContent>
1249 </xs:complexType>
1250 <xs:complexType name="pixelSpaceType">
1251 <xs:annotation>
1252 <xs:documentation>Type to specify a pixel space</xs:documentation>
1253 </xs:annotation>
1254 <xs:complexContent>
1255 <xs:restriction base="stc:stcDescriptionType">
1256 <xs:sequence>
1257 <xs:element ref="stc:PixelCoordSystem"/>
1258 <xs:sequence minOccurs="0" maxOccurs="unbounded">
1259 <xs:element ref="crd:PixelCoords"/>
1260 </xs:sequence>
1261 <xs:element ref="stc:PixelCoordArea"/>
1262 </xs:sequence>
1263 <xs:attribute name="ID" type="xs:ID" use="optional"/>
1264 </xs:restriction>
1265 </xs:complexContent>
1266 </xs:complexType>
1267 <xs:element name="STCmetadata" type="stc:stcMetadataType" abstract="true">
1268 <xs:annotation>
1269 <xs:documentation>Toplevel: Abstract STCmetadata contains a choice of: ResourceProfile, SearchLocation, CatalogEntryLocation, or ObservationLocation plus ObservatoryLocation elements</xs:documentation>
1270 </xs:annotation>
1271 </xs:element>
1272 <xs:element name="STCResourceProfile" type="stc:stcResourceProfileType" substitutionGroup="stc:STCmetadata">
1273 <xs:annotation>
1274 <xs:documentation>Describes the spatial and temporal coverage of a resource</xs:documentation>
1275 </xs:annotation>
1276 </xs:element>
1277 <xs:element name="SearchLocation" type="stc:searchLocationType" substitutionGroup="stc:STCmetadata">
1278 <xs:annotation>
1279 <xs:documentation>Defines the spatial and temporal coordinate space specified by a query</xs:documentation>
1280 </xs:annotation>
1281 </xs:element>
1282 <xs:element name="CatalogEntryLocation" type="stc:catalogEntryLocationType" substitutionGroup="stc:STCmetadata">
1283 <xs:annotation>
1284 <xs:documentation>Describes the spatial and temporal coverage of a catalog (fragment) and contains the coordinates of the catalog entries; multiple coordinate systems are allowed</xs:documentation>
1285 </xs:annotation>
1286 </xs:element>
1287 <xs:element name="ObsDataLocation" type="stc:obsDataLocationType" substitutionGroup="stc:STCmetadata">
1288 <xs:annotation>
1289 <xs:documentation>Describes the coordinate system used in and coordinate space occupied by a particular observational dataset; it contains an observation location, an observatory location, and optionally a pixel coordinate system</xs:documentation>
1290 </xs:annotation>
1291 </xs:element>
1292 </xs:schema>