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

Add timezone and observing night calculations #121

Merged
merged 2 commits into from
Oct 9, 2024
Merged

Conversation

moeyensj
Copy link
Member

@moeyensj moeyensj commented Oct 8, 2024

It's often useful to get the timezone of an observatory so that you can establish the local midnight relative to the reported observation times (often reported in UTC). This PR adds code to calculate the timezone for each observatory based on the observatory's longitude and latitude. Then given a set of timestamps, a function has been added that will compute the observing night for each time (defined as +- 12 hours from the local midnight).

@moeyensj moeyensj merged commit 209af02 into main Oct 9, 2024
3 checks passed
@moeyensj moeyensj deleted the jm/timezones branch October 9, 2024 22:34
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.

2 participants