@@ -134,7 +134,7 @@ you would say:
134
134
... registry.Freetext(" AGB" ))
135
135
136
136
After that, ``resources `` is an instance of
137
- :py:class: `~pyvo.registry.regtap. RegistryResults `, which you can iterate over. In
137
+ :py:class: `~pyvo.registry.RegistryResults `, which you can iterate over. In
138
138
interactive data discovery, however, it is usually preferable to use the
139
139
``to_table `` method for an overview of the resources available:
140
140
@@ -165,13 +165,12 @@ And to look for tap resources *in* a specific cone, you would do
165
165
object ...
166
166
------------------------------- ...
167
167
ivo://cds.vizier/j/a+a/688/a104 ...
168
- ivo://cds.vizier/j/aj/166/68 ...
168
+ ivo://cds.vizier/j/apj/938/73 ...
169
169
170
170
Astropy Quantities are also supported for the radius angle of a SkyCoord-defined circular region:
171
171
172
172
.. doctest-remote-data ::
173
173
174
- >>> from astropy.coordinates import SkyCoord
175
174
>>> from astropy import units as u
176
175
>>> registry.search(registry.Freetext(" Wolf-Rayet" ),
177
176
... registry.Spatial((SkyCoord(" 23d +3d" ), 180 * u.Unit(' arcmin' )), intersect = " enclosed" ))
@@ -181,7 +180,7 @@ Astropy Quantities are also supported for the radius angle of a SkyCoord-defined
181
180
object ...
182
181
------------------------------- ...
183
182
ivo://cds.vizier/j/a+a/688/a104 ...
184
- ivo://cds.vizier/j/aj/166/68 ...
183
+ ivo://cds.vizier/j/apj/938/73 ...
185
184
186
185
Where ``intersect `` can take the following values:
187
186
* 'covers' is the default and returns resources that cover the geometry provided,
@@ -205,7 +204,7 @@ are not), but it is rather clunky, and in the real VO short name
205
204
collisions should be very rare.
206
205
207
206
Use the ``get_service `` method of
208
- :py:class: `~pyvo.registry.regtap. RegistryResource ` to obtain a DAL service
207
+ :py:class: `~pyvo.registry.RegistryResource ` to obtain a DAL service
209
208
object for a particular sort of interface.
210
209
To query the fourth match using simple cone search, you would
211
210
thus say:
@@ -229,8 +228,8 @@ the first conesearch it finds.
229
228
However some providers provide multiple services of the same type
230
229
-- for example in VizieR you'll find one conesearch per table.
231
230
In this case, you can inspect the available `~pyvo.registry.regtap.Interface ` to services with
232
- `~pyvo.registry.regtap. RegistryResource.list_interfaces `. Then, you can refine your
233
- instructions to `~pyvo.registry.regtap. RegistryResource.get_service ` with a keyword
231
+ `~pyvo.registry.RegistryResource.list_interfaces `. Then, you can refine your
232
+ instructions to `~pyvo.registry.RegistryResource.get_service ` with a keyword
234
233
constraint on the description ``get_service(service_type='conesearch', keyword='sncat') ``.
235
234
236
235
.. doctest-remote-data ::
@@ -363,7 +362,7 @@ to find what x-ray images that have of CasA. For the arguments you will
363
362
enter ``'image' `` for the service type and ``'x-ray' `` for the waveband.
364
363
The position is provided by the Astropy library.
365
364
366
- The query returns a :py:class: `~pyvo.registry.regtap. RegistryResults ` object
365
+ The query returns a :py:class: `~pyvo.registry.RegistryResults ` object
367
366
which is a container holding a table of matching services. In this example
368
367
it returns 33 matching services.
369
368
@@ -432,12 +431,12 @@ Search results
432
431
==============
433
432
434
433
What is coming back from registry.search is
435
- :py:class: `pyvo.registry.regtap. RegistryResults ` which is rather
434
+ :py:class: `pyvo.registry.RegistryResults ` which is rather
436
435
similar to :ref: `pyvo-resultsets `; just remember that for interactive
437
436
use there is the ``to_tables `` method discussed above.
438
437
439
438
The individual items are instances of
440
- :py:class: `~pyvo.registry.regtap. RegistryResource `, which expose many
439
+ :py:class: `~pyvo.registry.RegistryResource `, which expose many
441
440
pieces of metadata (e.g., title, description, creators, etc) in
442
441
attributes named like their RegTAP counterparts (see the class
443
442
documentation). Some attributes deserve a second look.
0 commit comments