voruby 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. data/LICENSE +339 -0
  2. data/REQUIREMENTS +4 -0
  3. data/Rakefile.rb +296 -0
  4. data/lib/voruby/adql/adql.rb +2735 -0
  5. data/lib/voruby/adql/ext.rb +15 -0
  6. data/lib/voruby/adql/loader.rb +5 -0
  7. data/lib/voruby/adql/operations.rb +54 -0
  8. data/lib/voruby/adql/parser.rb +160 -0
  9. data/lib/voruby/adql/transforms.rb +573 -0
  10. data/lib/voruby/ext.rb +17 -0
  11. data/lib/voruby/loader.rb +4 -0
  12. data/lib/voruby/misc/propertyfile.rb +36 -0
  13. data/lib/voruby/plastic/applications.rb +174 -0
  14. data/lib/voruby/plastic/constants.rb +30 -0
  15. data/lib/voruby/plastic/loader.rb +10 -0
  16. data/lib/voruby/plastic/plastic.rb +1 -0
  17. data/lib/voruby/resources/conesearch/conesearch.rb +9 -0
  18. data/lib/voruby/resources/conesearch/conesearch_v0_2.rb +55 -0
  19. data/lib/voruby/resources/conesearch/conesearch_v0_3.rb +50 -0
  20. data/lib/voruby/resources/conesearch/conesearch_v1_0.rb +72 -0
  21. data/lib/voruby/resources/conesearch/loader.rb +4 -0
  22. data/lib/voruby/resources/loader.rb +50 -0
  23. data/lib/voruby/resources/nodes.rb +190 -0
  24. data/lib/voruby/resources/openskynode/loader.rb +4 -0
  25. data/lib/voruby/resources/openskynode/openskynode.rb +9 -0
  26. data/lib/voruby/resources/openskynode/openskynode_v0_1.rb +54 -0
  27. data/lib/voruby/resources/sia/loader.rb +5 -0
  28. data/lib/voruby/resources/sia/sia.rb +9 -0
  29. data/lib/voruby/resources/sia/sia_v0_6.rb +90 -0
  30. data/lib/voruby/resources/sia/sia_v0_7.rb +89 -0
  31. data/lib/voruby/resources/sia/sia_v1_0.rb +122 -0
  32. data/lib/voruby/resources/stsci.rb +59 -0
  33. data/lib/voruby/resources/vodataservice/coverage_v0_2.rb +195 -0
  34. data/lib/voruby/resources/vodataservice/coverage_v0_3.rb +158 -0
  35. data/lib/voruby/resources/vodataservice/loader.rb +5 -0
  36. data/lib/voruby/resources/vodataservice/vodataservice.rb +9 -0
  37. data/lib/voruby/resources/vodataservice/vodataservice_v0_4.rb +189 -0
  38. data/lib/voruby/resources/vodataservice/vodataservice_v0_5.rb +163 -0
  39. data/lib/voruby/resources/vodataservice/vodataservice_v1_0.rb +221 -0
  40. data/lib/voruby/resources/voregistry/loader.rb +4 -0
  41. data/lib/voruby/resources/voregistry/voregistry.rb +9 -0
  42. data/lib/voruby/resources/voregistry/voregistry_v0_2.rb +40 -0
  43. data/lib/voruby/resources/voregistry/voregistry_v0_3.rb +30 -0
  44. data/lib/voruby/resources/voregistry/voregistry_v1_0.rb +86 -0
  45. data/lib/voruby/resources/voresource/loader.rb +17 -0
  46. data/lib/voruby/resources/voresource/voresource.rb +9 -0
  47. data/lib/voruby/resources/voresource/voresource_v0_10.rb +322 -0
  48. data/lib/voruby/resources/voresource/voresource_v0_9.rb +405 -0
  49. data/lib/voruby/resources/voresource/voresource_v1_0.rb +230 -0
  50. data/lib/voruby/services/ext.rb +11 -0
  51. data/lib/voruby/services/gestalt/footprint.rb +95 -0
  52. data/lib/voruby/services/gestalt/wcs_fixer.rb +105 -0
  53. data/lib/voruby/services/gestalt/wesix.rb +155 -0
  54. data/lib/voruby/services/loader.rb +7 -0
  55. data/lib/voruby/services/registry/registry.rb +53 -0
  56. data/lib/voruby/services/resolver/resolver.rb +35 -0
  57. data/lib/voruby/sesame/loader.rb +6 -0
  58. data/lib/voruby/sesame/sesame_v1_0.rb +64 -0
  59. data/lib/voruby/simple/loader.rb +6 -0
  60. data/lib/voruby/simple/parameters.rb +196 -0
  61. data/lib/voruby/simple/sap.rb +446 -0
  62. data/lib/voruby/spacetime/loader.rb +3 -0
  63. data/lib/voruby/spacetime/spacetime.rb +607 -0
  64. data/lib/voruby/stc/coords_v1_20.rb +900 -0
  65. data/lib/voruby/stc/loader.rb +55 -0
  66. data/lib/voruby/stc/region_v1_20.rb +274 -0
  67. data/lib/voruby/stc/stc_v1_20.rb +1196 -0
  68. data/lib/voruby/util.rb +27 -0
  69. data/lib/voruby/voevent/loader.rb +7 -0
  70. data/lib/voruby/voevent/voevent_v1_0.rb +213 -0
  71. data/lib/voruby/voevent/voevent_v1_1.rb +196 -0
  72. data/lib/voruby/votables/chandra.rb +410 -0
  73. data/lib/voruby/votables/cnoc.rb +393 -0
  74. data/lib/voruby/votables/data.rb +179 -0
  75. data/lib/voruby/votables/galex.rb +390 -0
  76. data/lib/voruby/votables/hst.rb +391 -0
  77. data/lib/voruby/votables/int.rb +391 -0
  78. data/lib/voruby/votables/libxml_parser.rb +411 -0
  79. data/lib/voruby/votables/libxml_votable.rb +67 -0
  80. data/lib/voruby/votables/loader.rb +10 -0
  81. data/lib/voruby/votables/meta.rb +763 -0
  82. data/lib/voruby/votables/misc.rb +51 -0
  83. data/lib/voruby/votables/nsa.rb +393 -0
  84. data/lib/voruby/votables/nsar3.rb +410 -0
  85. data/lib/voruby/votables/rexml_parser.rb +408 -0
  86. data/lib/voruby/votables/rexml_votable.rb +67 -0
  87. data/lib/voruby/votables/sdss.rb +393 -0
  88. data/lib/voruby/votables/transforms.rb +388 -0
  89. data/lib/voruby/votables/tree.rb +45 -0
  90. data/lib/voruby/votables/types.rb +391 -0
  91. data/lib/voruby/votables/votable.rb +630 -0
  92. data/lib/voruby/votables/xmm.rb +394 -0
  93. data/test/adql/test1.adql +49 -0
  94. data/test/adql/test2.adql +51 -0
  95. data/test/adql/test3.adql +81 -0
  96. data/test/adql/test4.adql +53 -0
  97. data/test/adql/test5.adql +55 -0
  98. data/test/adql/test6.adql +18 -0
  99. data/test/adql/test7.adql +48 -0
  100. data/test/adql/unittest.rb +1672 -0
  101. data/test/plastic/test.rb +44 -0
  102. data/test/plastic/test.vot +5385 -0
  103. data/test/plastic/unittest.rb +66 -0
  104. data/test/resources/conesearch/conesearch_v0_3.xml +31 -0
  105. data/test/resources/conesearch/conesearch_v1_0.xml +86 -0
  106. data/test/resources/conesearch/unittest_v0_3.rb +22 -0
  107. data/test/resources/conesearch/unittest_v1_0.rb +24 -0
  108. data/test/resources/openskynode/open_sky_node_v0_1.xml +32 -0
  109. data/test/resources/openskynode/unittest_v0_1.rb +31 -0
  110. data/test/resources/sia/simple_image_access_v0_7.xml +36 -0
  111. data/test/resources/sia/simple_image_access_v1_0.xml +122 -0
  112. data/test/resources/sia/unittest_v0_7.rb +24 -0
  113. data/test/resources/sia/unittest_v1_0.rb +29 -0
  114. data/test/resources/stsci.xml +336 -0
  115. data/test/resources/unittest_stsci.rb +25 -0
  116. data/test/resources/vodataservice/catalog_service_resource_v1_0.xml +128 -0
  117. data/test/resources/vodataservice/data_collection_resource_v0_5.xml +54 -0
  118. data/test/resources/vodataservice/data_collection_resource_v1_0.xml +117 -0
  119. data/test/resources/vodataservice/data_service_resource_v1_0.xml +115 -0
  120. data/test/resources/vodataservice/sky_service_resource_v0_10.xml +45 -0
  121. data/test/resources/vodataservice/table_service_resource_v1_0.xml +122 -0
  122. data/test/resources/vodataservice/tabular_sky_service_resource_v0_10.xml +60 -0
  123. data/test/resources/vodataservice/unittest_v0_5.rb +126 -0
  124. data/test/resources/vodataservice/unittest_v1_0.rb +151 -0
  125. data/test/resources/voregistry/authority_resource_v0_3.xml +20 -0
  126. data/test/resources/voregistry/authority_resource_v1_0.xml +82 -0
  127. data/test/resources/voregistry/registry_service_v0_3.xml +20 -0
  128. data/test/resources/voregistry/registry_service_v1_0.xml +107 -0
  129. data/test/resources/voregistry/unittest_v0_3.rb +31 -0
  130. data/test/resources/voregistry/unittest_v1_0.rb +34 -0
  131. data/test/resources/voresource/organisation_resource_v1_0.xml +90 -0
  132. data/test/resources/voresource/resource_organisation_v0_10.xml +22 -0
  133. data/test/resources/voresource/resource_service_v0_10.xml +19 -0
  134. data/test/resources/voresource/resource_v0_10.xml +19 -0
  135. data/test/resources/voresource/resource_v1_0.xml +79 -0
  136. data/test/resources/voresource/service_resource_v1_0.xml +91 -0
  137. data/test/resources/voresource/unittest_v0_10.rb +61 -0
  138. data/test/resources/voresource/unittest_v0_9.rb +4 -0
  139. data/test/resources/voresource/unittest_v1_0.rb +190 -0
  140. data/test/services/gestalt/unittest.rb +74 -0
  141. data/test/services/registry/unittest.rb +34 -0
  142. data/test/services/resolver/unittest.rb +38 -0
  143. data/test/simple/unittest.rb +46 -0
  144. data/test/spacetime/unittest.rb +39 -0
  145. data/test/stc/catalog_entry_location_v1_20.xml +112 -0
  146. data/test/stc/obs_data_location_v1_20.xml +108 -0
  147. data/test/stc/search_location_v1_20.xml +54 -0
  148. data/test/stc/stc_resource_profile_v1_20.xml +60 -0
  149. data/test/stc/unittest_v1_20.rb +620 -0
  150. data/test/voevent/unittest_v1_0.rb +79 -0
  151. data/test/voevent/unittest_v1_1.rb +70 -0
  152. data/test/voevent/voevent_v1_0.xml +96 -0
  153. data/test/voevent/voevent_v1_1.xml +76 -0
  154. data/test/votables/test.vot +366 -0
  155. data/test/votables/unittest.rb +54 -0
  156. metadata +256 -0
@@ -0,0 +1,366 @@
1
+ <?xml version="1.0"?>
2
+ <!DOCTYPE VOTABLE SYSTEM "http://us-vo.org/xml/VOTable.dtd">
3
+ <VOTABLE version="v1.0">
4
+ <RESOURCE type="results">
5
+ <INFO name="QUERY_STATUS" value="OK"/>
6
+ <TABLE>
7
+ <FIELD ID="Object" name="Object" ucd="VOX:Image_Title" datatype="char" arraysize="*"/>
8
+ <FIELD ID="Survey" name="Survey" ucd="ID_SURVEY" datatype="char" arraysize="*"/>
9
+ <FIELD ID="instrument" name="instrument" ucd="INST_ID" datatype="char" arraysize="*"/>
10
+ <FIELD ID="mjd-obs" name="mjd-obs" ucd="VOX:Image_MJDateObs" datatype="double"/>
11
+ <FIELD ID="RA" name="RA" ucd="POS_EQ_RA_MAIN" datatype="double"/>
12
+ <FIELD ID="DEC" name="DEC" ucd="POS_EQ_DEC_MAIN" datatype="double"/>
13
+ <FIELD ID="naxes" name="naxes" ucd="VOX:Image_Naxes" datatype="int"/>
14
+ <FIELD ID="naxis" name="naxis" ucd="VOX:Image_Naxis" datatype="int" arraysize="*"/>
15
+ <FIELD ID="scale" name="scale" ucd="VOX:Image_Scale" datatype="double" arraysize="*"/>
16
+ <FIELD ID="format" name="format" ucd="VOX:Image_Format" datatype="char" arraysize="*"/>
17
+ <FIELD ID="accessreference" name="accessreference" ucd="VOX:Image_AccessReference" datatype="char" arraysize="*"/>
18
+ <FIELD ID="referenceframe" name="referenceframe" ucd="VOX:STC_CoordRefFrame" datatype="char" arraysize="*"/>
19
+ <FIELD ID="equinox" name="equinox" ucd="VOX:STC_CoordEquinox" datatype="double"/>
20
+ <FIELD ID="cprojection" name="cprojection" ucd="VOX:WCS_CoordProjection" datatype="double" arraysize="*"/>
21
+ <FIELD ID="crefpixel" name="crefpixel" ucd="VOX:WCS_CoordRefPixel" datatype="double" arraysize="*"/>
22
+ <FIELD ID="crefvalue" name="crefvalue" ucd="VOX:WCS_CoordRefValue" datatype="double" arraysize="*"/>
23
+ <FIELD ID="cdmatrix" name="cdmatrix" ucd="VOX:WCS_CDMatrix" datatype="double" arraysize="*"/>
24
+ <FIELD ID="filesize" name="filesize" ucd="VOX:Image_FileSize" datatype="int"/>
25
+ <FIELD ID="pixflags" name="pixflags" ucd="VOX:Image_PixFlags" datatype="char"/>
26
+ <DATA> <TABLEDATA>
27
+ <TR>
28
+ <TD>A 151 (R)</TD>
29
+ <TD>A Fundamental Plane Peculiar Velocity of Rich Clusters within 200 h-1 Mpc</TD>
30
+ <TD>NOAO.KPNO.09M</TD>
31
+ <TD>51460.3</TD>
32
+ <TD>17.0325</TD>
33
+ <TD>-15.1047</TD>
34
+ <TD>2</TD>
35
+ <TD>2047,4095</TD>
36
+ <TD>-1.82316e-06,-1.28462e-06</TD>
37
+ <TD>image/fits</TD>
38
+ <TD><![CDATA[http://archive.noao.edu/nvo/sim/cutout.php?recid=kp09m.19991009T080602_1&ra=19&dec=-14&rawidth=10&decwidth=10&prefix=NFP02187_1]]></TD>
39
+ <TD>FK5</TD>
40
+ <TD>2000</TD>
41
+ <TD>TAN</TD>
42
+ <TD>4183.42,2083.29</TD>
43
+ <TD>-1.82316e-06,-1.28462e-06</TD>
44
+ <TD>-1.82316e-06 0.000117685 -0.000117503 -1.28462e-06</TD>
45
+ <TD>33540480</TD>
46
+ <TD>C</TD>
47
+ </TR>
48
+ <TR>
49
+ <TD>A 151 (R)</TD>
50
+ <TD>A Fundamental Plane Peculiar Velocity of Rich Clusters within 200 h-1 Mpc</TD>
51
+ <TD>NOAO.KPNO.09M</TD>
52
+ <TD>51460.3</TD>
53
+ <TD>17.0291</TD>
54
+ <TD>-15.3516</TD>
55
+ <TD>2</TD>
56
+ <TD>2047,4095</TD>
57
+ <TD>-1.60713e-06,-1.43169e-06</TD>
58
+ <TD>image/fits</TD>
59
+ <TD><![CDATA[http://archive.noao.edu/nvo/sim/cutout.php?recid=kp09m.19991009T080602_2&ra=19&dec=-14&rawidth=10&decwidth=10&prefix=NFP02187_2]]></TD>
60
+ <TD>FK5</TD>
61
+ <TD>2000</TD>
62
+ <TD>TAN</TD>
63
+ <TD>2074.81,2071.72</TD>
64
+ <TD>-1.60713e-06,-1.43169e-06</TD>
65
+ <TD>-1.60713e-06 0.000117865 -0.000118025 -1.43169e-06</TD>
66
+ <TD>33540480</TD>
67
+ <TD>C</TD>
68
+ </TR>
69
+ <TR>
70
+ <TD>A 151 (R)</TD>
71
+ <TD>A Fundamental Plane Peculiar Velocity of Rich Clusters within 200 h-1 Mpc</TD>
72
+ <TD>NOAO.KPNO.09M</TD>
73
+ <TD>51460.3</TD>
74
+ <TD>17.0258</TD>
75
+ <TD>-15.5994</TD>
76
+ <TD>2</TD>
77
+ <TD>2047,4095</TD>
78
+ <TD>-1.35069e-06,-1.47739e-06</TD>
79
+ <TD>image/fits</TD>
80
+ <TD><![CDATA[http://archive.noao.edu/nvo/sim/cutout.php?recid=kp09m.19991009T080602_3&ra=19&dec=-14&rawidth=10&decwidth=10&prefix=NFP02187_3]]></TD>
81
+ <TD>FK5</TD>
82
+ <TD>2000</TD>
83
+ <TD>TAN</TD>
84
+ <TD>-25.7037,2069.97</TD>
85
+ <TD>-1.35069e-06,-1.47739e-06</TD>
86
+ <TD>-1.35069e-06 0.000117861 -0.000118049 -1.47739e-06</TD>
87
+ <TD>33540480</TD>
88
+ <TD>C</TD>
89
+ </TR>
90
+ <TR>
91
+ <TD>A 151 (R)</TD>
92
+ <TD>A Fundamental Plane Peculiar Velocity of Rich Clusters within 200 h-1 Mpc</TD>
93
+ <TD>NOAO.KPNO.09M</TD>
94
+ <TD>51460.3</TD>
95
+ <TD>17.0225</TD>
96
+ <TD>-15.8461</TD>
97
+ <TD>2</TD>
98
+ <TD>2047,4095</TD>
99
+ <TD>-1.15193e-06,-1.60012e-06</TD>
100
+ <TD>image/fits</TD>
101
+ <TD><![CDATA[http://archive.noao.edu/nvo/sim/cutout.php?recid=kp09m.19991009T080602_4&ra=19&dec=-14&rawidth=10&decwidth=10&prefix=NFP02187_4]]></TD>
102
+ <TD>FK5</TD>
103
+ <TD>2000</TD>
104
+ <TD>TAN</TD>
105
+ <TD>-2131.24,2077.91</TD>
106
+ <TD>-1.15193e-06,-1.60012e-06</TD>
107
+ <TD>-1.15193e-06 0.000117696 -0.000117535 -1.60012e-06</TD>
108
+ <TD>33540480</TD>
109
+ <TD>C</TD>
110
+ </TR>
111
+ <TR>
112
+ <TD>A 151 (R)</TD>
113
+ <TD>A Fundamental Plane Peculiar Velocity of Rich Clusters within 200 h-1 Mpc</TD>
114
+ <TD>NOAO.KPNO.09M</TD>
115
+ <TD>51460.3</TD>
116
+ <TD>17.5362</TD>
117
+ <TD>-15.1092</TD>
118
+ <TD>2</TD>
119
+ <TD>2047,4095</TD>
120
+ <TD>-7.75878e-07,-1.2548e-06</TD>
121
+ <TD>image/fits</TD>
122
+ <TD><![CDATA[http://archive.noao.edu/nvo/sim/cutout.php?recid=kp09m.19991009T080602_5&ra=19&dec=-14&rawidth=10&decwidth=10&prefix=NFP02187_5]]></TD>
123
+ <TD>FK5</TD>
124
+ <TD>2000</TD>
125
+ <TD>TAN</TD>
126
+ <TD>4189.77,-2077.0892</TD>
127
+ <TD>-7.75878e-07,-1.2548e-06</TD>
128
+ <TD>-7.75878e-07 0.000117656 -0.000117488 -1.2548e-06</TD>
129
+ <TD>33540480</TD>
130
+ <TD>C</TD>
131
+ </TR>
132
+ <TR>
133
+ <TD>A 151 (R)</TD>
134
+ <TD>A Fundamental Plane Peculiar Velocity of Rich Clusters within 200 h-1 Mpc</TD>
135
+ <TD>NOAO.KPNO.09M</TD>
136
+ <TD>51460.3</TD>
137
+ <TD>17.5348</TD>
138
+ <TD>-15.3565</TD>
139
+ <TD>2</TD>
140
+ <TD>2047,4095</TD>
141
+ <TD>-1.08148e-06,-1.23165e-06</TD>
142
+ <TD>image/fits</TD>
143
+ <TD><![CDATA[http://archive.noao.edu/nvo/sim/cutout.php?recid=kp09m.19991009T080602_6&ra=19&dec=-14&rawidth=10&decwidth=10&prefix=NFP02187_6]]></TD>
144
+ <TD>FK5</TD>
145
+ <TD>2000</TD>
146
+ <TD>TAN</TD>
147
+ <TD>2079.66,-2070.6156</TD>
148
+ <TD>-1.08148e-06,-1.23165e-06</TD>
149
+ <TD>-1.08148e-06 0.000117891 -0.000118039 -1.23165e-06</TD>
150
+ <TD>33540480</TD>
151
+ <TD>C</TD>
152
+ </TR>
153
+ <TR>
154
+ <TD>A 151 (R)</TD>
155
+ <TD>A Fundamental Plane Peculiar Velocity of Rich Clusters within 200 h-1 Mpc</TD>
156
+ <TD>NOAO.KPNO.09M</TD>
157
+ <TD>51460.3</TD>
158
+ <TD>17.5317</TD>
159
+ <TD>-15.6053</TD>
160
+ <TD>2</TD>
161
+ <TD>2047,4095</TD>
162
+ <TD>-1.28014e-06,-1.10723e-06</TD>
163
+ <TD>image/fits</TD>
164
+ <TD><![CDATA[http://archive.noao.edu/nvo/sim/cutout.php?recid=kp09m.19991009T080602_7&ra=19&dec=-14&rawidth=10&decwidth=10&prefix=NFP02187_7]]></TD>
165
+ <TD>FK5</TD>
166
+ <TD>2000</TD>
167
+ <TD>TAN</TD>
168
+ <TD>-29.8424,-2063.5936</TD>
169
+ <TD>-1.28014e-06,-1.10723e-06</TD>
170
+ <TD>-1.28014e-06 0.000117897 -0.00011806 -1.10723e-06</TD>
171
+ <TD>33540480</TD>
172
+ <TD>C</TD>
173
+ </TR>
174
+ <TR>
175
+ <TD>A 151 (R)</TD>
176
+ <TD>A Fundamental Plane Peculiar Velocity of Rich Clusters within 200 h-1 Mpc</TD>
177
+ <TD>NOAO.KPNO.09M</TD>
178
+ <TD>51460.3</TD>
179
+ <TD>17.5281</TD>
180
+ <TD>-15.8522</TD>
181
+ <TD>2</TD>
182
+ <TD>2047,4095</TD>
183
+ <TD>-1.64381e-06,-1.11379e-06</TD>
184
+ <TD>image/fits</TD>
185
+ <TD><![CDATA[http://archive.noao.edu/nvo/sim/cutout.php?recid=kp09m.19991009T080602_8&ra=19&dec=-14&rawidth=10&decwidth=10&prefix=NFP02187_8]]></TD>
186
+ <TD>FK5</TD>
187
+ <TD>2000</TD>
188
+ <TD>TAN</TD>
189
+ <TD>-2134.7,-2067.1472</TD>
190
+ <TD>-1.64381e-06,-1.11379e-06</TD>
191
+ <TD>-1.64381e-06 0.000117719 -0.000117549 -1.11379e-06</TD>
192
+ <TD>33540480</TD>
193
+ <TD>C</TD>
194
+ </TR>
195
+ <TR>
196
+ <TD>A 151 (B)</TD>
197
+ <TD>A Fundamental Plane Peculiar Velocity of Rich Clusters within 200 h-1 Mpc</TD>
198
+ <TD>NOAO.KPNO.09M</TD>
199
+ <TD>51460.3</TD>
200
+ <TD>17.0326</TD>
201
+ <TD>-15.1047</TD>
202
+ <TD>2</TD>
203
+ <TD>2047,4095</TD>
204
+ <TD>-1.82983e-06,-1.28497e-06</TD>
205
+ <TD>image/fits</TD>
206
+ <TD><![CDATA[http://archive.noao.edu/nvo/sim/cutout.php?recid=kp09m.19991009T081712_1&ra=19&dec=-14&rawidth=10&decwidth=10&prefix=NFP02188_1]]></TD>
207
+ <TD>FK5</TD>
208
+ <TD>2000</TD>
209
+ <TD>TAN</TD>
210
+ <TD>4183.42,2083.29</TD>
211
+ <TD>-1.82983e-06,-1.28497e-06</TD>
212
+ <TD>-1.82983e-06 0.00011769 -0.000117508 -1.28497e-06</TD>
213
+ <TD>33540480</TD>
214
+ <TD>C</TD>
215
+ </TR>
216
+ <TR>
217
+ <TD>A 151 (B)</TD>
218
+ <TD>A Fundamental Plane Peculiar Velocity of Rich Clusters within 200 h-1 Mpc</TD>
219
+ <TD>NOAO.KPNO.09M</TD>
220
+ <TD>51460.3</TD>
221
+ <TD>17.0291</TD>
222
+ <TD>-15.3517</TD>
223
+ <TD>2</TD>
224
+ <TD>2047,4095</TD>
225
+ <TD>-1.61382e-06,-1.43205e-06</TD>
226
+ <TD>image/fits</TD>
227
+ <TD><![CDATA[http://archive.noao.edu/nvo/sim/cutout.php?recid=kp09m.19991009T081712_2&ra=19&dec=-14&rawidth=10&decwidth=10&prefix=NFP02188_2]]></TD>
228
+ <TD>FK5</TD>
229
+ <TD>2000</TD>
230
+ <TD>TAN</TD>
231
+ <TD>2074.81,2071.72</TD>
232
+ <TD>-1.61382e-06,-1.43205e-06</TD>
233
+ <TD>-1.61382e-06 0.000117871 -0.00011803 -1.43205e-06</TD>
234
+ <TD>33540480</TD>
235
+ <TD>C</TD>
236
+ </TR>
237
+ <TR>
238
+ <TD>A 151 (B)</TD>
239
+ <TD>A Fundamental Plane Peculiar Velocity of Rich Clusters within 200 h-1 Mpc</TD>
240
+ <TD>NOAO.KPNO.09M</TD>
241
+ <TD>51460.3</TD>
242
+ <TD>17.0257</TD>
243
+ <TD>-15.5995</TD>
244
+ <TD>2</TD>
245
+ <TD>2047,4095</TD>
246
+ <TD>-1.35738e-06,-1.47775e-06</TD>
247
+ <TD>image/fits</TD>
248
+ <TD><![CDATA[http://archive.noao.edu/nvo/sim/cutout.php?recid=kp09m.19991009T081712_3&ra=19&dec=-14&rawidth=10&decwidth=10&prefix=NFP02188_3]]></TD>
249
+ <TD>FK5</TD>
250
+ <TD>2000</TD>
251
+ <TD>TAN</TD>
252
+ <TD>-25.7037,2069.97</TD>
253
+ <TD>-1.35738e-06,-1.47775e-06</TD>
254
+ <TD>-1.35738e-06 0.000117866 -0.000118054 -1.47775e-06</TD>
255
+ <TD>33540480</TD>
256
+ <TD>C</TD>
257
+ </TR>
258
+ <TR>
259
+ <TD>A 151 (B)</TD>
260
+ <TD>A Fundamental Plane Peculiar Velocity of Rich Clusters within 200 h-1 Mpc</TD>
261
+ <TD>NOAO.KPNO.09M</TD>
262
+ <TD>51460.3</TD>
263
+ <TD>17.0225</TD>
264
+ <TD>-15.8462</TD>
265
+ <TD>2</TD>
266
+ <TD>2047,4095</TD>
267
+ <TD>-1.15858e-06,-1.60048e-06</TD>
268
+ <TD>image/fits</TD>
269
+ <TD><![CDATA[http://archive.noao.edu/nvo/sim/cutout.php?recid=kp09m.19991009T081712_4&ra=19&dec=-14&rawidth=10&decwidth=10&prefix=NFP02188_4]]></TD>
270
+ <TD>FK5</TD>
271
+ <TD>2000</TD>
272
+ <TD>TAN</TD>
273
+ <TD>-2131.24,2077.91</TD>
274
+ <TD>-1.15858e-06,-1.60048e-06</TD>
275
+ <TD>-1.15858e-06 0.000117702 -0.00011754 -1.60048e-06</TD>
276
+ <TD>33540480</TD>
277
+ <TD>C</TD>
278
+ </TR>
279
+ <TR>
280
+ <TD>A 151 (B)</TD>
281
+ <TD>A Fundamental Plane Peculiar Velocity of Rich Clusters within 200 h-1 Mpc</TD>
282
+ <TD>NOAO.KPNO.09M</TD>
283
+ <TD>51460.3</TD>
284
+ <TD>17.5362</TD>
285
+ <TD>-15.1093</TD>
286
+ <TD>2</TD>
287
+ <TD>2047,4095</TD>
288
+ <TD>-7.82504e-07,-1.25515e-06</TD>
289
+ <TD>image/fits</TD>
290
+ <TD><![CDATA[http://archive.noao.edu/nvo/sim/cutout.php?recid=kp09m.19991009T081712_5&ra=19&dec=-14&rawidth=10&decwidth=10&prefix=NFP02188_5]]></TD>
291
+ <TD>FK5</TD>
292
+ <TD>2000</TD>
293
+ <TD>TAN</TD>
294
+ <TD>4189.77,-2077.0892</TD>
295
+ <TD>-7.82504e-07,-1.25515e-06</TD>
296
+ <TD>-7.82504e-07 0.000117661 -0.000117494 -1.25515e-06</TD>
297
+ <TD>33540480</TD>
298
+ <TD>C</TD>
299
+ </TR>
300
+ <TR>
301
+ <TD>A 151 (B)</TD>
302
+ <TD>A Fundamental Plane Peculiar Velocity of Rich Clusters within 200 h-1 Mpc</TD>
303
+ <TD>NOAO.KPNO.09M</TD>
304
+ <TD>51460.3</TD>
305
+ <TD>17.5349</TD>
306
+ <TD>-15.3566</TD>
307
+ <TD>2</TD>
308
+ <TD>2047,4095</TD>
309
+ <TD>-1.08815e-06,-1.232e-06</TD>
310
+ <TD>image/fits</TD>
311
+ <TD><![CDATA[http://archive.noao.edu/nvo/sim/cutout.php?recid=kp09m.19991009T081712_6&ra=19&dec=-14&rawidth=10&decwidth=10&prefix=NFP02188_6]]></TD>
312
+ <TD>FK5</TD>
313
+ <TD>2000</TD>
314
+ <TD>TAN</TD>
315
+ <TD>2079.66,-2070.6156</TD>
316
+ <TD>-1.08815e-06,-1.232e-06</TD>
317
+ <TD>-1.08815e-06 0.000117897 -0.000118044 -1.232e-06</TD>
318
+ <TD>33540480</TD>
319
+ <TD>C</TD>
320
+ </TR>
321
+ <TR>
322
+ <TD>A 151 (B)</TD>
323
+ <TD>A Fundamental Plane Peculiar Velocity of Rich Clusters within 200 h-1 Mpc</TD>
324
+ <TD>NOAO.KPNO.09M</TD>
325
+ <TD>51460.3</TD>
326
+ <TD>17.5317</TD>
327
+ <TD>-15.6054</TD>
328
+ <TD>2</TD>
329
+ <TD>2047,4095</TD>
330
+ <TD>-1.28682e-06,-1.10757e-06</TD>
331
+ <TD>image/fits</TD>
332
+ <TD><![CDATA[http://archive.noao.edu/nvo/sim/cutout.php?recid=kp09m.19991009T081712_7&ra=19&dec=-14&rawidth=10&decwidth=10&prefix=NFP02188_7]]></TD>
333
+ <TD>FK5</TD>
334
+ <TD>2000</TD>
335
+ <TD>TAN</TD>
336
+ <TD>-29.8424,-2063.5936</TD>
337
+ <TD>-1.28682e-06,-1.10757e-06</TD>
338
+ <TD>-1.28682e-06 0.000117902 -0.000118065 -1.10757e-06</TD>
339
+ <TD>33540480</TD>
340
+ <TD>C</TD>
341
+ </TR>
342
+ <TR>
343
+ <TD>A 151 (B)</TD>
344
+ <TD>A Fundamental Plane Peculiar Velocity of Rich Clusters within 200 h-1 Mpc</TD>
345
+ <TD>NOAO.KPNO.09M</TD>
346
+ <TD>51460.3</TD>
347
+ <TD>17.5281</TD>
348
+ <TD>-15.8523</TD>
349
+ <TD>2</TD>
350
+ <TD>2047,4095</TD>
351
+ <TD>-1.65049e-06,-1.11414e-06</TD>
352
+ <TD>image/fits</TD>
353
+ <TD><![CDATA[http://archive.noao.edu/nvo/sim/cutout.php?recid=kp09m.19991009T081712_8&ra=19&dec=-14&rawidth=10&decwidth=10&prefix=NFP02188_8]]></TD>
354
+ <TD>FK5</TD>
355
+ <TD>2000</TD>
356
+ <TD>TAN</TD>
357
+ <TD>-2134.7,-2067.1472</TD>
358
+ <TD>-1.65049e-06,-1.11414e-06</TD>
359
+ <TD>-1.65049e-06 0.000117725 -0.000117554 -1.11414e-06</TD>
360
+ <TD>33540480</TD>
361
+ <TD>C</TD>
362
+ </TR>
363
+ </TABLEDATA> </DATA>
364
+ </TABLE>
365
+ </RESOURCE>
366
+ </VOTABLE>
@@ -0,0 +1,54 @@
1
+ require 'test/unit'
2
+ require 'voruby/votables/tree'
3
+
4
+ include VORuby::VOTables
5
+
6
+ module TestMethods
7
+ def test_date_of_obs_fields
8
+ @votable.date_of_observation_fields.each do |pos, value|
9
+ assert_equal(pos, 3)
10
+ assert_equal(value.name, 'mjd-obs')
11
+ end
12
+ end
13
+
14
+ def test_number_fields
15
+ assert_equal(@votable.number_of_fields(), 19)
16
+ end
17
+
18
+ def test_number_rows
19
+ assert_equal(@votable.number_of_rows(), 16)
20
+ end
21
+
22
+ def test_main_positional_fields
23
+ main_pos = @votable.main_positional_fields()
24
+ assert_equal(main_pos['ra'][0], 4)
25
+ assert_equal(main_pos['ra'][1].name(), 'RA')
26
+ assert_equal(main_pos['dec'][0], 5)
27
+ assert_equal(main_pos['dec'][1].name(), 'DEC')
28
+ end
29
+
30
+ def test_find_columns
31
+ columns = @votable.find_columns('VOX:STC_CoordEquinox')
32
+ assert_equal(columns[0], 12)
33
+ end
34
+
35
+ def test_find_image_access_columns
36
+ assert_equal(@votable.image_access_reference_columns(), 10)
37
+ end
38
+ end
39
+
40
+ class LibxmlVOTableTest < Test::Unit::TestCase
41
+ include TestMethods
42
+
43
+ def setup
44
+ @votable = VOTable::TreeParsedVOTable.new('test/votables/test.vot', 'libxml').votable().votable()
45
+ end
46
+ end
47
+
48
+ class RexmlVOTableTest < Test::Unit::TestCase
49
+ include TestMethods
50
+
51
+ def setup
52
+ @votable = VOTable::TreeParsedVOTable.new('test/votables/test.vot', 'rexml').votable().votable()
53
+ end
54
+ end
metadata ADDED
@@ -0,0 +1,256 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.9.0
3
+ specification_version: 1
4
+ name: voruby
5
+ version: !ruby/object:Gem::Version
6
+ version: 1.0.1
7
+ date: 2006-11-01 00:00:00 -07:00
8
+ summary: Modules for interacting with the astronomical virtual observatory.
9
+ require_paths:
10
+ - lib
11
+ email: dgasson@noao.edu
12
+ homepage: http://rubyforge.org/projects/voruby/
13
+ rubyforge_project: voruby
14
+ description: A set of Ruby modules to help provide access to the Virtual Observatory (VO). Includes support for VOTable, VORegistry, VOEvent, WESIX (an online source extraction service) and more.
15
+ autorequire:
16
+ default_executable:
17
+ bindir: bin
18
+ has_rdoc: true
19
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
20
+ requirements:
21
+ - - ">"
22
+ - !ruby/object:Gem::Version
23
+ version: 0.0.0
24
+ version:
25
+ platform: ruby
26
+ signing_key:
27
+ cert_chain:
28
+ post_install_message:
29
+ authors:
30
+ - David Gasson, Exequiel Fuentes, Chris Miller
31
+ files:
32
+ - Rakefile.rb
33
+ - LICENSE
34
+ - REQUIREMENTS
35
+ - lib/voruby
36
+ - lib/voruby/adql
37
+ - lib/voruby/ext.rb
38
+ - lib/voruby/loader.rb
39
+ - lib/voruby/misc
40
+ - lib/voruby/plastic
41
+ - lib/voruby/resources
42
+ - lib/voruby/services
43
+ - lib/voruby/sesame
44
+ - lib/voruby/simple
45
+ - lib/voruby/spacetime
46
+ - lib/voruby/stc
47
+ - lib/voruby/util.rb
48
+ - lib/voruby/voevent
49
+ - lib/voruby/votables
50
+ - lib/voruby/adql/adql.rb
51
+ - lib/voruby/adql/ext.rb
52
+ - lib/voruby/adql/loader.rb
53
+ - lib/voruby/adql/operations.rb
54
+ - lib/voruby/adql/parser.rb
55
+ - lib/voruby/adql/transforms.rb
56
+ - lib/voruby/misc/propertyfile.rb
57
+ - lib/voruby/plastic/applications.rb
58
+ - lib/voruby/plastic/constants.rb
59
+ - lib/voruby/plastic/loader.rb
60
+ - lib/voruby/plastic/plastic.rb
61
+ - lib/voruby/resources/conesearch
62
+ - lib/voruby/resources/loader.rb
63
+ - lib/voruby/resources/nodes.rb
64
+ - lib/voruby/resources/openskynode
65
+ - lib/voruby/resources/sia
66
+ - lib/voruby/resources/stsci.rb
67
+ - lib/voruby/resources/vodataservice
68
+ - lib/voruby/resources/voregistry
69
+ - lib/voruby/resources/voresource
70
+ - lib/voruby/resources/conesearch/conesearch.rb
71
+ - lib/voruby/resources/conesearch/conesearch_v0_2.rb
72
+ - lib/voruby/resources/conesearch/conesearch_v0_3.rb
73
+ - lib/voruby/resources/conesearch/conesearch_v1_0.rb
74
+ - lib/voruby/resources/conesearch/loader.rb
75
+ - lib/voruby/resources/openskynode/loader.rb
76
+ - lib/voruby/resources/openskynode/openskynode.rb
77
+ - lib/voruby/resources/openskynode/openskynode_v0_1.rb
78
+ - lib/voruby/resources/sia/loader.rb
79
+ - lib/voruby/resources/sia/sia.rb
80
+ - lib/voruby/resources/sia/sia_v0_6.rb
81
+ - lib/voruby/resources/sia/sia_v0_7.rb
82
+ - lib/voruby/resources/sia/sia_v1_0.rb
83
+ - lib/voruby/resources/vodataservice/coverage_v0_2.rb
84
+ - lib/voruby/resources/vodataservice/coverage_v0_3.rb
85
+ - lib/voruby/resources/vodataservice/loader.rb
86
+ - lib/voruby/resources/vodataservice/vodataservice.rb
87
+ - lib/voruby/resources/vodataservice/vodataservice_v0_4.rb
88
+ - lib/voruby/resources/vodataservice/vodataservice_v0_5.rb
89
+ - lib/voruby/resources/vodataservice/vodataservice_v1_0.rb
90
+ - lib/voruby/resources/voregistry/loader.rb
91
+ - lib/voruby/resources/voregistry/voregistry.rb
92
+ - lib/voruby/resources/voregistry/voregistry_v0_2.rb
93
+ - lib/voruby/resources/voregistry/voregistry_v0_3.rb
94
+ - lib/voruby/resources/voregistry/voregistry_v1_0.rb
95
+ - lib/voruby/resources/voresource/loader.rb
96
+ - lib/voruby/resources/voresource/voresource.rb
97
+ - lib/voruby/resources/voresource/voresource_v0_10.rb
98
+ - lib/voruby/resources/voresource/voresource_v0_9.rb
99
+ - lib/voruby/resources/voresource/voresource_v1_0.rb
100
+ - lib/voruby/services/ext.rb
101
+ - lib/voruby/services/gestalt
102
+ - lib/voruby/services/loader.rb
103
+ - lib/voruby/services/registry
104
+ - lib/voruby/services/resolver
105
+ - lib/voruby/services/gestalt/footprint.rb
106
+ - lib/voruby/services/gestalt/wcs_fixer.rb
107
+ - lib/voruby/services/gestalt/wesix.rb
108
+ - lib/voruby/services/registry/registry.rb
109
+ - lib/voruby/services/resolver/resolver.rb
110
+ - lib/voruby/sesame/loader.rb
111
+ - lib/voruby/sesame/sesame_v1_0.rb
112
+ - lib/voruby/simple/loader.rb
113
+ - lib/voruby/simple/parameters.rb
114
+ - lib/voruby/simple/sap.rb
115
+ - lib/voruby/spacetime/loader.rb
116
+ - lib/voruby/spacetime/spacetime.rb
117
+ - lib/voruby/stc/coords_v1_20.rb
118
+ - lib/voruby/stc/loader.rb
119
+ - lib/voruby/stc/region_v1_20.rb
120
+ - lib/voruby/stc/stc_v1_20.rb
121
+ - lib/voruby/voevent/loader.rb
122
+ - lib/voruby/voevent/voevent_v1_0.rb
123
+ - lib/voruby/voevent/voevent_v1_1.rb
124
+ - lib/voruby/votables/chandra.rb
125
+ - lib/voruby/votables/cnoc.rb
126
+ - lib/voruby/votables/data.rb
127
+ - lib/voruby/votables/galex.rb
128
+ - lib/voruby/votables/hst.rb
129
+ - lib/voruby/votables/int.rb
130
+ - lib/voruby/votables/libxml_parser.rb
131
+ - lib/voruby/votables/libxml_votable.rb
132
+ - lib/voruby/votables/loader.rb
133
+ - lib/voruby/votables/meta.rb
134
+ - lib/voruby/votables/misc.rb
135
+ - lib/voruby/votables/nsa.rb
136
+ - lib/voruby/votables/nsar3.rb
137
+ - lib/voruby/votables/rexml_parser.rb
138
+ - lib/voruby/votables/rexml_votable.rb
139
+ - lib/voruby/votables/sdss.rb
140
+ - lib/voruby/votables/transforms.rb
141
+ - lib/voruby/votables/tree.rb
142
+ - lib/voruby/votables/types.rb
143
+ - lib/voruby/votables/votable.rb
144
+ - lib/voruby/votables/xmm.rb
145
+ - test/adql
146
+ - test/plastic
147
+ - test/resources
148
+ - test/services
149
+ - test/simple
150
+ - test/spacetime
151
+ - test/stc
152
+ - test/voevent
153
+ - test/votables
154
+ - test/adql/test1.adql
155
+ - test/adql/test2.adql
156
+ - test/adql/test3.adql
157
+ - test/adql/test4.adql
158
+ - test/adql/test5.adql
159
+ - test/adql/test6.adql
160
+ - test/adql/test7.adql
161
+ - test/adql/unittest.rb
162
+ - test/plastic/test.rb
163
+ - test/plastic/test.vot
164
+ - test/plastic/unittest.rb
165
+ - test/resources/conesearch
166
+ - test/resources/openskynode
167
+ - test/resources/sia
168
+ - test/resources/stsci.xml
169
+ - test/resources/unittest_stsci.rb
170
+ - test/resources/vodataservice
171
+ - test/resources/voregistry
172
+ - test/resources/voresource
173
+ - test/resources/conesearch/conesearch_v0_3.xml
174
+ - test/resources/conesearch/conesearch_v1_0.xml
175
+ - test/resources/conesearch/unittest_v0_3.rb
176
+ - test/resources/conesearch/unittest_v1_0.rb
177
+ - test/resources/openskynode/open_sky_node_v0_1.xml
178
+ - test/resources/openskynode/unittest_v0_1.rb
179
+ - test/resources/sia/simple_image_access_v0_7.xml
180
+ - test/resources/sia/simple_image_access_v1_0.xml
181
+ - test/resources/sia/unittest_v0_7.rb
182
+ - test/resources/sia/unittest_v1_0.rb
183
+ - test/resources/vodataservice/catalog_service_resource_v1_0.xml
184
+ - test/resources/vodataservice/data_collection_resource_v0_5.xml
185
+ - test/resources/vodataservice/data_collection_resource_v1_0.xml
186
+ - test/resources/vodataservice/data_service_resource_v1_0.xml
187
+ - test/resources/vodataservice/sky_service_resource_v0_10.xml
188
+ - test/resources/vodataservice/table_service_resource_v1_0.xml
189
+ - test/resources/vodataservice/tabular_sky_service_resource_v0_10.xml
190
+ - test/resources/vodataservice/unittest_v0_5.rb
191
+ - test/resources/vodataservice/unittest_v1_0.rb
192
+ - test/resources/voregistry/authority_resource_v0_3.xml
193
+ - test/resources/voregistry/authority_resource_v1_0.xml
194
+ - test/resources/voregistry/registry_service_v0_3.xml
195
+ - test/resources/voregistry/registry_service_v1_0.xml
196
+ - test/resources/voregistry/unittest_v0_3.rb
197
+ - test/resources/voregistry/unittest_v1_0.rb
198
+ - test/resources/voresource/organisation_resource_v1_0.xml
199
+ - test/resources/voresource/resource_organisation_v0_10.xml
200
+ - test/resources/voresource/resource_service_v0_10.xml
201
+ - test/resources/voresource/resource_v0_10.xml
202
+ - test/resources/voresource/resource_v1_0.xml
203
+ - test/resources/voresource/service_resource_v1_0.xml
204
+ - test/resources/voresource/unittest_v0_10.rb
205
+ - test/resources/voresource/unittest_v0_9.rb
206
+ - test/resources/voresource/unittest_v1_0.rb
207
+ - test/services/gestalt
208
+ - test/services/registry
209
+ - test/services/resolver
210
+ - test/services/gestalt/unittest.rb
211
+ - test/services/registry/unittest.rb
212
+ - test/services/resolver/unittest.rb
213
+ - test/simple/unittest.rb
214
+ - test/spacetime/unittest.rb
215
+ - test/stc/catalog_entry_location_v1_20.xml
216
+ - test/stc/obs_data_location_v1_20.xml
217
+ - test/stc/search_location_v1_20.xml
218
+ - test/stc/stc_resource_profile_v1_20.xml
219
+ - test/stc/unittest_v1_20.rb
220
+ - test/voevent/unittest_v1_0.rb
221
+ - test/voevent/unittest_v1_1.rb
222
+ - test/voevent/voevent_v1_0.xml
223
+ - test/voevent/voevent_v1_1.xml
224
+ - test/votables/test.vot
225
+ - test/votables/unittest.rb
226
+ test_files: []
227
+
228
+ rdoc_options: []
229
+
230
+ extra_rdoc_files: []
231
+
232
+ executables: []
233
+
234
+ extensions: []
235
+
236
+ requirements:
237
+ - libxml from http://xmlsoft.org/
238
+ dependencies:
239
+ - !ruby/object:Gem::Dependency
240
+ name: libxml-ruby
241
+ version_requirement:
242
+ version_requirements: !ruby/object:Gem::Version::Requirement
243
+ requirements:
244
+ - - ">="
245
+ - !ruby/object:Gem::Version
246
+ version: 0.3.8
247
+ version:
248
+ - !ruby/object:Gem::Dependency
249
+ name: xml-mapping
250
+ version_requirement:
251
+ version_requirements: !ruby/object:Gem::Version::Requirement
252
+ requirements:
253
+ - - ">="
254
+ - !ruby/object:Gem::Version
255
+ version: 0.8.1
256
+ version: