-
Notifications
You must be signed in to change notification settings - Fork 317
Fix the parallax correction code for the unit and computation of satellite altitude #3217
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
base: main
Are you sure you want to change the base?
Conversation
…s and not kilometers
… in meters consistently with the orbital_parameters
…smaller since the earth radius was added to the sat position
cc @jequierz |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3217 +/- ##
=======================================
Coverage 96.32% 96.32%
=======================================
Files 463 463
Lines 58151 58151
=======================================
Hits 56015 56015
Misses 2136 2136
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Pull Request Test Coverage Report for Build 17242360245Details
💛 - Coveralls |
Great work! Thank you Andrea :) |
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.
Thanks!
|
||
val = get_surface_parallax_displacement( | ||
0, 0, 36_000_000, 0, 10, 10_000) | ||
np.testing.assert_allclose(val, 2141.2404451757875) |
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.
Nice, this tells us how far we were off :) 👍
This PR fixes two aspects in the parallax correction code
it fixes and uniformises the usage of meters for the satellite/platform altitude
add the Earth radius to the satellite altitude to correctly compute the cartesian satellite coordinates
Closes Wrong satellite altitude units in parallax correction computation and
get_satpos
docstring #3182 Earth radius missing in sat_xyz computation in parallax modifier #3151Tests added
Fully documented