@@ -91,10 +91,10 @@ See a more elaborated example:
91
91
>>> simbad.add_votable_fields(" otype" , " alltypes" )
92
92
>>> result = simbad.query_catalog(" M" , criteria = CriteriaTranslator.parse(old_criteria))
93
93
>>> result.sort(" catalog_id" )
94
- >>> result[[" main_id" , " catalog_id" , " otype" , " otypes" ]]
94
+ >>> result[[" main_id" , " catalog_id" , " otype" , " alltypes. otypes" ]]
95
95
<Table length=11>
96
- main_id catalog_id otype otypes
97
- object object object object
96
+ main_id catalog_id otype alltypes.otypes
97
+ object object object object
98
98
--------- ---------- ------ ----------------------------------------
99
99
M 1 M 1 SNR HII|IR|Psr|Rad|SNR|X|gam
100
100
M 24 M 24 As* As*|Cl*|GNe
@@ -249,26 +249,23 @@ A query for fluxes would then look like:
249
249
However, this quick access does not allow to retrieve the flux error or the bibcode of the
250
250
article from which the information is extracted. To do so, prefer the ``flux `` votable field:
251
251
252
- .. this will fail when upstream bug https://github.com/gmantele/vollt/issues/154 is fixed.
253
- .. "filter" should be replaced by "flux.filter" and "bibcode" by "flux.bibcode".
254
-
255
252
.. doctest-remote-data ::
256
253
257
254
>>> from astroquery.simbad import Simbad
258
255
>>> simbad = Simbad()
259
256
>>> simbad.add_votable_fields(" flux" )
260
257
>>> result = simbad.query_object(" BD-16 5701" )
261
- >>> result[[" main_id" , " flux" , " flux_err" , " filter" , " bibcode" ]]
258
+ >>> result[[" main_id" , " flux" , " flux_err" , " flux. filter" , " flux. bibcode" ]]
262
259
<Table length=6>
263
- main_id flux flux_err filter bibcode
264
- object float32 float32 object object
265
- ----------- --------- -------- ------ -------------------
266
- BD-16 5701 10.322191 0.002762 G 2020yCat.1350....0G
267
- BD-16 5701 10.6 0.06 V 2000A&A...355L..27H
268
- BD-16 5701 9.205 0.023 J 2003yCat.2246....0C
269
- BD-16 5701 8.879 0.042 H 2003yCat.2246....0C
270
- BD-16 5701 8.777 0.02 K 2003yCat.2246....0C
271
- BD-16 5701 11.15 0.07 B 2000A&A...355L..27H
260
+ main_id flux flux_err flux. filter flux. bibcode
261
+ object float32 float32 object object
262
+ ----------- --------- -------- ----------- -------------------
263
+ BD-16 5701 10.322191 0.002762 G 2020yCat.1350....0G
264
+ BD-16 5701 10.6 0.06 V 2000A&A...355L..27H
265
+ BD-16 5701 9.205 0.023 J 2003yCat.2246....0C
266
+ BD-16 5701 8.879 0.042 H 2003yCat.2246....0C
267
+ BD-16 5701 8.777 0.02 K 2003yCat.2246....0C
268
+ BD-16 5701 11.15 0.07 B 2000A&A...355L..27H
272
269
273
270
This gives more details than the quick view. Each line corresponds to a unique filter.
274
271
The ``bibcode `` column corresponds to the article in which the flux information was found.
@@ -280,14 +277,12 @@ We could also add a criteria to restrict the filters in the output:
280
277
>>> simbad = Simbad()
281
278
>>> simbad.add_votable_fields(" flux" )
282
279
>>> result = simbad.query_object(" BD-16 5701" , criteria = " filter IN ('U', 'B', 'G')" )
283
- >>> result[[" main_id" , " flux" , " flux_err" , " filter" , " bibcode" ]]
280
+ >>> result[[" main_id" , " flux" , " flux_err" , " flux. filter" , " flux. bibcode" ]]
284
281
<Table length=2>
285
- main_id flux flux_err filter bibcode
286
- object float32 float32 object object
287
- ----------- --------- -------- ------ -------------------
288
- BD-16 5701 11.15 0.07 B 2000A&A...355L..27H
289
- BD-16 5701 10.322191 0.002762 G 2020yCat.1350....0G
290
-
291
- There was no match for ``U ``, but the information is there for ``B `` and ``G ``.
282
+ main_id flux flux_err flux.filter flux.bibcode
283
+ object float32 float32 object object
284
+ ----------- --------- -------- ----------- -------------------
285
+ BD-16 5701 11.15 0.07 B 2000A&A...355L..27H
286
+ BD-16 5701 10.322191 0.002762 G 2020yCat.1350....0G
292
287
293
- .. replace ``bibcode`` by ``flux.bibcode`` here when https://github.com/gmantele/vollt/issues/154 is fixed .
288
+ There was no match for `` U ``, but the information is there for `` B `` and `` G `` .
0 commit comments