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

NOVAS_TAI_TO_TT definition off by 3 ms #64

Closed
kiranshila opened this issue Sep 16, 2024 · 4 comments
Closed

NOVAS_TAI_TO_TT definition off by 3 ms #64

kiranshila opened this issue Sep 16, 2024 · 4 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@kiranshila
Copy link
Contributor

Hey there, fantastic work on this library! I'm glad someone is modernizing NOVAS a bit and cleaning up some ancient bugs.

Quick question on

#define NOVAS_TAI_TO_TT 32.187

I think this is wrong? I believe the official spec is TT is ahead of TAI by exactly 32.184s, not 32.187s.

@attipaci attipaci self-assigned this Sep 16, 2024
@attipaci attipaci added the bug Something isn't working label Sep 16, 2024
@attipaci attipaci added this to the 1.1.1 milestone Sep 16, 2024
attipaci added a commit that referenced this issue Sep 16, 2024
@attipaci
Copy link
Collaborator

Yes, good catch! Lucky it's the last decimal that went bad :-). I have committed an pushed the fix to main at c652f7c, and will include it in the next release candidate in a week or two. Let me know if you find anything else amiss :-).

@attipaci attipaci pinned this issue Sep 16, 2024
@kiranshila
Copy link
Contributor Author

Great stuff! Thanks!

I'm working on a high-level Rust wrapper around this for potential use in the DSA-2000 telescope, so I'll be reading through a lot of the source haha. I'll send PRs as I find things :)

I'm looking through the time stuff right now, as I'm just going to provide conversion routines from Rust's hifitime.

Again, fantastic work on all this!

@attipaci
Copy link
Collaborator

That sounds like a fun project. I look forward to the PRs. ;-)

attipaci added a commit that referenced this issue Sep 16, 2024
@attipaci attipaci changed the title TT<->TAI Seems to be incorrect NOVAS_TAI_TO_TT definition off by 3 ms Sep 16, 2024
@attipaci
Copy link
Collaborator

PS. Thanks also for your expression of appreciation. It feels good to know the effort is not in vain ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants