voruby 1.1.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (257) hide show
  1. data/Rakefile.rb +107 -224
  2. data/lib/misc.rb +1 -0
  3. data/lib/misc/misc.rb +60 -0
  4. data/lib/misc/propertyfile.rb +31 -0
  5. data/lib/symphony.rb +1 -0
  6. data/lib/symphony/symphony.rb +247 -0
  7. data/lib/voruby.rb +186 -0
  8. data/lib/voruby/active_votable/active_votable.rb +468 -347
  9. data/lib/voruby/adql/1.0/adql.rb +2418 -0
  10. data/lib/voruby/adql/support.rb +2 -0
  11. data/lib/voruby/misc.rb +351 -0
  12. data/lib/voruby/misc/connection_monitor.rb +97 -0
  13. data/lib/voruby/misc/libxml_ext.rb +121 -0
  14. data/lib/voruby/misc/rexml_ext.rb +223 -0
  15. data/lib/voruby/resolver/resolver.rb +12 -0
  16. data/lib/voruby/resolver/sesame.rb +299 -0
  17. data/lib/voruby/sky_query/sky_query.rb +192 -0
  18. data/lib/voruby/stc/1.10/coords.rb +2272 -0
  19. data/lib/voruby/stc/1.10/region.rb +892 -0
  20. data/lib/voruby/stc/1.10/stc.rb +3271 -0
  21. data/lib/voruby/stc/1.30/stc.rb +8666 -0
  22. data/lib/voruby/stc/support.rb +2 -0
  23. data/lib/voruby/ucd/ucd.rb +173 -0
  24. data/lib/voruby/voevent/1.1/voevent.rb +1124 -0
  25. data/lib/voruby/voevent/support.rb +5 -0
  26. data/lib/voruby/votable/1.0/votable.rb +1807 -0
  27. data/lib/voruby/votable/1.1/votable.rb +2100 -0
  28. data/lib/voruby/votable/votable.rb +305 -0
  29. data/lib/voruby/wesix/wesix.rb +491 -0
  30. data/lib/voruby/xlink/1.2/xlink.rb +21 -0
  31. data/test/voruby/active_votable/complex.vot +60 -0
  32. data/test/voruby/active_votable/error.vot +6 -0
  33. data/test/voruby/active_votable/large.vot +130040 -0
  34. data/test/voruby/active_votable/simple1.vot +38 -0
  35. data/test/voruby/active_votable/simple2.vot +38 -0
  36. data/test/voruby/active_votable/test.rb +193 -0
  37. data/test/voruby/adql/1.0/adql-alias.sql +1 -0
  38. data/test/voruby/adql/1.0/adql-alias.xml +26 -0
  39. data/test/voruby/adql/1.0/adql-avg.sql +1 -0
  40. data/test/voruby/adql/1.0/adql-avg.xml +31 -0
  41. data/test/voruby/adql/1.0/adql-circle.sql +1 -0
  42. data/test/voruby/adql/1.0/adql-circle.xml +46 -0
  43. data/test/voruby/adql/1.0/adql-expr.sql +1 -0
  44. data/test/voruby/adql/1.0/adql-expr.xml +34 -0
  45. data/test/voruby/adql/1.0/adql-function.sql +1 -0
  46. data/test/voruby/adql/1.0/adql-function.xml +41 -0
  47. data/test/voruby/adql/1.0/adql-group.sql +1 -0
  48. data/test/voruby/adql/1.0/adql-group.xml +51 -0
  49. data/test/voruby/adql/1.0/adql-having.sql +1 -0
  50. data/test/voruby/adql/1.0/adql-having.xml +25 -0
  51. data/test/voruby/adql/1.0/adql-like.sql +1 -0
  52. data/test/voruby/adql/1.0/adql-like.xml +17 -0
  53. data/test/voruby/adql/1.0/adql-order.sql +1 -0
  54. data/test/voruby/adql/1.0/adql-order.xml +37 -0
  55. data/test/voruby/adql/1.0/adql-simple.sql +1 -0
  56. data/test/voruby/adql/1.0/adql-simple.xml +12 -0
  57. data/test/voruby/adql/1.0/adql-top.sql +1 -0
  58. data/test/voruby/adql/1.0/adql-top.xml +33 -0
  59. data/test/voruby/adql/1.0/test.rb +2220 -0
  60. data/test/voruby/misc/test.rb +32 -0
  61. data/test/voruby/resolver/sesame/test.rb +56 -0
  62. data/test/voruby/sky_query/test.rb +107 -0
  63. data/test/voruby/stc/1.10/coords_test.rb +3704 -0
  64. data/test/voruby/stc/1.10/region_test.rb +993 -0
  65. data/test/voruby/stc/1.10/stc-catalog-entry-location.xml +112 -0
  66. data/test/voruby/stc/1.10/stc-obs-data-location.xml +126 -0
  67. data/test/voruby/stc/1.10/stc-region-circle.xml +5 -0
  68. data/test/voruby/stc/1.10/stc-region-convex.xml +11 -0
  69. data/test/voruby/stc/1.10/stc-region-convexhull.xml +5 -0
  70. data/test/voruby/stc/1.10/stc-region-ellipse.xml +7 -0
  71. data/test/voruby/stc/1.10/stc-region-intersection.xml +25 -0
  72. data/test/voruby/stc/1.10/stc-region-negation.xml +7 -0
  73. data/test/voruby/stc/1.10/stc-region-polygon.xml +13 -0
  74. data/test/voruby/stc/1.10/stc-region-sector.xml +6 -0
  75. data/test/voruby/stc/1.10/stc-region-union.xml +25 -0
  76. data/test/voruby/stc/1.10/stc-resource-profile.xml +60 -0
  77. data/test/voruby/stc/1.10/stc-search-location.xml +54 -0
  78. data/test/voruby/stc/1.10/stc_test.rb +4626 -0
  79. data/test/voruby/stc/1.30/stc-catalog-entry-location.xml +210 -0
  80. data/test/voruby/stc/1.30/stc-obs-data-location-arecibo.xml +353 -0
  81. data/test/voruby/stc/1.30/stc-obs-data-location-fits.xml +250 -0
  82. data/test/voruby/stc/1.30/stc-obs-data-location-xlink.xml +63 -0
  83. data/test/voruby/stc/1.30/stc-obs-data-location.xml +216 -0
  84. data/test/voruby/stc/1.30/stc-resource-profile-unusual-ref-pos.xml +39 -0
  85. data/test/voruby/stc/1.30/stc-resource-profile.xml +129 -0
  86. data/test/voruby/stc/1.30/stc-search-location-arecibo.xml +86 -0
  87. data/test/voruby/stc/1.30/stc-search-location.xml +101 -0
  88. data/test/voruby/stc/1.30/test.rb +6274 -0
  89. data/test/voruby/ucd/test.rb +48 -0
  90. data/test/voruby/voevent/1.1/test.rb +812 -0
  91. data/test/{voevent/voevent_v1_1.xml → voruby/voevent/1.1/voevent.xml} +2 -2
  92. data/test/voruby/voregistry/0.3/test.rb +137 -0
  93. data/test/voruby/votable/1.0/test.rb +714 -0
  94. data/test/voruby/votable/1.0/votable.basic.xml +660 -0
  95. data/test/voruby/votable/1.0/votable.html +86 -0
  96. data/test/voruby/votable/1.0/votable.ns.xml +56 -0
  97. data/test/voruby/votable/1.1/test.rb +785 -0
  98. data/test/voruby/votable/1.1/votable.basic.xml +38 -0
  99. data/test/voruby/votable/1.1/votable.html +86 -0
  100. data/test/voruby/votable/1.1/votable.ns.xml +56 -0
  101. data/test/voruby/votable/test.rb +15 -0
  102. data/test/voruby/wesix/test.rb +268 -0
  103. data/test/voruby/wesix/testr.fits +28 -0
  104. metadata +234 -247
  105. data/REQUIREMENTS +0 -6
  106. data/lib/voruby/active_votable/loader.rb +0 -5
  107. data/lib/voruby/adql/adql.rb +0 -2787
  108. data/lib/voruby/adql/ext.rb +0 -14
  109. data/lib/voruby/adql/loader.rb +0 -6
  110. data/lib/voruby/adql/operations.rb +0 -54
  111. data/lib/voruby/adql/parser.rb +0 -160
  112. data/lib/voruby/adql/transforms.rb +0 -573
  113. data/lib/voruby/ext.rb +0 -17
  114. data/lib/voruby/loader.rb +0 -4
  115. data/lib/voruby/misc/propertyfile.rb +0 -36
  116. data/lib/voruby/plastic/applications.rb +0 -174
  117. data/lib/voruby/plastic/constants.rb +0 -30
  118. data/lib/voruby/plastic/loader.rb +0 -10
  119. data/lib/voruby/plastic/plastic.rb +0 -1
  120. data/lib/voruby/resources/conesearch/conesearch.rb +0 -9
  121. data/lib/voruby/resources/conesearch/conesearch_v0_2.rb +0 -55
  122. data/lib/voruby/resources/conesearch/conesearch_v0_3.rb +0 -50
  123. data/lib/voruby/resources/conesearch/conesearch_v1_0.rb +0 -72
  124. data/lib/voruby/resources/conesearch/loader.rb +0 -4
  125. data/lib/voruby/resources/loader.rb +0 -50
  126. data/lib/voruby/resources/nodes.rb +0 -190
  127. data/lib/voruby/resources/openskynode/loader.rb +0 -4
  128. data/lib/voruby/resources/openskynode/openskynode.rb +0 -9
  129. data/lib/voruby/resources/openskynode/openskynode_v0_1.rb +0 -54
  130. data/lib/voruby/resources/sia/loader.rb +0 -5
  131. data/lib/voruby/resources/sia/sia.rb +0 -9
  132. data/lib/voruby/resources/sia/sia_v0_6.rb +0 -90
  133. data/lib/voruby/resources/sia/sia_v0_7.rb +0 -89
  134. data/lib/voruby/resources/sia/sia_v1_0.rb +0 -122
  135. data/lib/voruby/resources/stsci.rb +0 -59
  136. data/lib/voruby/resources/vodataservice/coverage_v0_2.rb +0 -195
  137. data/lib/voruby/resources/vodataservice/coverage_v0_3.rb +0 -158
  138. data/lib/voruby/resources/vodataservice/loader.rb +0 -5
  139. data/lib/voruby/resources/vodataservice/vodataservice.rb +0 -9
  140. data/lib/voruby/resources/vodataservice/vodataservice_v0_4.rb +0 -189
  141. data/lib/voruby/resources/vodataservice/vodataservice_v0_5.rb +0 -163
  142. data/lib/voruby/resources/vodataservice/vodataservice_v1_0.rb +0 -221
  143. data/lib/voruby/resources/voregistry/loader.rb +0 -4
  144. data/lib/voruby/resources/voregistry/voregistry.rb +0 -9
  145. data/lib/voruby/resources/voregistry/voregistry_v0_2.rb +0 -40
  146. data/lib/voruby/resources/voregistry/voregistry_v0_3.rb +0 -30
  147. data/lib/voruby/resources/voregistry/voregistry_v1_0.rb +0 -86
  148. data/lib/voruby/resources/voresource/loader.rb +0 -17
  149. data/lib/voruby/resources/voresource/voresource.rb +0 -9
  150. data/lib/voruby/resources/voresource/voresource_v0_10.rb +0 -327
  151. data/lib/voruby/resources/voresource/voresource_v0_9.rb +0 -405
  152. data/lib/voruby/resources/voresource/voresource_v1_0.rb +0 -230
  153. data/lib/voruby/services/ext.rb +0 -11
  154. data/lib/voruby/services/gestalt/footprint.rb +0 -95
  155. data/lib/voruby/services/gestalt/wcs_fixer.rb +0 -105
  156. data/lib/voruby/services/gestalt/wesix.rb +0 -155
  157. data/lib/voruby/services/loader.rb +0 -7
  158. data/lib/voruby/services/registry/registry.rb +0 -53
  159. data/lib/voruby/services/resolver/resolver.rb +0 -35
  160. data/lib/voruby/services/schema/schema.rb +0 -644
  161. data/lib/voruby/sesame/loader.rb +0 -6
  162. data/lib/voruby/sesame/sesame_v1_0.rb +0 -64
  163. data/lib/voruby/simple/loader.rb +0 -6
  164. data/lib/voruby/simple/parameters.rb +0 -196
  165. data/lib/voruby/simple/sap.rb +0 -446
  166. data/lib/voruby/spacetime/loader.rb +0 -3
  167. data/lib/voruby/spacetime/spacetime.rb +0 -607
  168. data/lib/voruby/stc/coords_v1_20.rb +0 -900
  169. data/lib/voruby/stc/loader.rb +0 -55
  170. data/lib/voruby/stc/region_v1_20.rb +0 -274
  171. data/lib/voruby/stc/stc_v1_20.rb +0 -1196
  172. data/lib/voruby/util.rb +0 -27
  173. data/lib/voruby/voevent/loader.rb +0 -7
  174. data/lib/voruby/voevent/voevent_v1_0.rb +0 -213
  175. data/lib/voruby/voevent/voevent_v1_1.rb +0 -196
  176. data/lib/voruby/votables/chandra.rb +0 -373
  177. data/lib/voruby/votables/data.rb +0 -179
  178. data/lib/voruby/votables/galex.rb +0 -377
  179. data/lib/voruby/votables/int.rb +0 -354
  180. data/lib/voruby/votables/libxml_parser.rb +0 -411
  181. data/lib/voruby/votables/libxml_votable.rb +0 -67
  182. data/lib/voruby/votables/loader.rb +0 -10
  183. data/lib/voruby/votables/meta.rb +0 -763
  184. data/lib/voruby/votables/misc.rb +0 -51
  185. data/lib/voruby/votables/nsa.rb +0 -410
  186. data/lib/voruby/votables/rexml_parser.rb +0 -408
  187. data/lib/voruby/votables/rexml_votable.rb +0 -67
  188. data/lib/voruby/votables/sdss.rb +0 -356
  189. data/lib/voruby/votables/transforms.rb +0 -388
  190. data/lib/voruby/votables/tree.rb +0 -45
  191. data/lib/voruby/votables/types.rb +0 -391
  192. data/lib/voruby/votables/votable.rb +0 -687
  193. data/test/active_votable/database.yml +0 -6
  194. data/test/active_votable/test.vot +0 -168492
  195. data/test/active_votable/unittest.rb +0 -41
  196. data/test/adql/test1.adql +0 -49
  197. data/test/adql/test2.adql +0 -51
  198. data/test/adql/test3.adql +0 -81
  199. data/test/adql/test4.adql +0 -53
  200. data/test/adql/test5.adql +0 -55
  201. data/test/adql/test6.adql +0 -18
  202. data/test/adql/test7.adql +0 -48
  203. data/test/adql/unittest.rb +0 -1672
  204. data/test/plastic/test.rb +0 -44
  205. data/test/plastic/test.vot +0 -5385
  206. data/test/plastic/unittest.rb +0 -66
  207. data/test/resources/conesearch/conesearch_v0_3.xml +0 -31
  208. data/test/resources/conesearch/conesearch_v1_0.xml +0 -86
  209. data/test/resources/conesearch/unittest_v0_3.rb +0 -22
  210. data/test/resources/conesearch/unittest_v1_0.rb +0 -24
  211. data/test/resources/openskynode/open_sky_node_v0_1.xml +0 -32
  212. data/test/resources/openskynode/unittest_v0_1.rb +0 -31
  213. data/test/resources/sia/simple_image_access_v0_7.xml +0 -36
  214. data/test/resources/sia/simple_image_access_v1_0.xml +0 -122
  215. data/test/resources/sia/unittest_v0_7.rb +0 -24
  216. data/test/resources/sia/unittest_v1_0.rb +0 -29
  217. data/test/resources/stsci.xml +0 -336
  218. data/test/resources/unittest_stsci.rb +0 -25
  219. data/test/resources/vodataservice/catalog_service_resource_v1_0.xml +0 -128
  220. data/test/resources/vodataservice/data_collection_resource_v0_5.xml +0 -54
  221. data/test/resources/vodataservice/data_collection_resource_v1_0.xml +0 -117
  222. data/test/resources/vodataservice/data_service_resource_v1_0.xml +0 -115
  223. data/test/resources/vodataservice/sky_service_resource_v0_10.xml +0 -45
  224. data/test/resources/vodataservice/table_service_resource_v1_0.xml +0 -122
  225. data/test/resources/vodataservice/tabular_sky_service_resource_v0_10.xml +0 -60
  226. data/test/resources/vodataservice/unittest_v0_5.rb +0 -126
  227. data/test/resources/vodataservice/unittest_v1_0.rb +0 -151
  228. data/test/resources/voregistry/authority_resource_v0_3.xml +0 -20
  229. data/test/resources/voregistry/authority_resource_v1_0.xml +0 -82
  230. data/test/resources/voregistry/registry_service_v0_3.xml +0 -20
  231. data/test/resources/voregistry/registry_service_v1_0.xml +0 -107
  232. data/test/resources/voregistry/unittest_v0_3.rb +0 -31
  233. data/test/resources/voregistry/unittest_v1_0.rb +0 -34
  234. data/test/resources/voresource/organisation_resource_v1_0.xml +0 -90
  235. data/test/resources/voresource/resource_organisation_v0_10.xml +0 -22
  236. data/test/resources/voresource/resource_service_v0_10.xml +0 -19
  237. data/test/resources/voresource/resource_v0_10.xml +0 -19
  238. data/test/resources/voresource/resource_v1_0.xml +0 -79
  239. data/test/resources/voresource/service_resource_v1_0.xml +0 -91
  240. data/test/resources/voresource/unittest_v0_10.rb +0 -61
  241. data/test/resources/voresource/unittest_v0_9.rb +0 -4
  242. data/test/resources/voresource/unittest_v1_0.rb +0 -190
  243. data/test/services/gestalt/unittest.rb +0 -74
  244. data/test/services/registry/unittest.rb +0 -34
  245. data/test/services/resolver/unittest.rb +0 -38
  246. data/test/simple/unittest.rb +0 -46
  247. data/test/spacetime/unittest.rb +0 -39
  248. data/test/stc/catalog_entry_location_v1_20.xml +0 -112
  249. data/test/stc/obs_data_location_v1_20.xml +0 -108
  250. data/test/stc/search_location_v1_20.xml +0 -54
  251. data/test/stc/stc_resource_profile_v1_20.xml +0 -60
  252. data/test/stc/unittest_v1_20.rb +0 -620
  253. data/test/voevent/unittest_v1_0.rb +0 -79
  254. data/test/voevent/unittest_v1_1.rb +0 -70
  255. data/test/voevent/voevent_v1_0.xml +0 -96
  256. data/test/votables/test.vot +0 -366
  257. data/test/votables/unittest.rb +0 -54
@@ -0,0 +1,210 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+
4
+ The STC metadata to describe a galaxy catalog containing positions,
5
+
6
+ errors, sizes, proper motions (I know this is silly), errors, and
7
+
8
+ Doppler velocities in FK4-B1950 and in Super-Galactic coordinates.
9
+
10
+ All based on optical data.
11
+
12
+ -->
13
+ <CatalogEntryLocation xmlns="http://www.ivoa.net/xml/STC/stc-v1.30.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.ivoa.net/xml/STC/stc-v1.30.xsd http://www.ivoa.net/xml/STC/stc-v1.30.xsd">
14
+ <!--
15
+
16
+ Specify the FK4 frame, with ET and optical barycentric Doppler
17
+
18
+ velocities.
19
+
20
+ -->
21
+ <AstroCoordSystem id="B1950-OPTICAL-ET">
22
+ <TimeFrame>
23
+ <Name>Time</Name>
24
+ <TimeScale>ET</TimeScale>
25
+ <TOPOCENTER/>
26
+ </TimeFrame>
27
+ <SpaceFrame>
28
+ <Name>PosEq</Name>
29
+ <FK4>
30
+ <Equinox>B1950.0</Equinox>
31
+ </FK4>
32
+ <BARYCENTER/>
33
+ <SPHERICAL coord_naxes="2"/>
34
+ </SpaceFrame>
35
+ <SpectralFrame>
36
+ <Name>Optical</Name>
37
+ <TOPOCENTER/>
38
+ </SpectralFrame>
39
+ <RedshiftFrame value_type="VELOCITY">
40
+ <Name>DopplerVelocity</Name>
41
+ <DopplerDefinition>OPTICAL</DopplerDefinition>
42
+ <BARYCENTER/>
43
+ </RedshiftFrame>
44
+ </AstroCoordSystem>
45
+ <!--
46
+
47
+ Specify the SGC frame
48
+
49
+ -->
50
+ <AstroCoordSystem id="SGC-OPTICAL-ET">
51
+ <TimeFrame>
52
+ <Name>Time</Name>
53
+ <TimeScale>ET</TimeScale>
54
+ <TOPOCENTER/>
55
+ </TimeFrame>
56
+ <SpaceFrame>
57
+ <Name>SGC</Name>
58
+ <SUPER_GALACTIC/>
59
+ <BARYCENTER/>
60
+ <SPHERICAL coord_naxes="2"/>
61
+ </SpaceFrame>
62
+ <SpectralFrame>
63
+ <Name>Optical</Name>
64
+ <TOPOCENTER/>
65
+ </SpectralFrame>
66
+ <RedshiftFrame value_type="VELOCITY">
67
+ <Name>DopplerVelocity</Name>
68
+ <DopplerDefinition>OPTICAL</DopplerDefinition>
69
+ <GALACTIC_CENTER/>
70
+ </RedshiftFrame>
71
+ </AstroCoordSystem>
72
+ <!--
73
+
74
+ The data in FK5.
75
+
76
+ The IDREFs say that the values are not contained in the actual
77
+
78
+ elements but refer to columns in a table that should follow in
79
+
80
+ this document.
81
+
82
+ -->
83
+ <AstroCoords coord_system_id="B1950-OPTICAL-ET">
84
+ <Position2D unit="deg">
85
+ <Name>RA,Dec</Name>
86
+ <Value2>
87
+ <C1 xsi:nil="true" idref="Column02"/>
88
+ <C2 xsi:nil="true" idref="Column03"/>
89
+ </Value2>
90
+ <Error2>
91
+ <C1 xsi:nil="true" idref="Column04"/>
92
+ <C2 xsi:nil="true" idref="Column05"/>
93
+ </Error2>
94
+ <Size2>
95
+ <C1 xsi:nil="true" idref="Column06"/>
96
+ <C2 xsi:nil="true" idref="Column07"/>
97
+ </Size2>
98
+ </Position2D>
99
+ <Velocity2D unit="arcsec" vel_time_unit="a">
100
+ <Name>ProperMotion</Name>
101
+ <Value2>
102
+ <C1 xsi:nil="true" idref="Column08"/>
103
+ <C2 xsi:nil="true" idref="Column09"/>
104
+ </Value2>
105
+ <Error2>
106
+ <C1 xsi:nil="true" idref="Column10"/>
107
+ <C2 xsi:nil="true" idref="Column11"/>
108
+ </Error2>
109
+ </Velocity2D>
110
+ <Redshift unit="km" vel_time_unit="s">
111
+ <Name>Vrad(barycenter)</Name>
112
+ <Value xsi:nil="true" idref="Column12"/>
113
+ <Error xsi:nil="true" idref="Column13"/>
114
+ </Redshift>
115
+ </AstroCoords>
116
+ <!--
117
+
118
+ The data columns with the data in SGC.
119
+
120
+ -->
121
+ <AstroCoords coord_system_id="SGC-OPTICAL-ET">
122
+ <Position2D unit="deg">
123
+ <Name>SGLong,SGLat</Name>
124
+ <Value2>
125
+ <C1 xsi:nil="true" idref="Column14"/>
126
+ <C2 xsi:nil="true" idref="Column15"/>
127
+ </Value2>
128
+ <Error2>
129
+ <C1 xsi:nil="true" idref="Column16"/>
130
+ <C2 xsi:nil="true" idref="Column17"/>
131
+ </Error2>
132
+ <Size2>
133
+ <C1 xsi:nil="true" idref="Column18"/>
134
+ <C2 xsi:nil="true" idref="Column19"/>
135
+ </Size2>
136
+ </Position2D>
137
+ <Redshift unit="km" vel_time_unit="s">
138
+ <Name>Vrad(Galcenter)</Name>
139
+ <Value xsi:nil="true" idref="Column20"/>
140
+ <Error xsi:nil="true" idref="Column21"/>
141
+ </Redshift>
142
+ </AstroCoords>
143
+ <!--
144
+
145
+ This Coordinate Area element provides the boundaries of this
146
+
147
+ catalog:
148
+
149
+ The period during which the observations were made, the area on
150
+
151
+ the sky that was covered, the spectral band used, and the Doppler
152
+
153
+ velocity range.
154
+
155
+ -->
156
+ <AstroCoordArea coord_system_id="B1950-OPTICAL-ET" id="RA6-18hDec20-70deg">
157
+ <TimeInterval>
158
+ <StartTime>
159
+ <Timescale>ET</Timescale>
160
+ <JDTime>2440000</JDTime>
161
+ </StartTime>
162
+ <StopTime>
163
+ <Timescale>ET</Timescale>
164
+ <JDTime>2441000</JDTime>
165
+ </StopTime>
166
+ </TimeInterval>
167
+ <Polygon unit="deg">
168
+ <Vertex>
169
+ <Position>
170
+ <C1>270</C1>
171
+ <C2>20</C2>
172
+ </Position>
173
+ </Vertex>
174
+ <Vertex>
175
+ <Position>
176
+ <C1>90</C1>
177
+ <C2>20</C2>
178
+ </Position>
179
+ <SmallCircle/>
180
+ </Vertex>
181
+ <Vertex>
182
+ <Position>
183
+ <C1>90</C1>
184
+ <C2>70</C2>
185
+ </Position>
186
+ </Vertex>
187
+ <Vertex>
188
+ <Position>
189
+ <C1>270</C1>
190
+ <C2>70</C2>
191
+ </Position>
192
+ <SmallCircle/>
193
+ </Vertex>
194
+ </Polygon>
195
+ <SpectralInterval unit="Angstrom">
196
+ <LoLimit>5000</LoLimit>
197
+ <HiLimit>6500</HiLimit>
198
+ </SpectralInterval>
199
+ <RedshiftInterval unit="km" vel_time_unit="s">
200
+ <HiLimit>10000</HiLimit>
201
+ </RedshiftInterval>
202
+ </AstroCoordArea>
203
+ <!--
204
+
205
+ At this point the table columns 1-21 should be specified with
206
+
207
+ ID attributes Column01 through Column21 and filled with data.
208
+
209
+ -->
210
+ </CatalogEntryLocation>
@@ -0,0 +1,353 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+
4
+ This document is the resource description of an Arecibo HI survey.
5
+
6
+ It provides the volume in coordinate space that the survey
7
+
8
+ occupies, as well as its properties along the coordinate axes.
9
+
10
+ The survey's native spatial coordinates are Galactic, but the
11
+
12
+ coordinate space volume is also provided in ICRS, as a service
13
+
14
+ to ICRS queries.
15
+
16
+ -->
17
+ <ObsDataLocation xmlns="http://www.ivoa.net/xml/STC/stc-v1.30.xsd" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.ivoa.net/xml/STC/stc-v1.30.xsd http://www.ivoa.net/xml/STC/stc-v1.30.xsd">
18
+ <!--
19
+
20
+ The observatory location is specified through a reference to the
21
+
22
+ library of observatory locations.
23
+
24
+ -->
25
+ <ObservatoryLocation id="Arecibo" xlink:type="simple" xlink:href="ivo://STClib/Observatories#Arecibo"/>
26
+ <!--
27
+
28
+ Here come the metadata describing the survey as observed from
29
+
30
+ Arecibo.
31
+
32
+ -->
33
+ <ObservationLocation>
34
+ <!--
35
+
36
+ The native coordinate system of the survey: Galactic
37
+
38
+ Coordinates and TT times as measured at the telescope, and
39
+
40
+ Doppler velocities wrt LSR, calculated using the radio
41
+
42
+ definition.
43
+
44
+ -->
45
+ <AstroCoordSystem id="TT-GAL-RADIO-LSR-TOPO">
46
+ <TimeFrame>
47
+ <TimeScale>TT</TimeScale>
48
+ <TOPOCENTER/>
49
+ </TimeFrame>
50
+ <SpaceFrame id="GALFrame">
51
+ <GALACTIC_II/>
52
+ <TOPOCENTER/>
53
+ <SPHERICAL coord_naxes="2"/>
54
+ </SpaceFrame>
55
+ <SpectralFrame>
56
+ <TOPOCENTER/>
57
+ </SpectralFrame>
58
+ <RedshiftFrame id="VELFrame" value_type="VELOCITY">
59
+ <DopplerDefinition>RADIO</DopplerDefinition>
60
+ <LSR/>
61
+ </RedshiftFrame>
62
+ </AstroCoordSystem>
63
+ <!--
64
+
65
+ Alternate coordinates: ICRS reference frame for spatial
66
+
67
+ coordinates.
68
+
69
+ -->
70
+ <AstroCoordSystem id="TT-ICRS-RADIO-LSR-TOPO">
71
+ <TimeFrame>
72
+ <TimeScale>TT</TimeScale>
73
+ <TOPOCENTER/>
74
+ </TimeFrame>
75
+ <SpaceFrame>
76
+ <ICRS/>
77
+ <TOPOCENTER/>
78
+ <SPHERICAL coord_naxes="2"/>
79
+ </SpaceFrame>
80
+ <SpectralFrame>
81
+ <TOPOCENTER/>
82
+ </SpectralFrame>
83
+ <RedshiftFrame>
84
+ <DopplerDefinition>RADIO</DopplerDefinition>
85
+ <LSR/>
86
+ </RedshiftFrame>
87
+ </AstroCoordSystem>
88
+ <!--
89
+
90
+ The properties of the data along the coordinate axes, using
91
+
92
+ Galactic
93
+
94
+ -->
95
+ <AstroCoords coord_system_id="TT-GAL-RADIO-LSR-TOPO">
96
+ <!--
97
+
98
+ The observations, at 100 s per pointing, were made during a
99
+
100
+ period of one year, rendering the uncertainty in the
101
+
102
+ observing date of individual pointings half a year.
103
+
104
+ -->
105
+ <Time unit="s">
106
+ <TimeInstant>
107
+ <ISOTime>2005-12-15T08:23:56</ISOTime>
108
+ </TimeInstant>
109
+ <Error>15000000</Error>
110
+ <Resolution>100</Resolution>
111
+ <PixSize>100</PixSize>
112
+ </Time>
113
+ <!--
114
+
115
+ The uncertainty, resolution, and pixel size in spatial
116
+
117
+ coordinates
118
+
119
+ -->
120
+ <Position2D unit="deg">
121
+ <Error2Radius>0.002</Error2Radius>
122
+ <Resolution2>
123
+ <C1>0.05</C1>
124
+ <C2>0.05</C2>
125
+ </Resolution2>
126
+ <PixSize2>
127
+ <C1>0.01</C1>
128
+ <C2>0.01</C2>
129
+ </PixSize2>
130
+ </Position2D>
131
+ <!--
132
+
133
+ The spectral coordinate, with size and pixel size zero, is
134
+
135
+ the rest frequency.
136
+
137
+ -->
138
+ <Spectral unit="MHz">
139
+ <Value>1420.405752</Value>
140
+ <Size>0</Size>
141
+ <PixSize>0</PixSize>
142
+ </Spectral>
143
+ <!--
144
+
145
+ Doppler velocity characteristics: resolution and sampling
146
+
147
+ -->
148
+ <Redshift unit="km" vel_time_unit="s">
149
+ <Resolution>0.5</Resolution>
150
+ <PixSize>0.25</PixSize>
151
+ </Redshift>
152
+ </AstroCoords>
153
+ <!--
154
+
155
+ The volume in coordinate space taken up by this dataset.
156
+
157
+ -->
158
+ <AstroCoordArea coord_system_id="TT-GAL-RADIO-LSR-TOPO">
159
+ <!--
160
+
161
+ The time interval during which the observations were made
162
+
163
+ -->
164
+ <TimeInterval>
165
+ <StartTime>
166
+ <ISOTime>2005-06-15T06:57:36</ISOTime>
167
+ </StartTime>
168
+ <StopTime>
169
+ <ISOTime>2006-06-15T10:07:16</ISOTime>
170
+ </StopTime>
171
+ </TimeInterval>
172
+ <!--
173
+
174
+ The spatial bounds of the survey: 10x6 degrees
175
+
176
+ -->
177
+ <Position2VecInterval unit="deg">
178
+ <LoLimit2Vec>
179
+ <C1>10</C1>
180
+ <C2>-3</C2>
181
+ </LoLimit2Vec>
182
+ <HiLimit2Vec>
183
+ <C1>20</C1>
184
+ <C2>3</C2>
185
+ </HiLimit2Vec>
186
+ </Position2VecInterval>
187
+ <!--
188
+
189
+ The Doppler velocity range covered: -200 to 200 km/s
190
+
191
+ -->
192
+ <RedshiftInterval unit="km" vel_time_unit="s">
193
+ <LoLimit>-200</LoLimit>
194
+ <HiLimit>200</HiLimit>
195
+ </RedshiftInterval>
196
+ </AstroCoordArea>
197
+ <!--
198
+
199
+ For the benefit of queries in ICRS/FK5, the spatial box's
200
+
201
+ bounds are also provided in ICRS coordinates; note that now it
202
+
203
+ is expressed as a polygon.
204
+
205
+ Strictly speaking, two of the sides should be specified as
206
+
207
+ small circles with the Galactic pole as pole, but we'll let
208
+
209
+ that go, for now: it's close.
210
+
211
+ -->
212
+ <AstroCoordArea coord_system_id="TT-ICRS-RADIO-LSR-TOPO">
213
+ <TimeInterval>
214
+ <StartTime>
215
+ <ISOTime>2005-06-15T06:57:36</ISOTime>
216
+ </StartTime>
217
+ <StopTime>
218
+ <ISOTime>2006-06-15T10:07:16</ISOTime>
219
+ </StopTime>
220
+ </TimeInterval>
221
+ <Polygon unit="deg">
222
+ <Vertex>
223
+ <Position>
224
+ <C1>274.762</C1>
225
+ <C2>-21.726</C2>
226
+ </Position>
227
+ </Vertex>
228
+ <Vertex>
229
+ <Position>
230
+ <C1>269.171</C1>
231
+ <C2>-18.810</C2>
232
+ </Position>
233
+ </Vertex>
234
+ <Vertex>
235
+ <Position>
236
+ <C1>274.185</C1>
237
+ <C2>-10.081</C2>
238
+ </Position>
239
+ </Vertex>
240
+ <Vertex>
241
+ <Position>
242
+ <C1>279.606</C1>
243
+ <C2>-12.871</C2>
244
+ </Position>
245
+ </Vertex>
246
+ </Polygon>
247
+ <RedshiftInterval unit="km" vel_time_unit="s">
248
+ <LoLimit>-200</LoLimit>
249
+ <HiLimit>200</HiLimit>
250
+ </RedshiftInterval>
251
+ </AstroCoordArea>
252
+ </ObservationLocation>
253
+ <!--
254
+
255
+ Here is the specification as to how the data is put into pixel
256
+
257
+ space: a pixel coordinate system consisting of two frames and the
258
+
259
+ pixel volume.
260
+
261
+ We are dealing here with a 3-D cube.
262
+
263
+ -->
264
+ <PixelSpace>
265
+ <PixelCoordSystem id="G1Pix">
266
+ <!--
267
+
268
+ The first pixel frame is spatial; it is 2-D and maps to pixel
269
+
270
+ axes 1 and 2.
271
+
272
+ It is a CAR projection and contains a transformation, a
273
+
274
+ reference position, and a reference pixel.
275
+
276
+ -->
277
+ <PixelCoordFrame id="PixGALFrame" ref_frame_id="GALFrame" axis1_order="1" axis2_order="2">
278
+ <Cart2DRefFrame projection="CAR">
279
+ <Transform2 unit="deg">
280
+ <C1>-0.01</C1>
281
+ <C2>0.01</C2>
282
+ </Transform2>
283
+ </Cart2DRefFrame>
284
+ <CoordRefPos>
285
+ <Vector2DCoordinate unit="deg" frame_id="GALFrame">
286
+ <Value2>
287
+ <C1>20</C1>
288
+ <C2>-3</C2>
289
+ </Value2>
290
+ </Vector2DCoordinate>
291
+ </CoordRefPos>
292
+ <CARTESIAN coord_naxes="2"/>
293
+ <ReferencePixel>
294
+ <Pixel2D>
295
+ <Name1>l</Name1>
296
+ <Name2>b</Name2>
297
+ <Value2>
298
+ <C1>1</C1>
299
+ <C2>1</C2>
300
+ </Value2>
301
+ </Pixel2D>
302
+ </ReferencePixel>
303
+ </PixelCoordFrame>
304
+ <!--
305
+
306
+ The second pixel frame is Doppler velocity and maps to the
307
+
308
+ third pixel axis.
309
+
310
+ -->
311
+ <PixelCoordFrame id="PixVELFrame" ref_frame_id="VELFrame" axis1_order="3">
312
+ <ScalarRefFrame>
313
+ <Scale>0.25</Scale>
314
+ </ScalarRefFrame>
315
+ <CoordRefPos>
316
+ <Redshift frame_id="VELFrame">
317
+ <Value>-200</Value>
318
+ </Redshift>
319
+ </CoordRefPos>
320
+ <CARTESIAN coord_naxes="1"/>
321
+ <ReferencePixel>
322
+ <Pixel1D>
323
+ <Name>Velocity</Name>
324
+ <Value>-200</Value>
325
+ </Pixel1D>
326
+ </ReferencePixel>
327
+ </PixelCoordFrame>
328
+ </PixelCoordSystem>
329
+ <!--
330
+
331
+ The volume in pixel space: 1001x601x1001 pixels.
332
+
333
+ Note the use of frame_ids to tie things together.
334
+
335
+ -->
336
+ <PixelCoordArea coord_system_id="G1Pix">
337
+ <PixelCoord2VecInterval frame_id="PixGALFrame">
338
+ <LoLimit2Vec>
339
+ <C1>1</C1>
340
+ <C2>1</C2>
341
+ </LoLimit2Vec>
342
+ <HiLimit2Vec>
343
+ <C1>1001</C1>
344
+ <C2>601</C2>
345
+ </HiLimit2Vec>
346
+ </PixelCoord2VecInterval>
347
+ <PixelCoordScalarInterval frame_id="PixVELFrame">
348
+ <LoLimit>1</LoLimit>
349
+ <HiLimit>1001</HiLimit>
350
+ </PixelCoordScalarInterval>
351
+ </PixelCoordArea>
352
+ </PixelSpace>
353
+ </ObsDataLocation>