I think I see a problem with the rotation equations in the J2,J3,J4 subroutine -- lines 492-495 in
forces.c.
For starters, assume the rotations were exactly zero in both ra and dec (ie no rotation at all).
I would think that you would expect that the rotation equations would yield:
dxp = dx
dyp = dy
dzp = dz
But if you set a=0 and d=0 with cosa=1, sina=0, cosd=1, sind=0 the equations give:
dxp = dy
dyp = dz
dzp = dx
which CAN'T be right and implies that the rotation equations are wrong.
Second, you're taking the value of a and d to be the actual RA and Dec of the Earth's pole (at J2000), ie 0
and 90 respectively and not the rotation angle of the pole from the J2000 position, both of which should both
be very small angles and are actually both zero if you want to fix things at J2000. But, you're effectively saying you want to
rotate the pole through 90 degrees in Dec and 0 degrees in RA.
And a very minor point, you calculate costheta2 = dz*dz/r2. But it's actually the sine of an angle, not
a cosine. And I think it's actually the sine of the "dec" of the object (but calculated from the non-light time corrected
positions).
Larry Wasserman
Lowell Observatory
lhw@lowell.edu
I think I see a problem with the rotation equations in the J2,J3,J4 subroutine -- lines 492-495 in
forces.c.
For starters, assume the rotations were exactly zero in both ra and dec (ie no rotation at all).
I would think that you would expect that the rotation equations would yield:
dxp = dx
dyp = dy
dzp = dz
But if you set a=0 and d=0 with cosa=1, sina=0, cosd=1, sind=0 the equations give:
dxp = dy
dyp = dz
dzp = dx
which CAN'T be right and implies that the rotation equations are wrong.
Second, you're taking the value of a and d to be the actual RA and Dec of the Earth's pole (at J2000), ie 0
and 90 respectively and not the rotation angle of the pole from the J2000 position, both of which should both
be very small angles and are actually both zero if you want to fix things at J2000. But, you're effectively saying you want to
rotate the pole through 90 degrees in Dec and 0 degrees in RA.
And a very minor point, you calculate costheta2 = dz*dz/r2. But it's actually the sine of an angle, not
a cosine. And I think it's actually the sine of the "dec" of the object (but calculated from the non-light time corrected
positions).
Larry Wasserman
Lowell Observatory
lhw@lowell.edu