Error trying to compute altaz from earth position to jupiter #1008
Replies: 2 comments 5 replies
-
Although I cannot offer specific help, I'm confident the first thing those that can help you will ask for a small complete test script which demonstrates the error. |
Beta Was this translation helpful? Give feedback.
-
Hei, when calling
And indeed, the code always applies the deflection of light due to the Sun, Jupiter, and Saturn. In relativity.py it defines deflectors
And the So I see a few solutions:
From a skyfield development point-of-view, issuing a warning when a deflection cannot be applied due to lacking ephemeris is probably the cleanest way. BTW: as it is now, your code will not work, as altaz() needs to be called from a position on Earth (i.e. a latitude/longitude). But that is easily fixed. Also, it is the |
Beta Was this translation helpful? Give feedback.
-
My ultimate goal is to compute the angles between the largest moons of Jupiter and Jupiter. To facilitate that, I loaded the jup365.bsp Spice kernel which includes Jupiter, the sun and Earth and a number of moons. To familiarize myself with this file, I first tried computing the alt and az from my location (home) to jupiter using home.at(t).observe(jupiter).apparent().altaz(). What I got was a KeyError exception that basically stated that Saturn was not found in the kernel. Why does Saturn need to be in the kernel? Is this a possible bug?
Beta Was this translation helpful? Give feedback.
All reactions