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

Increase precision in ref. system conversions #64

Closed
ronisbr opened this issue Aug 29, 2021 · 0 comments
Closed

Increase precision in ref. system conversions #64

ronisbr opened this issue Aug 29, 2021 · 0 comments

Comments

@ronisbr
Copy link
Member

ronisbr commented Aug 29, 2021

We can increase the precision in rotations that are about one axis. See, for example:

julia> JD_TT = 2.460115315972222e6
2.460115315972222e6

julia> JD_UTC = jd_tt_to_utc(JD_TT)
2.460115315171481e6

julia> D = r_eci_to_eci(TEME(), JD_UTC, TOD(), JD_UTC)
3×3 StaticArrays.SMatrix{3, 3, Float64, 9} with indices SOneTo(3)×SOneTo(3):
  1.0           3.8393e-5     4.15777e-19
 -3.8393e-5     1.0          -3.91043e-17
 -1.25473e-19  -3.91016e-17   1.0

julia> D[:]
9-element StaticArrays.SVector{9, Float64} with indices SOneTo(9):
  0.9999999992629907
 -3.8392950862527036e-5
 -1.2547321052914035e-19
  3.839295086252501e-5
  0.9999999992629907
 -3.910159364194184e-17
  4.157774012182647e-19
 -3.910427424736158e-17
  0.9999999999999999

Maybe we need a version of angle_to_rot with only one angle argument.

@ronisbr ronisbr closed this as completed Jul 1, 2023
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