Closed kpbird closed 5 years ago
Off the top of my head:
I suspect that the difference between de430 and de421 will only be a few fractions of an arcsecond in this situation — DE421 is a very, very accurate ephemeris. (I say this only to help @kpbird avoid a huge download that's unlikely to change Skyfield's answer much, not to complain about your attempt to help!)
@kpbird You are comparing right ascension with ecliptic longitude, hence the difference. What you probably want is something like this:
astrometric_mercury = earth.at(t).observe(mercury)
apparent_mercury = astrometric_mercury.apparent()
lat, lon, d = apparent_mercury.ecliptic_latlon(epoch='date')
And lon will obviously be what you are looking for.
@beaglebao - Thank You for developing sky field library @GammaSagittarii -Thank You, Your solution works for me
I am calculating Planet (Mars & Mercury) Position on 27 Feb 1983 17:34:00
Skyfield Result :
Mars 2.3836313274432888 deg Mercury 321.5257022360414 deg
Swiss Ephemeris Result:
Mars 2° 5'41.33844009 Mercury 318°16'42.00708980
I found the 3-degree difference between Skyfield and Swiss Ephemeris. Am I missing something in Skyfield?
I have used following Python code for calculation
Please click the following link for Swiss Ephemeris. (I have also attached a screenshot with email) https://www.astro.com/cgi/swetest.cgi?b=27.2.1983+-ut17%3A34%3A0&n=1&s=1&p=p&e=-eswe&f=PLBRS&arg=