-
Notifications
You must be signed in to change notification settings - Fork 21
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
fix(time.Observer.transit_times): Use sidereal day. #154
Conversation
caput/time.py
Outdated
@@ -566,7 +566,7 @@ def _fixup_interval_and_step(self, t0, t1, step): | |||
# Get the ends of the search interval | |||
t0 = ensure_unix(t0) | |||
if t1 is None: | |||
t1 = t0 + 24 * 3600.0 | |||
t1 = t0 + 24 * 3600.0 * SIDEREAL_S |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This probably should be STELLAR_S
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise, I think you make a fair point!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
back to wikipedia I go...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you agree it should be stellar day in the end?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so. If we've specified RA and Dec in ICRS coordinates we should use that reference to calculate the next transit. I could test it by comparing the predicted time between the next two transits to the stellar/diereal day. Practically, it's only an 8ms difference.
8795358
to
f73ea6d
Compare
Use the stellar second to set the end time to one stellar day later if not specified. Otherwise you get two transit times if t0 is within a few minutes of transit.
f73ea6d
to
e512ea5
Compare
Use the sidereal second to set the end time to one sidereal day
later if not specified. Otherwise you get two transit times if
t0 is within a few minutes of transit.
This seemed like unexpected behaviour to me.