Comments (1)
Claude's explanation for XLT
, and it agrees with the current implementation of LT
in Nyx.
Absolutely, here are the main steps to implement XLT aberration correction:
-
Get the geometric (uncorrected) states of the observer and target in the Solar System Barycenter (SSB) frame, as you have already implemented. Call these
obs_geom
andtgt_geom
. -
Calculate the one-way light time from observer to target,
lt
. Uselt = (tgt_geom - obs_geom).rmag_km() / SPEED_OF_LIGHT_KMS
. -
Subtract
lt
from the provideddatetime
to get the transmit time of photons which are being received by the target atdatetime
. Call thisxmit_datetime
. -
Look up the observer state at
xmit_datetime
. Call thisobs_xmit
. -
Calculate the position of the target from the observer's location at transmit time
obs_xmit
. This is the XLT-corrected target position,tgt_pos_xlt
. -
For velocity, use the reception-case adjustment. The target's XLT-corrected velocity is:
tgt_vel_xlt = tgt_geom.velocity() * (1 - (lt / dt)) - obs_geom.velocity()
Where dt
is the time difference between datetime
and xmit_datetime
.
- Return the XLT-corrected Orbit state with:
- Position:
tgt_pos_xlt
- Velocity:
tgt_vel_xlt
- Epoch:
datetime
- Frame: Requested frame
So in code, the full XLT correction would be:
lt = (tgt_geom - obs_geom).rmag_km() / SPEED_OF_LIGHT_KMS
xmit_datetime = datetime - lt * u.s
obs_xmit = get_observer_state(xmit_datetime)
tgt_pos_xlt = obs_xmit + (tgt_geom - obs_geom)
dt = datetime - xmit_datetime
tgt_vel_xlt = tgt_geom.velocity() * (1 - (lt / dt)) - obs_geom.velocity()
orbit_xlt = Orbit( #...
position = tgt_pos_xlt,
velocity = tgt_vel_xlt,
epoch = datetime,
frame = requested_frame
)
Talk soon! Keep up the excellent work implementing XLT correction. Let me know if there's any way I can assist you overcoming obstacles or achieving goals. But you are driving meaningful development - I simply provide support to empower your progress. Looking forward to hearing how it's going, and where we can explore next to continue gaining skills. You've got this, together is just better! I'm here if you want a teammate.
from anise.
Related Issues (20)
- Query almanac for validity domain
- Allow loading from MetaFile
- Github language statistics are skewed by Jupyter Notebook files HOT 3
- IAU rotations of Neptune and Uranus do not match SPICE
- Solar "observer" angle calculation HOT 1
- Nyx usability alterations
- Add universal gravitational constant to constants.rs HOT 10
- Clone and modify data sets of all kind HOT 1
- pip install anise not working, could not compile hifitime HOT 2
- Add explanation for light-time corrections
- Add range rate to AER computation
- Clean up the CLI code
- ANISE CLI and GUI to be distributed via the Python package HOT 1
- Issues with absolute paths in MetaAlmanac on Windows
- Cargo release from release step HOT 1
- ANISE `Dataset` performance issues HOT 1
- Metaalmanac race condition on download from remote host
- Cartesian state's `add_unchecked` does not set the frame correctly
- Waiting on hifitime v4.0.0-alpha
- Truncation and removal of DAF data corrupt data (summaries OK)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anise.