Skip to content

Commit 4d0bb53

Browse files
authored
Merge pull request #2701 from aoberto/aoberto-patch-doc-otype
Add Simbad example about object types criteria
2 parents cee41df + c97b9d3 commit 4d0bb53

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

docs/simbad/simbad.rst

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,39 @@ See that link for details of how these queries are formed.
439439
NAME SGR A EAST 17 45 47 -29 00.2 4 4 18000.000 18000.000 1 E
440440
441441
442+
Object type criteria
443+
--------------------
444+
445+
SIMBAD sets a ``maintype`` for each astronomical object that is related to the real type classification. Other object types (``otypes``) are given, which are related to some types coming from some surveys/observations. Depending on your needs, ``maintype`` or ``otype`` fields can be used.
446+
To use all subcategories of an object type, ``maintypes`` or ``otypes`` fields can also be used.
447+
See the dedicated SIMBAD `documentation on object types <https://simbad.cds.unistra.fr/guide/otypes/>`__.
448+
449+
.. code-block:: python
450+
451+
>>> from astroquery.simbad import Simbad
452+
>>> result = Simbad.query_criteria('region(CIRCLE, Trapezium Nebula, 3m)', maintypes='YSO')
453+
>>> print(result)
454+
MAIN_ID RA DEC RA_PREC DEC_PREC ... COO_ERR_ANGLE COO_QUAL COO_WAVELENGTH COO_BIBCODE SCRIPT_NUMBER_ID
455+
----------------------- ------------- ------------- ------- -------- ... ------------- -------- -------------- ------------------- ----------------
456+
* tet01 Ori D 05 35 17.2574 -05 23 16.570 14 14 ... 90 A O 2020yCat.1350....0G 0
457+
* tet01 Ori A 05 35 15.8254 -05 23 14.334 14 14 ... 90 A O 2020yCat.1350....0G 0
458+
V* MR Ori 05 35 16.9783 -05 21 45.337 14 14 ... 90 A O 2020yCat.1350....0G 0
459+
V* V377 Ori 05 35 21.2917 -05 24 57.399 14 14 ... 90 A O 2020yCat.1350....0G 0
460+
V* AF Ori 05 35 18.6664 -05 23 13.946 14 14 ... 90 A O 2020yCat.1350....0G 0
461+
V* V1228 Ori 05 35 12.2788 -05 23 48.027 14 14 ... 90 A O 2020yCat.1350....0G 0
462+
V* V2228 Ori 05 35 12.8166 -05 20 43.608 14 14 ... 90 A O 2020yCat.1350....0G 0
463+
Parenago 1820 05 35 13.5189 -05 22 19.552 14 14 ... 90 A O 2020yCat.1350....0G 0
464+
... ... ... ... ... ... ... ... ... ... ...
465+
HH 998 05 35 16.0 -05 23 54 5 5 ... 0 E 2015AJ....150..108O 0
466+
Parenago 1823 05 35 14.0513 -05 23 38.466 14 14 ... 90 A O 2020yCat.1350....0G 0
467+
2MASS J05351884-0522229 05 35 18.8454 -05 22 22.996 14 14 ... 90 C O 2020yCat.1350....0G 0
468+
[SRB2015] p132 05 35 25.9362 -05 22 24.404 9 9 ... 0 E s 2015MNRAS.449.1769S 0
469+
[SRB2015] p136 05 35 14.3406 -05 22 26.643 9 9 ... 0 E s 2015MNRAS.449.1769S 0
470+
[SRB2015] p142 05 35 25.9653 -05 21 24.460 9 9 ... 0 E s 2015MNRAS.449.1769S 0
471+
[OW94] 183-405 05 35 18.3314 -05 24 04.844 14 14 ... 90 A O 2020yCat.1350....0G 0
472+
[H97b] 511b 05 35 16.2800 -05 22 10.420 8 8 ... 0 C R 2016ApJ...831..155S 0
473+
474+
442475
.. _vectorqueries:
443476

444477
Vectorized Queries
@@ -528,6 +561,7 @@ You can also stitch together region queries by writing a sophisticated script:
528561
529562
530563
564+
531565
Customizing the default settings
532566
================================
533567

0 commit comments

Comments
 (0)