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

Wrong result from d2dtf() in pre-1972 UTC #91

Open
mrhso opened this issue Feb 11, 2023 · 0 comments
Open

Wrong result from d2dtf() in pre-1972 UTC #91

mrhso opened this issue Feb 11, 2023 · 0 comments

Comments

@mrhso
Copy link

mrhso commented Feb 11, 2023

Related: #76 #82

#76 was fixed in SOFA 17a, however, it has brought another problem.

      leap = (fabs(dleap) > 0.5);

The threshold is 0.5 s, which means that mini-leaps, of which the maximum absolute value is 0.1077580 s, cannot be processed properly.

>>> from astropy.time import Time
>>> Time('1965-06-30 12:00:00', format = 'iso', scale = 'utc')
<Time object: scale='utc' format='iso' value=1965-06-30 11:59:59.950>

Considering that the minimum absolute value of UTC mini-leaps is 0.005 s (is there such a serious rounding error?), it is possible to determine an appropriate threshold.

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

No branches or pull requests

1 participant