我試圖確定泰坦的大小,但結果是這樣的錯誤消息: AttributeError的:「泰坦」對象沒有屬性「MAG」Pyephem:「泰坦」對象沒有屬性「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'
不是泰坦有屬性大小嗎?爲什麼?我可以確定天王星或月球的強度,但不是泰坦。至少不要使用'mag'屬性。 會是怎樣的方式?
編輯: 使用ephem的版本3.7.5.3和3.7.5.1。
的
.mag
至於我可以看到,泰坦應該有一個幅度。參考:https://github.com/brandon-rhodes/pyephem/blob/master/libastro-3.7.6/satmoon.c – Nayuki