我想要一个播种光谱类型的星星列表。对于单星,查询很好,例如 WASP-2A
customSimbad = Simbad()
customSimbad.add_votable_fields('sptype')
result = customSimbad.query_object('WASP-2A')
print (result)
结果:
MAIN_ID RA DEC ... SP_TYPE SP_QUAL SP_BIBCODE
"h:m:s" "d:m:s" ...
------- ------------- ------------- ... ------- ------- -------------------
WASP-2 20 30 54.1279 +06 25 46.338 ... K1.5 D 2013MNRAS.428..182B
这个多星查询找到了星星列表,但没有找到 sptype 字段......
customSimbad = Simbad()
customSimbad.add_votable_fields('sptype')
result = customSimbad.query_objects(["Rigel", "Betelgeuse", 'Procyon', 'Sirius A', 'Capella', 'Polaris'])
print (result)
结果:
MAIN_ID RA DEC ... SP_QUAL SP_BIBCODE
"h:m:s" "d:m:s" ...
--------- ------------- ------------- ... ------- -------------------
* bet Ori 05 14 32.2721 -08 12 05.898 ... C 1943ApJ....98..153M
* alf Ori 05 55 10.3053 +07 24 25.430 ... B 1989ApJS...71..245K
* alf CMi 07 39 18.1195 +05 13 29.955 ... C 2013yCat....1.2023S
* alf CMa 06 45 08.9172 -16 42 58.017 ... C 2003AJ....126.2048G
* alf Aur 05 16 41.3587 +45 59 52.769 ... C 1989ApJS...71..245K
* alf UMi 02 31 49.0945 +89 15 50.792 ... C 1993ASPC...45...59L
怎么了?