@@ -20,11 +20,12 @@ Table Discover
20
20
If you want to search for a set of tables, e.g. based on author name or other keywords,
21
21
the :meth: `~astroquery.vizier.VizierClass.find_catalogs ` tool can be used:
22
22
23
+ .. order is not deterministic
23
24
.. doctest-remote-data ::
24
25
25
26
>>> from astroquery.vizier import Vizier
26
- >>> catalog_list = Vizier.find_catalogs(' hot jupiter exoplanet transit' )
27
- >>> for k, v in catalog_list.items():
27
+ >>> catalog_list = Vizier() .find_catalogs(' hot jupiter exoplanet transit' )
28
+ >>> for k, v in catalog_list.items(): # doctest: +IGNORE_OUTPUT
28
29
... print (k, " :" , v.description)
29
30
J/A+A/635/A205 : Ultra-hot Jupiter WASP-121b transits (Bourrier+, 2020)
30
31
J/ApJ/788/39 : Hot Jupiter exoplanets host stars EW and abundances (Teske+, 2014)
@@ -45,7 +46,7 @@ the complete contents of those catalogs:
45
46
.. doctest-remote-data ::
46
47
47
48
>>> catalogs = Vizier.get_catalogs(catalog_list.keys())
48
- >>> print (catalogs)
49
+ >>> print (catalogs) # doctest: +IGNORE_OUTPUT
49
50
TableList with 10 tables:
50
51
'0:J/A+A/635/A205/20140119' with 7 column(s) and 50 row(s)
51
52
'1:J/A+A/635/A205/20140123' with 7 column(s) and 50 row(s)
65
66
.. doctest-remote-data ::
66
67
67
68
>>> catalogs = Vizier.get_catalogs(catalog_list.values())
68
- >>> print (catalogs)
69
+ >>> print (catalogs) # doctest: +IGNORE_OUTPUT
69
70
TableList with 10 tables:
70
71
'0:J/A+A/635/A205/20140119' with 7 column(s) and 50 row(s)
71
72
'1:J/A+A/635/A205/20140123' with 7 column(s) and 50 row(s)
81
82
.. doctest-remote-data ::
82
83
83
84
>>> catalogs = Vizier.get_catalogs(catalog_list.keys())
84
- >>> print (catalogs)
85
+ >>> print (catalogs) # doctest: +IGNORE_OUTPUT
85
86
TableList with 10 tables:
86
87
'0:J/A+A/635/A205/20140119' with 7 column(s) and 50 row(s)
87
88
'1:J/A+A/635/A205/20140123' with 7 column(s) and 50 row(s)
@@ -101,7 +102,7 @@ complete catalog, you need to change that:
101
102
102
103
>>> Vizier.ROW_LIMIT = - 1
103
104
>>> catalogs = Vizier.get_catalogs(catalog_list.keys())
104
- >>> print (catalogs)
105
+ >>> print (catalogs) # doctest: +IGNORE_OUTPUT
105
106
TableList with 10 tables:
106
107
'0:J/A+A/635/A205/20140119' with 7 column(s) and 235 row(s)
107
108
'1:J/A+A/635/A205/20140123' with 7 column(s) and 195 row(s)
@@ -160,11 +161,11 @@ For instance to query Sirius across all catalogs:
160
161
.. doctest-remote-data ::
161
162
162
163
>>> from astroquery.vizier import Vizier
163
- >>> vizier = Vizier()
164
+ >>> vizier = Vizier(row_limit = 10 )
164
165
>>> result = vizier.query_object(" sirius" )
165
166
>>> print (result)
166
- TableList with 416 tables:
167
- '0:METAobj' with 5 column(s) and 7 row(s)
167
+ TableList with ... tables:
168
+ '0:METAobj' with 5 column(s) and 7 row(s)
168
169
'1:ReadMeObj' with 5 column(s) and 7 row(s)
169
170
'2:I/34/greenw2a' with 16 column(s) and 1 row(s)
170
171
...
@@ -298,23 +299,24 @@ on the Vizier class.
298
299
>>> v = Vizier(columns = [' _RAJ2000' , ' _DEJ2000' ,' B-V' , ' Vmag' , ' Plx' ],
299
300
... column_filters= {" Vmag" :" >10" }, keywords= [" optical" , " xry" ]) # doctest: +IGNORE_WARNINGS
300
301
301
- Note that whenever an unknown keyword is specified, a warning is emitted and
302
+ Note that whenever an unknown keyword is specified (here `` xry ``) a warning is emitted and
302
303
that keyword is discarded from further consideration. The behavior for
303
304
searching with these keywords is the same as defined for the web
304
305
interface (`for details see here `_). Now we call the different query methods on
305
306
this Vizier instance:
306
307
308
+ .. output can be in any order here
307
309
.. doctest-remote-data ::
308
310
309
311
>>> v = Vizier(columns = [' _RAJ2000' , ' _DEJ2000' ,' B-V' , ' Vmag' , ' Plx' ],
310
- ... column_filters= {" Vmag" :" >10" }, keywords= [" optical" , " xry " ]) # doctest: +IGNORE_WARNINGS
312
+ ... column_filters= {" Vmag" :" >10" }, keywords= [" optical" ])
311
313
>>> result = v.query_object(" HD 226868" , catalog = [" NOMAD" , " UCAC" ])
312
314
>>> print (result)
313
315
TableList with 3 tables:
314
316
'0:I/297/out' with 3 column(s) and 50 row(s)
315
317
'1:I/322A/out' with 3 column(s) and 10 row(s)
316
318
'2:I/340/ucac5' with 2 column(s) and 26 row(s)
317
- >>> print (result[' I/322A/out' ])
319
+ >>> print (result[' I/322A/out' ]) # doctest: +IGNORE_OUTPUT
318
320
_RAJ2000 _DEJ2000 Vmag
319
321
deg deg mag
320
322
------------- ------------- ------
0 commit comments