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

GHA of Aries #7

Open
tt7533 opened this issue Oct 3, 2022 · 1 comment
Open

GHA of Aries #7

tt7533 opened this issue Oct 3, 2022 · 1 comment

Comments

@tt7533
Copy link

tt7533 commented Oct 3, 2022

As part of a celestial navigation project I am trying to reproduce the GHA of Aries as it is printed in the Nautical Almanac.

Unfortunately, Skyfield does not appear to have Aries. And although I have tried to dig from within this codebase how the GHA of Aries is determined, I couldn't manage to extract a minimal sample code from it.

Any help in showing me how to get the GHA of Aries programmatically (other than consult the almanac directly) would be greatly welcome.

@tt7533
Copy link
Author

tt7533 commented Oct 3, 2022

def get_aries_gha(year, month, day, hour, minutes, seconds):
    ts = skyfield_load.timescale()
    t = ts.ut1(year, month, day, hour, minutes, seconds)
    return round(15 * t.gast, 2)

This seems to return the expected result but I would like to confirm and understand if possible...

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

1 participant