Replies: 1 comment 4 replies
-
Note that you can also ask Skyfield for the GAST with:
To trace the difference between the two numbers, I would suggest reading through how the two different libraries compute the numbers, and seeing if they use formulae from different eras—every few years that IAU comes out with new polynomials, I believe. Glancing at the code called by the |
Beta Was this translation helpful? Give feedback.
-
I have some old code which uses pyephem to transform ICRS ra/dec positions to hour angle / local declination, and I'm trying to replace this with the equivalent in skyfield. I'm new to both, so I'm comparing with astropy to check results. I'm seeing slight differences in the local coordinates for each.
While tracking down the cause of those differences, I found that I get different values for the Greenwich apparent sidereal time (GAST) from each package. Between astropy and skyfield, I'm seeing a difference of a couple milliseconds. The following code does the comparison:
With the result:
Any ideas what I might be doing wrong here?
Thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions