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

fix(time.Observer.transit_times): Use sidereal day. #154

Merged
merged 1 commit into from
Jan 14, 2021

Conversation

tristpinsm
Copy link
Contributor

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.

@tristpinsm tristpinsm requested a review from jrs65 January 13, 2021 02:21
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
Copy link
Contributor

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

Copy link
Contributor

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!

Copy link
Contributor Author

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...

Copy link
Contributor

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?

Copy link
Contributor Author

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.

@tristpinsm
Copy link
Contributor Author

I compared the predicted difference between transit times of CygA ("predicted length of day") by caput.time.Observer.transit_times to the sidereal and stellar days in this plot:
image

In conclusion I think stellar day makes sense to use here. I'm not sure what is responsible for the oscillations in the predicted times. Maybe nutation? the NRAO website says there is a nutation mode on half a year period, but I don't know the magnitude of that effect.

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.
@tristpinsm tristpinsm merged commit 8098c71 into master Jan 14, 2021
@tristpinsm tristpinsm deleted the tpm/transit-time-sid branch January 14, 2021 00:49
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