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

Support multiple sun position dispatch methods #25

Merged
merged 7 commits into from
Sep 12, 2023

Conversation

taldcroft
Copy link
Member

@taldcroft taldcroft commented Jan 2, 2023

Description

The legacy "fast" method of computing the sun RA, Dec from the Earth geocenter appears to have errors up to about 0.3 deg. For many applications this is fine, but for cases where this is not OK this PR adds a new more accurate method which uses the DE432s ephemeris.

Fixes #2.

Interface impacts

Testing

Unit tests

  • Mac

Independent check of unit tests by Jean

  • Mac

Functional tests

Added new unit test to do some rough functional testing against data in obsid 17198.

ska_sun/sun.py Outdated Show resolved Hide resolved
@jeanconn
Copy link
Contributor

I think this is still a WIP because it probably needs new tests and more details in the description, but I don't know if there are any other issues / challenges.

@jeanconn jeanconn force-pushed the more-accurate-sun-position branch from dbbee34 to c8cc287 Compare August 29, 2023 18:43
@jeanconn jeanconn changed the title WIP: Support multiple sun position dispatch methods Support multiple sun position dispatch methods Aug 29, 2023
@jeanconn jeanconn changed the title Support multiple sun position dispatch methods WIP: Support multiple sun position dispatch methods Aug 29, 2023
@jeanconn jeanconn changed the base branch from performance to master August 29, 2023 18:53
@jeanconn
Copy link
Contributor

This was originally a PR against #24 but I have been updating it and testing it standalone and I think maybe #24 can be closed and this can just go.

@jeanconn jeanconn changed the title WIP: Support multiple sun position dispatch methods Support multiple sun position dispatch methods Aug 29, 2023
@jeanconn jeanconn requested a review from javierggt August 29, 2023 18:59
@jeanconn
Copy link
Contributor

I've marked this for review by @javierggt as it is @taldcroft 's PR but with some new commits by me at the end.

@jeanconn jeanconn self-assigned this Aug 31, 2023
@jeanconn jeanconn mentioned this pull request Sep 11, 2023
2 tasks
@taldcroft
Copy link
Member Author

I individually reviewed each commit from @jeanconn and they all look good.

@taldcroft
Copy link
Member Author

@jeanconn - I'm just trying to rebase and there are some non-trivial merge conflicts. So stand by (meaning don't try to do this independently).

@taldcroft taldcroft force-pushed the more-accurate-sun-position branch from 5ac26ba to f6a9915 Compare September 12, 2023 12:55
@taldcroft
Copy link
Member Author

OK, I just had not pulled the force-pushed remote branch.

@jeanconn
Copy link
Contributor

Thanks! And yeah, generally I try to refrain from force-pushing somebody-else's branch, but I was just trying to get through to tests passing when I started with this.

@taldcroft taldcroft merged commit c811fa4 into master Sep 12, 2023
@taldcroft taldcroft deleted the more-accurate-sun-position branch September 12, 2023 13:08
@jeanconn jeanconn mentioned this pull request Sep 16, 2023
2 tasks
@javierggt javierggt mentioned this pull request Oct 4, 2023
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

Successfully merging this pull request may close these issues.

Discrepancy between telemetry and roll prediction
2 participants