@@ -155,8 +155,38 @@ associated with an object.
155
155
NAME North Star
156
156
WEB 2438
157
157
158
- Query to get all parents (or children, or siblings) of an object
159
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
158
+ Query hierarchy: to get all parents (or children, or siblings) of an object
159
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
160
+
161
+ SIMBAD also records hierarchy links between objects. For example, two galaxies in a pair
162
+ of galaxies are siblings, a cluster of stars is composed of stars: its children. This
163
+ information can be accessed with the `~astroquery.simbad.SimbadClass.query_hierarchy `
164
+ method.
165
+
166
+ Whenever available, membership probabilities are recorded in SIMBAD as given by
167
+ the authors, though rounded to an integer. When authors do not give a value but
168
+ assessments, they are translated in SIMBAD as follows:
169
+
170
+ +-------------------+------------------------+
171
+ | assessment | membership certainty |
172
+ +===================+========================+
173
+ | member | 100 |
174
+ +-------------------+------------------------+
175
+ | likely member | 75 |
176
+ +-------------------+------------------------+
177
+ | possible member | 50 |
178
+ +-------------------+------------------------+
179
+ | likely not member | 25 |
180
+ +-------------------+------------------------+
181
+ | non member | 0 |
182
+ +-------------------+------------------------+
183
+
184
+ For gravitational lens systems, double stars, and blends (superposition of two
185
+ non-physically linked objects), the SIMBAD team does not assign a probability
186
+ value (this will be a ``None ``).
187
+
188
+ You can find more details in the `hierarchy documentation
189
+ <https://simbad.cds.unistra.fr/guide/dataHierarchy.htx> `_ of SIMBAD's webpages.
160
190
161
191
Let's find the galaxies composing the galaxy pair ``Mrk 116 ``:
162
192
@@ -165,14 +195,14 @@ Let's find the galaxies composing the galaxy pair ``Mrk 116``:
165
195
>>> from astroquery.simbad import Simbad
166
196
>>> galaxies = Simbad.query_hierarchy(" Mrk 116" ,
167
197
... hierarchy= " children" , criteria= " otype='G..'" )
168
- >>> galaxies[[" main_id" , " ra" , " dec" ]]
198
+ >>> galaxies[[" main_id" , " ra" , " dec" , " membership_certainty " ]]
169
199
<Table length=2>
170
- main_id ra dec
171
- deg deg
172
- object float64 float64
173
- --------- --------------- --------------
174
- Mrk 116A 143.50821525019 55.24105273196
175
- Mrk 116B 143.509956 55.239762
200
+ main_id ra dec membership_certainty
201
+ deg deg percent
202
+ object float64 float64 int16
203
+ --------- --------------- -------------- --------------------
204
+ Mrk 116A 143.50821525019 55.24105273196 --
205
+ Mrk 116B 143.509956 55.239762 --
176
206
177
207
Alternatively, if we know one member of a group, we can find the others by asking for
178
208
``siblings ``:
@@ -182,14 +212,14 @@ Alternatively, if we know one member of a group, we can find the others by askin
182
212
>>> from astroquery.simbad import Simbad
183
213
>>> galaxies = Simbad.query_hierarchy(" Mrk 116A" ,
184
214
... hierarchy= " siblings" , criteria= " otype='G..'" )
185
- >>> galaxies[[" main_id" , " ra" , " dec" ]]
215
+ >>> galaxies[[" main_id" , " ra" , " dec" , " membership_certainty " ]]
186
216
<Table length=2>
187
- main_id ra dec
188
- deg deg
189
- object float64 float64
190
- --------- --------------- --------------
191
- Mrk 116A 143.50821525019 55.24105273196
192
- Mrk 116B 143.509956 55.239762
217
+ main_id ra dec membership_certainty
218
+ deg deg percent
219
+ object float64 float64 int16
220
+ --------- --------------- -------------- --------------------
221
+ Mrk 116A 143.50821525019 55.24105273196 --
222
+ Mrk 116B 143.509956 55.239762 --
193
223
194
224
Note that if we had not added the criteria on the object type, we would also get
195
225
some stars that are part of these galaxies in the result.
@@ -200,7 +230,8 @@ And the other way around, let's find which cluster of stars contains
200
230
.. doctest-remote-data ::
201
231
202
232
>>> from astroquery.simbad import Simbad
203
- >>> cluster = Simbad.query_hierarchy(" 2MASS J18511048-0615470" , hierarchy = " parents" )
233
+ >>> cluster = Simbad.query_hierarchy(" 2MASS J18511048-0615470" ,
234
+ ... hierarchy= " parents" , detailed_hierarchy= False )
204
235
>>> cluster[[" main_id" , " ra" , " dec" ]]
205
236
<Table length=1>
206
237
main_id ra dec
@@ -209,7 +240,7 @@ And the other way around, let's find which cluster of stars contains
209
240
--------- ------- -------
210
241
NGC 6705 282.766 -6.272
211
242
212
- If needed , we can get a more detailed report with the two extra columns:
243
+ By default , we get a more detailed report with the two extra columns:
213
244
- ``hierarchy_bibcode `` : the paper in which the hierarchy is established,
214
245
- ``membership_certainty ``: if present in the paper, a certainty index (100 meaning
215
246
100% sure).
@@ -240,11 +271,40 @@ If needed, we can get a more detailed report with the two extra columns:
240
271
NGC 6705 282.766 -6.272 2021MNRAS.503.3279S 99
241
272
NGC 6705 282.766 -6.272 2022MNRAS.509.1664J 100
242
273
243
- Here, we see that the Simbad team found 13 papers mentioning the fact that
274
+ Here, we see that the SIMBAD team found 13 papers mentioning the fact that
244
275
``2MASS J18511048-0615470 `` is a member of ``NGC 6705 `` and that the authors of these
245
276
articles gave high confidence indices for this membership (``membership_certainty `` is
246
277
close to 100 for all bibcodes).
247
278
279
+ A note of caution on hierarchy
280
+ """"""""""""""""""""""""""""""
281
+
282
+ In some tricky cases, low membership values represent extremely important information.
283
+ Let's for example look at the star ``V* V787 Cep ``:
284
+
285
+ .. doctest-remote-data ::
286
+
287
+ >>> from astroquery.simbad import Simbad
288
+ >>> parents = Simbad.query_hierarchy(" V* V787 Cep" ,
289
+ ... hierarchy= " parents" ,
290
+ ... detailed_hierarchy= True )
291
+ >>> parents[[" main_id" , " ra" , " dec" , " hierarchy_bibcode" , " membership_certainty" ]]
292
+ <Table length=4>
293
+ main_id ra dec hierarchy_bibcode membership_certainty
294
+ deg deg percent
295
+ object float64 float64 object int16
296
+ --------- ------------------ ------- ------------------- --------------------
297
+ NGC 188 11.797999999999998 85.244 2003AJ....126.2922P 46
298
+ NGC 188 11.797999999999998 85.244 2004PASP..116.1012S 46
299
+ NGC 188 11.797999999999998 85.244 2018A&A...616A..10G 100
300
+ NGC 188 11.797999999999998 85.244 2021MNRAS.503.3279S 1
301
+
302
+ Here, we see that the link between ``V* V787 Cep `` and the open cluster ``NGC 188 `` is
303
+ opened for debate: the only way to build an opinion is to read the four articles.
304
+ This information would be hidden if we did not print the detailed hierarchy report.
305
+
306
+ These somewhat contradictory results are an inherent part of SIMBAD, which simply
307
+ translates the literature into a database.
248
308
249
309
Query a region
250
310
^^^^^^^^^^^^^^
0 commit comments