-
Notifications
You must be signed in to change notification settings - Fork 121
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
Moon position comparison: VSOP87 / Horizons #229
Comments
Thanks for providing a sample script, but I'm not sure it cut-and-pasted cleanly? There's no code to call the function. And, it tries to use a name |
Apologies, updated now to run as |
Thanks for the working script! What are the units in your x-y plot, so that I know how big a difference is being shown? |
Oops, the y-axis is the decimal difference between the RA and DEC coordinates for the cases Horizons-PyEphem, Horizons-AstroPy. The x-axis has a point for everyminute from 00:00:00 to 05:38:00 UT- when the Moon is visible above 30.25 degrees. I'll draw up better plots now. |
With the two quantities expressed in degrees, or is RA in hours? (Edit: I'm guessing hours, from the script, now that I re-read it.) |
@StacyMader — Thanks for the updated plots! Per the quick reference, PyEphem's |
@brandon-rhodes , Horizons header below. I take this to mean the coordinates are for the
I read here about
So I took this to say Instead of |
I attach my Python script for AstroPy, see below. The home location in EarthLocation and Horizons is Geodetic, not geocentric, though I do note AstroPy stores the location internally as Geocentric.
|
I want to say: I may not have been clear in my earlier comment: I think that Since the Moon is only about 60 Earth radii away, a given lat/lon on Earth's surface will, as the Earth rotates, see the Moon first from one side and then the other side of the Earth's center. This moves the Moon back and forth a bit against the stars, creating the difference in RA and dec that you are noticing. But instead I'm going to ask: What happened to the sine-wave like shape of the dec difference in the earlier diagrams? Now it look like a flat line, which doesn't agree with the theory I just typed up — actually, I guess they should both be a sine wave. Hmm. I might need to really take time to look at this the next time I have the chance to do a deeper dive than I have time for this evening. |
I have been looking at the Moon position from PyEphem and comparing to Horizons. Unless I am doing something really dumb here, the differences in the Astrometric position relative to an observer are quite large.
Attached are difference plots of the RA and DEC Astrometric positions for the Moon from 2022-04-01, 00:00:00 to 05:38:00 UTC. The PyEphem plots are a lot more than 1 arc-second accuracy. AstroPy is bang on, though I am using DE432s.
I also add my PyEphem script below and the Horizons output. In both cases, I have disabled refraction calculations by setting pressure to zero.
Any help appreciated.
Thanks,
Stacy.
The text was updated successfully, but these errors were encountered: