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.
- data/Rakefile.rb +107 -224
- data/lib/misc.rb +1 -0
- data/lib/misc/misc.rb +60 -0
- data/lib/misc/propertyfile.rb +31 -0
- data/lib/symphony.rb +1 -0
- data/lib/symphony/symphony.rb +247 -0
- data/lib/voruby.rb +186 -0
- data/lib/voruby/active_votable/active_votable.rb +468 -347
- data/lib/voruby/adql/1.0/adql.rb +2418 -0
- data/lib/voruby/adql/support.rb +2 -0
- data/lib/voruby/misc.rb +351 -0
- data/lib/voruby/misc/connection_monitor.rb +97 -0
- data/lib/voruby/misc/libxml_ext.rb +121 -0
- data/lib/voruby/misc/rexml_ext.rb +223 -0
- data/lib/voruby/resolver/resolver.rb +12 -0
- data/lib/voruby/resolver/sesame.rb +299 -0
- data/lib/voruby/sky_query/sky_query.rb +192 -0
- data/lib/voruby/stc/1.10/coords.rb +2272 -0
- data/lib/voruby/stc/1.10/region.rb +892 -0
- data/lib/voruby/stc/1.10/stc.rb +3271 -0
- data/lib/voruby/stc/1.30/stc.rb +8666 -0
- data/lib/voruby/stc/support.rb +2 -0
- data/lib/voruby/ucd/ucd.rb +173 -0
- data/lib/voruby/voevent/1.1/voevent.rb +1124 -0
- data/lib/voruby/voevent/support.rb +5 -0
- data/lib/voruby/votable/1.0/votable.rb +1807 -0
- data/lib/voruby/votable/1.1/votable.rb +2100 -0
- data/lib/voruby/votable/votable.rb +305 -0
- data/lib/voruby/wesix/wesix.rb +491 -0
- data/lib/voruby/xlink/1.2/xlink.rb +21 -0
- data/test/voruby/active_votable/complex.vot +60 -0
- data/test/voruby/active_votable/error.vot +6 -0
- data/test/voruby/active_votable/large.vot +130040 -0
- data/test/voruby/active_votable/simple1.vot +38 -0
- data/test/voruby/active_votable/simple2.vot +38 -0
- data/test/voruby/active_votable/test.rb +193 -0
- data/test/voruby/adql/1.0/adql-alias.sql +1 -0
- data/test/voruby/adql/1.0/adql-alias.xml +26 -0
- data/test/voruby/adql/1.0/adql-avg.sql +1 -0
- data/test/voruby/adql/1.0/adql-avg.xml +31 -0
- data/test/voruby/adql/1.0/adql-circle.sql +1 -0
- data/test/voruby/adql/1.0/adql-circle.xml +46 -0
- data/test/voruby/adql/1.0/adql-expr.sql +1 -0
- data/test/voruby/adql/1.0/adql-expr.xml +34 -0
- data/test/voruby/adql/1.0/adql-function.sql +1 -0
- data/test/voruby/adql/1.0/adql-function.xml +41 -0
- data/test/voruby/adql/1.0/adql-group.sql +1 -0
- data/test/voruby/adql/1.0/adql-group.xml +51 -0
- data/test/voruby/adql/1.0/adql-having.sql +1 -0
- data/test/voruby/adql/1.0/adql-having.xml +25 -0
- data/test/voruby/adql/1.0/adql-like.sql +1 -0
- data/test/voruby/adql/1.0/adql-like.xml +17 -0
- data/test/voruby/adql/1.0/adql-order.sql +1 -0
- data/test/voruby/adql/1.0/adql-order.xml +37 -0
- data/test/voruby/adql/1.0/adql-simple.sql +1 -0
- data/test/voruby/adql/1.0/adql-simple.xml +12 -0
- data/test/voruby/adql/1.0/adql-top.sql +1 -0
- data/test/voruby/adql/1.0/adql-top.xml +33 -0
- data/test/voruby/adql/1.0/test.rb +2220 -0
- data/test/voruby/misc/test.rb +32 -0
- data/test/voruby/resolver/sesame/test.rb +56 -0
- data/test/voruby/sky_query/test.rb +107 -0
- data/test/voruby/stc/1.10/coords_test.rb +3704 -0
- data/test/voruby/stc/1.10/region_test.rb +993 -0
- data/test/voruby/stc/1.10/stc-catalog-entry-location.xml +112 -0
- data/test/voruby/stc/1.10/stc-obs-data-location.xml +126 -0
- data/test/voruby/stc/1.10/stc-region-circle.xml +5 -0
- data/test/voruby/stc/1.10/stc-region-convex.xml +11 -0
- data/test/voruby/stc/1.10/stc-region-convexhull.xml +5 -0
- data/test/voruby/stc/1.10/stc-region-ellipse.xml +7 -0
- data/test/voruby/stc/1.10/stc-region-intersection.xml +25 -0
- data/test/voruby/stc/1.10/stc-region-negation.xml +7 -0
- data/test/voruby/stc/1.10/stc-region-polygon.xml +13 -0
- data/test/voruby/stc/1.10/stc-region-sector.xml +6 -0
- data/test/voruby/stc/1.10/stc-region-union.xml +25 -0
- data/test/voruby/stc/1.10/stc-resource-profile.xml +60 -0
- data/test/voruby/stc/1.10/stc-search-location.xml +54 -0
- data/test/voruby/stc/1.10/stc_test.rb +4626 -0
- data/test/voruby/stc/1.30/stc-catalog-entry-location.xml +210 -0
- data/test/voruby/stc/1.30/stc-obs-data-location-arecibo.xml +353 -0
- data/test/voruby/stc/1.30/stc-obs-data-location-fits.xml +250 -0
- data/test/voruby/stc/1.30/stc-obs-data-location-xlink.xml +63 -0
- data/test/voruby/stc/1.30/stc-obs-data-location.xml +216 -0
- data/test/voruby/stc/1.30/stc-resource-profile-unusual-ref-pos.xml +39 -0
- data/test/voruby/stc/1.30/stc-resource-profile.xml +129 -0
- data/test/voruby/stc/1.30/stc-search-location-arecibo.xml +86 -0
- data/test/voruby/stc/1.30/stc-search-location.xml +101 -0
- data/test/voruby/stc/1.30/test.rb +6274 -0
- data/test/voruby/ucd/test.rb +48 -0
- data/test/voruby/voevent/1.1/test.rb +812 -0
- data/test/{voevent/voevent_v1_1.xml → voruby/voevent/1.1/voevent.xml} +2 -2
- data/test/voruby/voregistry/0.3/test.rb +137 -0
- data/test/voruby/votable/1.0/test.rb +714 -0
- data/test/voruby/votable/1.0/votable.basic.xml +660 -0
- data/test/voruby/votable/1.0/votable.html +86 -0
- data/test/voruby/votable/1.0/votable.ns.xml +56 -0
- data/test/voruby/votable/1.1/test.rb +785 -0
- data/test/voruby/votable/1.1/votable.basic.xml +38 -0
- data/test/voruby/votable/1.1/votable.html +86 -0
- data/test/voruby/votable/1.1/votable.ns.xml +56 -0
- data/test/voruby/votable/test.rb +15 -0
- data/test/voruby/wesix/test.rb +268 -0
- data/test/voruby/wesix/testr.fits +28 -0
- metadata +234 -247
- data/REQUIREMENTS +0 -6
- data/lib/voruby/active_votable/loader.rb +0 -5
- data/lib/voruby/adql/adql.rb +0 -2787
- data/lib/voruby/adql/ext.rb +0 -14
- data/lib/voruby/adql/loader.rb +0 -6
- data/lib/voruby/adql/operations.rb +0 -54
- data/lib/voruby/adql/parser.rb +0 -160
- data/lib/voruby/adql/transforms.rb +0 -573
- data/lib/voruby/ext.rb +0 -17
- data/lib/voruby/loader.rb +0 -4
- data/lib/voruby/misc/propertyfile.rb +0 -36
- data/lib/voruby/plastic/applications.rb +0 -174
- data/lib/voruby/plastic/constants.rb +0 -30
- data/lib/voruby/plastic/loader.rb +0 -10
- data/lib/voruby/plastic/plastic.rb +0 -1
- data/lib/voruby/resources/conesearch/conesearch.rb +0 -9
- data/lib/voruby/resources/conesearch/conesearch_v0_2.rb +0 -55
- data/lib/voruby/resources/conesearch/conesearch_v0_3.rb +0 -50
- data/lib/voruby/resources/conesearch/conesearch_v1_0.rb +0 -72
- data/lib/voruby/resources/conesearch/loader.rb +0 -4
- data/lib/voruby/resources/loader.rb +0 -50
- data/lib/voruby/resources/nodes.rb +0 -190
- data/lib/voruby/resources/openskynode/loader.rb +0 -4
- data/lib/voruby/resources/openskynode/openskynode.rb +0 -9
- data/lib/voruby/resources/openskynode/openskynode_v0_1.rb +0 -54
- data/lib/voruby/resources/sia/loader.rb +0 -5
- data/lib/voruby/resources/sia/sia.rb +0 -9
- data/lib/voruby/resources/sia/sia_v0_6.rb +0 -90
- data/lib/voruby/resources/sia/sia_v0_7.rb +0 -89
- data/lib/voruby/resources/sia/sia_v1_0.rb +0 -122
- data/lib/voruby/resources/stsci.rb +0 -59
- data/lib/voruby/resources/vodataservice/coverage_v0_2.rb +0 -195
- data/lib/voruby/resources/vodataservice/coverage_v0_3.rb +0 -158
- data/lib/voruby/resources/vodataservice/loader.rb +0 -5
- data/lib/voruby/resources/vodataservice/vodataservice.rb +0 -9
- data/lib/voruby/resources/vodataservice/vodataservice_v0_4.rb +0 -189
- data/lib/voruby/resources/vodataservice/vodataservice_v0_5.rb +0 -163
- data/lib/voruby/resources/vodataservice/vodataservice_v1_0.rb +0 -221
- data/lib/voruby/resources/voregistry/loader.rb +0 -4
- data/lib/voruby/resources/voregistry/voregistry.rb +0 -9
- data/lib/voruby/resources/voregistry/voregistry_v0_2.rb +0 -40
- data/lib/voruby/resources/voregistry/voregistry_v0_3.rb +0 -30
- data/lib/voruby/resources/voregistry/voregistry_v1_0.rb +0 -86
- data/lib/voruby/resources/voresource/loader.rb +0 -17
- data/lib/voruby/resources/voresource/voresource.rb +0 -9
- data/lib/voruby/resources/voresource/voresource_v0_10.rb +0 -327
- data/lib/voruby/resources/voresource/voresource_v0_9.rb +0 -405
- data/lib/voruby/resources/voresource/voresource_v1_0.rb +0 -230
- data/lib/voruby/services/ext.rb +0 -11
- data/lib/voruby/services/gestalt/footprint.rb +0 -95
- data/lib/voruby/services/gestalt/wcs_fixer.rb +0 -105
- data/lib/voruby/services/gestalt/wesix.rb +0 -155
- data/lib/voruby/services/loader.rb +0 -7
- data/lib/voruby/services/registry/registry.rb +0 -53
- data/lib/voruby/services/resolver/resolver.rb +0 -35
- data/lib/voruby/services/schema/schema.rb +0 -644
- data/lib/voruby/sesame/loader.rb +0 -6
- data/lib/voruby/sesame/sesame_v1_0.rb +0 -64
- data/lib/voruby/simple/loader.rb +0 -6
- data/lib/voruby/simple/parameters.rb +0 -196
- data/lib/voruby/simple/sap.rb +0 -446
- data/lib/voruby/spacetime/loader.rb +0 -3
- data/lib/voruby/spacetime/spacetime.rb +0 -607
- data/lib/voruby/stc/coords_v1_20.rb +0 -900
- data/lib/voruby/stc/loader.rb +0 -55
- data/lib/voruby/stc/region_v1_20.rb +0 -274
- data/lib/voruby/stc/stc_v1_20.rb +0 -1196
- data/lib/voruby/util.rb +0 -27
- data/lib/voruby/voevent/loader.rb +0 -7
- data/lib/voruby/voevent/voevent_v1_0.rb +0 -213
- data/lib/voruby/voevent/voevent_v1_1.rb +0 -196
- data/lib/voruby/votables/chandra.rb +0 -373
- data/lib/voruby/votables/data.rb +0 -179
- data/lib/voruby/votables/galex.rb +0 -377
- data/lib/voruby/votables/int.rb +0 -354
- data/lib/voruby/votables/libxml_parser.rb +0 -411
- data/lib/voruby/votables/libxml_votable.rb +0 -67
- data/lib/voruby/votables/loader.rb +0 -10
- data/lib/voruby/votables/meta.rb +0 -763
- data/lib/voruby/votables/misc.rb +0 -51
- data/lib/voruby/votables/nsa.rb +0 -410
- data/lib/voruby/votables/rexml_parser.rb +0 -408
- data/lib/voruby/votables/rexml_votable.rb +0 -67
- data/lib/voruby/votables/sdss.rb +0 -356
- data/lib/voruby/votables/transforms.rb +0 -388
- data/lib/voruby/votables/tree.rb +0 -45
- data/lib/voruby/votables/types.rb +0 -391
- data/lib/voruby/votables/votable.rb +0 -687
- data/test/active_votable/database.yml +0 -6
- data/test/active_votable/test.vot +0 -168492
- data/test/active_votable/unittest.rb +0 -41
- data/test/adql/test1.adql +0 -49
- data/test/adql/test2.adql +0 -51
- data/test/adql/test3.adql +0 -81
- data/test/adql/test4.adql +0 -53
- data/test/adql/test5.adql +0 -55
- data/test/adql/test6.adql +0 -18
- data/test/adql/test7.adql +0 -48
- data/test/adql/unittest.rb +0 -1672
- data/test/plastic/test.rb +0 -44
- data/test/plastic/test.vot +0 -5385
- data/test/plastic/unittest.rb +0 -66
- data/test/resources/conesearch/conesearch_v0_3.xml +0 -31
- data/test/resources/conesearch/conesearch_v1_0.xml +0 -86
- data/test/resources/conesearch/unittest_v0_3.rb +0 -22
- data/test/resources/conesearch/unittest_v1_0.rb +0 -24
- data/test/resources/openskynode/open_sky_node_v0_1.xml +0 -32
- data/test/resources/openskynode/unittest_v0_1.rb +0 -31
- data/test/resources/sia/simple_image_access_v0_7.xml +0 -36
- data/test/resources/sia/simple_image_access_v1_0.xml +0 -122
- data/test/resources/sia/unittest_v0_7.rb +0 -24
- data/test/resources/sia/unittest_v1_0.rb +0 -29
- data/test/resources/stsci.xml +0 -336
- data/test/resources/unittest_stsci.rb +0 -25
- data/test/resources/vodataservice/catalog_service_resource_v1_0.xml +0 -128
- data/test/resources/vodataservice/data_collection_resource_v0_5.xml +0 -54
- data/test/resources/vodataservice/data_collection_resource_v1_0.xml +0 -117
- data/test/resources/vodataservice/data_service_resource_v1_0.xml +0 -115
- data/test/resources/vodataservice/sky_service_resource_v0_10.xml +0 -45
- data/test/resources/vodataservice/table_service_resource_v1_0.xml +0 -122
- data/test/resources/vodataservice/tabular_sky_service_resource_v0_10.xml +0 -60
- data/test/resources/vodataservice/unittest_v0_5.rb +0 -126
- data/test/resources/vodataservice/unittest_v1_0.rb +0 -151
- data/test/resources/voregistry/authority_resource_v0_3.xml +0 -20
- data/test/resources/voregistry/authority_resource_v1_0.xml +0 -82
- data/test/resources/voregistry/registry_service_v0_3.xml +0 -20
- data/test/resources/voregistry/registry_service_v1_0.xml +0 -107
- data/test/resources/voregistry/unittest_v0_3.rb +0 -31
- data/test/resources/voregistry/unittest_v1_0.rb +0 -34
- data/test/resources/voresource/organisation_resource_v1_0.xml +0 -90
- data/test/resources/voresource/resource_organisation_v0_10.xml +0 -22
- data/test/resources/voresource/resource_service_v0_10.xml +0 -19
- data/test/resources/voresource/resource_v0_10.xml +0 -19
- data/test/resources/voresource/resource_v1_0.xml +0 -79
- data/test/resources/voresource/service_resource_v1_0.xml +0 -91
- data/test/resources/voresource/unittest_v0_10.rb +0 -61
- data/test/resources/voresource/unittest_v0_9.rb +0 -4
- data/test/resources/voresource/unittest_v1_0.rb +0 -190
- data/test/services/gestalt/unittest.rb +0 -74
- data/test/services/registry/unittest.rb +0 -34
- data/test/services/resolver/unittest.rb +0 -38
- data/test/simple/unittest.rb +0 -46
- data/test/spacetime/unittest.rb +0 -39
- data/test/stc/catalog_entry_location_v1_20.xml +0 -112
- data/test/stc/obs_data_location_v1_20.xml +0 -108
- data/test/stc/search_location_v1_20.xml +0 -54
- data/test/stc/stc_resource_profile_v1_20.xml +0 -60
- data/test/stc/unittest_v1_20.rb +0 -620
- data/test/voevent/unittest_v1_0.rb +0 -79
- data/test/voevent/unittest_v1_1.rb +0 -70
- data/test/voevent/voevent_v1_0.xml +0 -96
- data/test/votables/test.vot +0 -366
- data/test/votables/unittest.rb +0 -54
@@ -0,0 +1,250 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!--
|
3
|
+
|
4
|
+
The ObsDataLocation element is the container for the
|
5
|
+
|
6
|
+
complete metadata description of an observational dataset,
|
7
|
+
|
8
|
+
in this case an image.
|
9
|
+
|
10
|
+
It specifies the various required namespaces (STC and Xlink),
|
11
|
+
|
12
|
+
and the location of the STC schema.
|
13
|
+
|
14
|
+
ObsDataLocation contains two main components: ObservatoryLocation
|
15
|
+
|
16
|
+
and ObservationLocation.
|
17
|
+
|
18
|
+
This example shows how to do this for a spacecraft observatory,
|
19
|
+
|
20
|
+
using an orbit ephemeris file.
|
21
|
+
|
22
|
+
The data file may be found at: ftp://cdaftp.cfa.harvard.edu/pub/science/ao02/cat5/1952/primary/acisf01952N002_cntr_img2.fits.gz
|
23
|
+
|
24
|
+
-->
|
25
|
+
<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">
|
26
|
+
<!--
|
27
|
+
|
28
|
+
The location of the observatory is specified by a Chandra orbit
|
29
|
+
|
30
|
+
ephemeris file and an associated coordinate system – geocentric
|
31
|
+
|
32
|
+
3-D Cartesian aligned with FK5
|
33
|
+
|
34
|
+
-->
|
35
|
+
<ObservatoryLocation id="CXO">
|
36
|
+
<AstroCoordSystem id="TT-TOPO-FK5-GEO">
|
37
|
+
<TimeFrame>
|
38
|
+
<TimeScale>TT</TimeScale>
|
39
|
+
<TOPOCENTER/>
|
40
|
+
</TimeFrame>
|
41
|
+
<SpaceFrame>
|
42
|
+
<FK5>
|
43
|
+
<Equinox>J2000.0</Equinox>
|
44
|
+
</FK5>
|
45
|
+
<GEOCENTER/>
|
46
|
+
<CARTESIAN coord_naxes="3"/>
|
47
|
+
</SpaceFrame>
|
48
|
+
</AstroCoordSystem>
|
49
|
+
<AstroCoords coord_system_id="TT-TOPO-FK5-GEO">
|
50
|
+
<CoordFile>
|
51
|
+
<FITSFile hdu_name="ORBITEPHEM" hdu_num="1">
|
52
|
+
|
53
|
+
ftp://cda.cfa.harvard.edu/pub/bary/orbitf129297900N001_eph0.fits
|
54
|
+
|
55
|
+
</FITSFile>
|
56
|
+
<FITSTime>
|
57
|
+
<Value>Time</Value>
|
58
|
+
</FITSTime>
|
59
|
+
<FITSPosition>
|
60
|
+
<Value>X,Y,Z</Value>
|
61
|
+
</FITSPosition>
|
62
|
+
<FITSVelocity>
|
63
|
+
<Value>Vx,Vy,Vz</Value>
|
64
|
+
</FITSVelocity>
|
65
|
+
</CoordFile>
|
66
|
+
</AstroCoords>
|
67
|
+
</ObservatoryLocation>
|
68
|
+
<!--
|
69
|
+
|
70
|
+
The observation's location and the volume it occupies in
|
71
|
+
|
72
|
+
coordinate space is specified by a set of coordinates and their
|
73
|
+
|
74
|
+
properties (errors, resolutions, etc.) and the area or interval
|
75
|
+
|
76
|
+
covered in each coordinate - with the associated
|
77
|
+
|
78
|
+
coordinate system.
|
79
|
+
|
80
|
+
Note that this coordinate system includes a generic coordinate
|
81
|
+
|
82
|
+
for brightness.
|
83
|
+
|
84
|
+
This part of the document is similar to Appendix B.2.
|
85
|
+
|
86
|
+
-->
|
87
|
+
<ObservationLocation id="M81">
|
88
|
+
<AstroCoordSystem id="TT-ICRS-ENERGY-TOPO">
|
89
|
+
<CoordFrame id="counts">
|
90
|
+
<Name>PhotonCounts</Name>
|
91
|
+
<ScalarRefFrame>
|
92
|
+
<Scale>1.0</Scale>
|
93
|
+
</ScalarRefFrame>
|
94
|
+
<CARTESIAN coord_naxes="1"/>
|
95
|
+
</CoordFrame>
|
96
|
+
<TimeFrame>
|
97
|
+
<TimeScale>TT</TimeScale>
|
98
|
+
<TOPOCENTER/>
|
99
|
+
</TimeFrame>
|
100
|
+
<SpaceFrame id="spaceFrame">
|
101
|
+
<ICRS/>
|
102
|
+
<TOPOCENTER/>
|
103
|
+
<SPHERICAL coord_naxes="2"/>
|
104
|
+
</SpaceFrame>
|
105
|
+
<SpectralFrame>
|
106
|
+
<TOPOCENTER/>
|
107
|
+
</SpectralFrame>
|
108
|
+
</AstroCoordSystem>
|
109
|
+
<AstroCoords coord_system_id="TT-ICRS-ENERGY-TOPO">
|
110
|
+
<ScalarCoordinate unit="count/s" frame_id="counts">
|
111
|
+
<Resolution>1</Resolution>
|
112
|
+
</ScalarCoordinate>
|
113
|
+
<Time unit="s">
|
114
|
+
<TimeInstant>
|
115
|
+
<MJDTime>52311.266</MJDTime>
|
116
|
+
</TimeInstant>
|
117
|
+
<Resolution>49664</Resolution>
|
118
|
+
<PixSize>49664</PixSize>
|
119
|
+
</Time>
|
120
|
+
<Position2D unit="deg">
|
121
|
+
<Value2 id="Center">
|
122
|
+
<C1>350.9171576</C1>
|
123
|
+
<C2>58.79377795</C2>
|
124
|
+
</Value2>
|
125
|
+
<Error2Radius>0.0003 </Error2Radius>
|
126
|
+
<Resolution2>
|
127
|
+
<C1>0.00015</C1>
|
128
|
+
<C2>0.00015</C2>
|
129
|
+
</Resolution2>
|
130
|
+
<PixSize2>
|
131
|
+
<C1>0.0001367</C1>
|
132
|
+
<C2>0.0001367</C2>
|
133
|
+
</PixSize2>
|
134
|
+
</Position2D>
|
135
|
+
<Spectral unit="keV">
|
136
|
+
<Value>2.5</Value>
|
137
|
+
<Resolution>7</Resolution>
|
138
|
+
<PixSize>7</PixSize>
|
139
|
+
</Spectral>
|
140
|
+
</AstroCoords>
|
141
|
+
<AstroCoordArea id="Cas-A" coord_system_id="TT-ICRS-ENERGY-TOPO">
|
142
|
+
<CoordScalarInterval frame_id="counts">
|
143
|
+
<LoLimit>0.0</LoLimit>
|
144
|
+
</CoordScalarInterval>
|
145
|
+
<TimeInterval>
|
146
|
+
<StartTime>
|
147
|
+
<ISOTime>2002-02-06T06:23:17</ISOTime>
|
148
|
+
</StartTime>
|
149
|
+
<StopTime>
|
150
|
+
<ISOTime>2002-02-06T20:39:48</ISOTime>
|
151
|
+
</StopTime>
|
152
|
+
</TimeInterval>
|
153
|
+
<Polygon unit="deg">
|
154
|
+
<Vertex>
|
155
|
+
<Position>
|
156
|
+
<C1>350.99584</C1>
|
157
|
+
<C2>58.74772</C2>
|
158
|
+
</Position>
|
159
|
+
</Vertex>
|
160
|
+
<Vertex>
|
161
|
+
<Position>
|
162
|
+
<C1>350.72609</C1>
|
163
|
+
<C2>58.74760</C2>
|
164
|
+
</Position>
|
165
|
+
</Vertex>
|
166
|
+
<Vertex>
|
167
|
+
<Position>
|
168
|
+
<C1>350.72532</C1>
|
169
|
+
<C2>58.88741</C2>
|
170
|
+
</Position>
|
171
|
+
</Vertex>
|
172
|
+
<Vertex>
|
173
|
+
<Position>
|
174
|
+
<C1>350.99616</C1>
|
175
|
+
<C2>58.88753</C2>
|
176
|
+
</Position>
|
177
|
+
</Vertex>
|
178
|
+
</Polygon>
|
179
|
+
<SpectralInterval unit="keV">
|
180
|
+
<LoLimit>0.5</LoLimit>
|
181
|
+
<HiLimit>7.0</HiLimit>
|
182
|
+
</SpectralInterval>
|
183
|
+
</AstroCoordArea>
|
184
|
+
</ObservationLocation>
|
185
|
+
<!--
|
186
|
+
|
187
|
+
The image is represented as a pixel array.
|
188
|
+
|
189
|
+
The Pixel Space specifies the properties of this pixel array
|
190
|
+
|
191
|
+
and the way it is related to the world coordinates specified
|
192
|
+
|
193
|
+
above.
|
194
|
+
|
195
|
+
It consists of a pixel coordinate system that defines the pixel
|
196
|
+
|
197
|
+
axes and their transformation on the sky (WCS) and a pixel
|
198
|
+
|
199
|
+
coordinate area that defines the array's dimensions.
|
200
|
+
|
201
|
+
Note the use of frame_id to tie pixel interval to the correct
|
202
|
+
|
203
|
+
frame; in this case it is not strictly required since there is
|
204
|
+
|
205
|
+
only one frame, but in the general case this is the mechanism
|
206
|
+
|
207
|
+
used to avoid ambiguity.
|
208
|
+
|
209
|
+
-->
|
210
|
+
<PixelSpace>
|
211
|
+
<PixelCoordSystem id="Cas-APix">
|
212
|
+
<PixelCoordFrame id="spacepix" axis1_order="1" axis2_order="2" ref_frame_id="spaceFrame">
|
213
|
+
<Cart2DRefFrame projection="TAN">
|
214
|
+
<Transform2 unit="deg">
|
215
|
+
<C1>0.0001367</C1>
|
216
|
+
<C2>0.0001367</C2>
|
217
|
+
</Transform2>
|
218
|
+
</Cart2DRefFrame>
|
219
|
+
<CoordRefPos>
|
220
|
+
<Vector2DCoordinate unit="deg">
|
221
|
+
<Value2 idref="Center" xsi:nil="true"/>
|
222
|
+
</Vector2DCoordinate>
|
223
|
+
</CoordRefPos>
|
224
|
+
<CARTESIAN coord_naxes="2"/>
|
225
|
+
<ReferencePixel>
|
226
|
+
<Pixel2D>
|
227
|
+
<Name1>RA</Name1>
|
228
|
+
<Name2>Dec</Name2>
|
229
|
+
<Value2>
|
230
|
+
<C1>299.69</C1>
|
231
|
+
<C2>337.84</C2>
|
232
|
+
</Value2>
|
233
|
+
</Pixel2D>
|
234
|
+
</ReferencePixel>
|
235
|
+
</PixelCoordFrame>
|
236
|
+
</PixelCoordSystem>
|
237
|
+
<PixelCoordArea coord_system_id="Cas-APix" id="Cas-APixImage">
|
238
|
+
<PixelCoord2VecInterval frame_id="spacepix">
|
239
|
+
<LoLimit2Vec>
|
240
|
+
<C1>1</C1>
|
241
|
+
<C2>1</C2>
|
242
|
+
</LoLimit2Vec>
|
243
|
+
<HiLimit2Vec>
|
244
|
+
<C1>1025</C1>
|
245
|
+
<C2>1024</C2>
|
246
|
+
</HiLimit2Vec>
|
247
|
+
</PixelCoord2VecInterval>
|
248
|
+
</PixelCoordArea>
|
249
|
+
</PixelSpace>
|
250
|
+
</ObsDataLocation>
|
@@ -0,0 +1,63 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!--
|
3
|
+
|
4
|
+
This example is similar to M81image.xml, but illustrates how the
|
5
|
+
|
6
|
+
observatory location and the coordinate system definition may be
|
7
|
+
|
8
|
+
taken from a standard library.
|
9
|
+
|
10
|
+
For simplicity, the pixel space has been omitted.
|
11
|
+
|
12
|
+
-->
|
13
|
+
<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">
|
14
|
+
<ObservatoryLocation id="KPNO" xlink:type="simple" xlink:href="ivo://STClib/Observatories#KPNO"/>
|
15
|
+
<ObservationLocation>
|
16
|
+
<AstroCoordSystem id="TT-ICRS-TOPO" xlink:type="simple" xlink:href="ivo://STClib/CoordSys#TT-ICRS-TOPO"/>
|
17
|
+
<AstroCoords coord_system_id="TT-ICRS-TOPO">
|
18
|
+
<Time unit="s">
|
19
|
+
<TimeInstant>
|
20
|
+
<ISOTime>2004-07-15T08:23:56</ISOTime>
|
21
|
+
</TimeInstant>
|
22
|
+
<Error>2</Error>
|
23
|
+
</Time>
|
24
|
+
<Position2D unit="deg">
|
25
|
+
<Value2>
|
26
|
+
<C1>148.88821</C1>
|
27
|
+
<C2>69.06529</C2>
|
28
|
+
</Value2>
|
29
|
+
<Error2Radius>0.03
|
30
|
+
|
31
|
+
</Error2Radius>
|
32
|
+
</Position2D>
|
33
|
+
</AstroCoords>
|
34
|
+
<AstroCoordArea coord_system_id="TT-ICRS-TOPO">
|
35
|
+
<Polygon unit="deg">
|
36
|
+
<Vertex>
|
37
|
+
<Position>
|
38
|
+
<C1>148.88821</C1>
|
39
|
+
<C2>68.81529</C2>
|
40
|
+
</Position>
|
41
|
+
</Vertex>
|
42
|
+
<Vertex>
|
43
|
+
<Position>
|
44
|
+
<C1>148.18821</C1>
|
45
|
+
<C2>69.01529</C2>
|
46
|
+
</Position>
|
47
|
+
</Vertex>
|
48
|
+
<Vertex>
|
49
|
+
<Position>
|
50
|
+
<C1>148.88821</C1>
|
51
|
+
<C2>69.31529</C2>
|
52
|
+
</Position>
|
53
|
+
</Vertex>
|
54
|
+
<Vertex>
|
55
|
+
<Position>
|
56
|
+
<C1>149.58821</C1>
|
57
|
+
<C2>69.01529</C2>
|
58
|
+
</Position>
|
59
|
+
</Vertex>
|
60
|
+
</Polygon>
|
61
|
+
</AstroCoordArea>
|
62
|
+
</ObservationLocation>
|
63
|
+
</ObsDataLocation>
|
@@ -0,0 +1,216 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!--
|
3
|
+
|
4
|
+
The ObsDataLocation element is the container for the complete
|
5
|
+
|
6
|
+
metadata description of an observational dataset, in this case
|
7
|
+
|
8
|
+
an image.
|
9
|
+
|
10
|
+
It specifies the various required namespaces (for STC specifically:
|
11
|
+
|
12
|
+
STC and Xlink, and the location of the STC schema).
|
13
|
+
|
14
|
+
ObsDataLocation contains two main components: ObservatoryLocation
|
15
|
+
|
16
|
+
and ObservationLocation.
|
17
|
+
|
18
|
+
-->
|
19
|
+
<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">
|
20
|
+
<!--
|
21
|
+
|
22
|
+
The location of the observatory is specified by a set of
|
23
|
+
|
24
|
+
Spatial coordinates and an associated coordinate system
|
25
|
+
|
26
|
+
- geodetic, in this case.
|
27
|
+
|
28
|
+
-->
|
29
|
+
<ObservatoryLocation id="KPNO">
|
30
|
+
<AstroCoordSystem id="TT-GEOD-TOPO">
|
31
|
+
<TimeFrame>
|
32
|
+
<TimeScale>TT</TimeScale>
|
33
|
+
<TOPOCENTER/>
|
34
|
+
</TimeFrame>
|
35
|
+
<SpaceFrame>
|
36
|
+
<GEO_D/>
|
37
|
+
<TOPOCENTER/>
|
38
|
+
<SPHERICAL coord_naxes="3"/>
|
39
|
+
</SpaceFrame>
|
40
|
+
</AstroCoordSystem>
|
41
|
+
<AstroCoords coord_system_id="TT-GEOD-TOPO">
|
42
|
+
<Position3D>
|
43
|
+
<Value3>
|
44
|
+
<C1 pos_unit="deg">248.4056</C1>
|
45
|
+
<C2 pos_unit="deg">31.9586</C2>
|
46
|
+
<C3 pos_unit="m">2158</C3>
|
47
|
+
</Value3>
|
48
|
+
</Position3D>
|
49
|
+
</AstroCoords>
|
50
|
+
</ObservatoryLocation>
|
51
|
+
<!--
|
52
|
+
|
53
|
+
The observation's location and the volume it occupies in
|
54
|
+
|
55
|
+
coordinate space is specified by a set of coordinates and their
|
56
|
+
|
57
|
+
properties (errors, resolutions, etc.) and the area or interval
|
58
|
+
|
59
|
+
covered in each coordinate
|
60
|
+
|
61
|
+
- with the associated coordinate system.
|
62
|
+
|
63
|
+
Note that a generic coordinate frame has been defined to handle
|
64
|
+
|
65
|
+
the brightness axis.
|
66
|
+
|
67
|
+
-->
|
68
|
+
<ObservationLocation id="M81">
|
69
|
+
<AstroCoordSystem id="TT-ICRS-WAVELENGTH-TOPO">
|
70
|
+
<CoordFrame ucd="em..." id="brightness">
|
71
|
+
<Name>Brightness</Name>
|
72
|
+
<ScalarRefFrame>
|
73
|
+
<Scale>1.0</Scale>
|
74
|
+
</ScalarRefFrame>
|
75
|
+
<CARTESIAN coord_naxes="1"/>
|
76
|
+
</CoordFrame>
|
77
|
+
<TimeFrame>
|
78
|
+
<TimeScale>TT</TimeScale>
|
79
|
+
<TOPOCENTER/>
|
80
|
+
</TimeFrame>
|
81
|
+
<SpaceFrame id="spaceFrame">
|
82
|
+
<ICRS/>
|
83
|
+
<TOPOCENTER/>
|
84
|
+
<SPHERICAL coord_naxes="2"/>
|
85
|
+
</SpaceFrame>
|
86
|
+
<SpectralFrame>
|
87
|
+
<TOPOCENTER/>
|
88
|
+
</SpectralFrame>
|
89
|
+
</AstroCoordSystem>
|
90
|
+
<AstroCoords coord_system_id="TT-ICRS-WAVELENGTH-TOPO">
|
91
|
+
<ScalarCoordinate unit="mJy/arcsec**2" frame_id="brightness">
|
92
|
+
<Error>0.001</Error>
|
93
|
+
</ScalarCoordinate>
|
94
|
+
<Time unit="s">
|
95
|
+
<TimeInstant>
|
96
|
+
<ISOTime>2004-07-15T08:23:56</ISOTime>
|
97
|
+
</TimeInstant>
|
98
|
+
<Resolution>1000</Resolution>
|
99
|
+
<PixSize>1000</PixSize>
|
100
|
+
</Time>
|
101
|
+
<Position2D unit="deg">
|
102
|
+
<Value2 id="Center">
|
103
|
+
<C1>148.88821</C1>
|
104
|
+
<C2>69.06529</C2>
|
105
|
+
</Value2>
|
106
|
+
<Error2Radius>0.0003 </Error2Radius>
|
107
|
+
<Resolution2>
|
108
|
+
<C1>0.00025</C1>
|
109
|
+
<C2>0.00025</C2>
|
110
|
+
</Resolution2>
|
111
|
+
<PixSize2>
|
112
|
+
<C1>0.0001</C1>
|
113
|
+
<C2>0.0001</C2>
|
114
|
+
</PixSize2>
|
115
|
+
</Position2D>
|
116
|
+
<Spectral unit="Angstrom">
|
117
|
+
<Value>4600</Value>
|
118
|
+
<Resolution>400</Resolution>
|
119
|
+
<PixSize>400</PixSize>
|
120
|
+
</Spectral>
|
121
|
+
</AstroCoords>
|
122
|
+
<AstroCoordArea id="M81Image" coord_system_id="TT-ICRS-WAVELENGTH-TOPO">
|
123
|
+
<CoordScalarInterval frame_id="brightness">
|
124
|
+
<LoLimit>0.0</LoLimit>
|
125
|
+
<HiLimit>10.0</HiLimit>
|
126
|
+
</CoordScalarInterval>
|
127
|
+
<TimeInterval>
|
128
|
+
<StartTime>
|
129
|
+
<ISOTime>2004-07-15T08:17:36</ISOTime>
|
130
|
+
</StartTime>
|
131
|
+
<StopTime>
|
132
|
+
<ISOTime>2004-07-15T08:30:16</ISOTime>
|
133
|
+
</StopTime>
|
134
|
+
</TimeInterval>
|
135
|
+
<Position2VecInterval unit="deg">
|
136
|
+
<LoLimit2Vec>
|
137
|
+
<C1>148.18821</C1>
|
138
|
+
<C2>68.81529</C2>
|
139
|
+
</LoLimit2Vec>
|
140
|
+
<HiLimit2Vec>
|
141
|
+
<C1>149.58821</C1>
|
142
|
+
<C2>69.31529</C2>
|
143
|
+
</HiLimit2Vec>
|
144
|
+
</Position2VecInterval>
|
145
|
+
<SpectralInterval unit="Angstrom">
|
146
|
+
<LoLimit>4400</LoLimit>
|
147
|
+
<HiLimit>4800</HiLimit>
|
148
|
+
</SpectralInterval>
|
149
|
+
</AstroCoordArea>
|
150
|
+
</ObservationLocation>
|
151
|
+
<!--
|
152
|
+
|
153
|
+
The image is represented as a pixel array.
|
154
|
+
|
155
|
+
The Pixel Space specifies the properties of this pixel array
|
156
|
+
|
157
|
+
and the way it is related to the world coordinates specified
|
158
|
+
|
159
|
+
above.
|
160
|
+
|
161
|
+
It consists of a pixel coordinate system that defines the pixel
|
162
|
+
|
163
|
+
Axes and their transformation on the sky (WCS) and a pixel
|
164
|
+
|
165
|
+
Coordinate area that defines the array's dimensions.
|
166
|
+
|
167
|
+
Note the use of frame_id to tie pixel interval to the correct
|
168
|
+
|
169
|
+
frame; in this case it is not strictly required since there is
|
170
|
+
|
171
|
+
only one frame, but in the general case this is the mechanism
|
172
|
+
|
173
|
+
used to avoid ambiguity.
|
174
|
+
|
175
|
+
-->
|
176
|
+
<PixelSpace>
|
177
|
+
<PixelCoordSystem id="M81Pix">
|
178
|
+
<PixelCoordFrame id="spacepix" axis1_order="1" axis2_order="2" ref_frame_id="spaceFrame">
|
179
|
+
<Cart2DRefFrame projection="TAN">
|
180
|
+
<Transform2 unit="deg">
|
181
|
+
<C1>0.0001</C1>
|
182
|
+
<C2>0.0001</C2>
|
183
|
+
</Transform2>
|
184
|
+
</Cart2DRefFrame>
|
185
|
+
<CoordRefPos>
|
186
|
+
<Vector2DCoordinate unit="deg">
|
187
|
+
<Value2 idref="Center" xsi:nil="true"/>
|
188
|
+
</Vector2DCoordinate>
|
189
|
+
</CoordRefPos>
|
190
|
+
<CARTESIAN coord_naxes="2"/>
|
191
|
+
<ReferencePixel>
|
192
|
+
<Pixel2D>
|
193
|
+
<Name1>RA</Name1>
|
194
|
+
<Name2>Dec</Name2>
|
195
|
+
<Value2>
|
196
|
+
<C1>512</C1>
|
197
|
+
<C2>512</C2>
|
198
|
+
</Value2>
|
199
|
+
</Pixel2D>
|
200
|
+
</ReferencePixel>
|
201
|
+
</PixelCoordFrame>
|
202
|
+
</PixelCoordSystem>
|
203
|
+
<PixelCoordArea coord_system_id="M81Pix" id="M81PixImage">
|
204
|
+
<PixelCoord2VecInterval frame_id="spacepix">
|
205
|
+
<LoLimit2Vec>
|
206
|
+
<C1>1</C1>
|
207
|
+
<C2>1</C2>
|
208
|
+
</LoLimit2Vec>
|
209
|
+
<HiLimit2Vec>
|
210
|
+
<C1>1024</C1>
|
211
|
+
<C2>1024</C2>
|
212
|
+
</HiLimit2Vec>
|
213
|
+
</PixelCoord2VecInterval>
|
214
|
+
</PixelCoordArea>
|
215
|
+
</PixelSpace>
|
216
|
+
</ObsDataLocation>
|