Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible problem with rotation equations in forces.c #86

Open
Larry1019 opened this issue Jul 17, 2023 · 3 comments
Open

Possible problem with rotation equations in forces.c #86

Larry1019 opened this issue Jul 17, 2023 · 3 comments

Comments

@Larry1019
Copy link

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
[email protected]

@hannorein
Copy link
Collaborator

I'll let Matt comment on this, just one small thing: note that an inverse rotation is performed a few lines further down.

@Larry1019
Copy link
Author

Larry1019 commented Jul 17, 2023 via email

@Larry1019
Copy link
Author

Larry1019 commented Jul 17, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants