Precession not being applied correctly in epoch calculation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PyEphem |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi,
I have very recently downloaded pyephem. I like the user interface a lot.
However, I am getting very flaky results from it, specifically when I try to obtain the estimates of a star's declination at some point in the past. I have used exactly the code described in http://
My script looks like this:
import ephem
import ephem.stars
polaris = ephem.readdb(
polaris.compute() # uses the current time by default
print 'my result for current polaris dec',polaris.dec
print 'webpage result 89:15:50.73\n'
polaris.
print 'my result for polaris dec in 2100',polaris.dec
print 'webpage result 89:32:26.08\n'
thuban = ephem.readdb(
thuban.compute()
print 'my result for current thuban dec',thuban.dec
print 'webpage result 64:22:32.99\n'
print 'my result for thuban dec in -2800',thuban.dec
print 'webpage result 89:54:34.97\n'
polaris.
print 'my result for polaris dec in -2800',polaris.dec
print 'webpage result 63:33:17.63\n'
And outputs this:
my result for current polaris dec 89:19:19.8
webpage result 89:15:50.73
my result for polaris dec in 2100 89:19:19.8
webpage result 89:32:26.08
my result for current thuban dec 64:18:39.2
webpage result 64:22:32.99
my result for thuban dec in -2800 64:18:39.2
webpage result 89:54:34.97
my result for polaris dec in -2800 89:19:19.8
webpage result 63:33:17.63
May I designate your five results as (1) through (5) to make it easier to reference them? From what I can tell, here is what happened each time.
(1) You are printing out Polaris's position using today's coordinates (“epoch of today” is what a professional astronomer might call it) by saying “.ra” — but if you will double check the tutorial, it uses “.a_ra” which is the “astrometric position” which uses the sky coordinate system of the year 2000 as an unchanging standard. If you will change your own code to use this, then I think you will find that the results agree!