我试图确定Titan的大小,但结果是此错误消息:
AttributeError:“ Titan”对象没有属性“ mag”
>>> import ephem
>>> t = ephem.Titan()
>>> t.compute()
>>> t.ra
15:55:10.52
>>> t.mag
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'Titan' object has no attribute 'mag'
泰坦(Titan)没有属性等级吗?为什么?我可以确定天王星或月亮的大小,但不能确定泰坦的大小。至少没有'mag'属性。
怎么回事?
编辑:
带有ephem版本3.7.5.3和3.7.5.1。
最佳答案
根据PyEphem Homepage Docsephem.Body
类型是唯一具有.mag
属性的类型
Titan被归类为ephem.PlanetMoon
对象,因此没有.mag
属性ephem.Body
对象的当前列表是:
木星,火星,水星,月亮,海王星,冥王星,土星,太阳,天王星,金星。
我不知道以短暂方式计算.mag
对象的ephem.PlanetMoon
关于python - 焦eph:'Titan'对象没有属性'mag',我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/30713228/