I would like to write some AR mobile app that will show Earth velocity vector, but I have no any experience with astrodynamics. So how to calculate Earth's velocity vector in ECEF, having date and time as input data?

  • $\begingroup$ Two questions: velocity relative to what? And how accurate do you need/want to be? $\endgroup$ – 2012rcampion Apr 27 '16 at 8:55
  • $\begingroup$ Velocity relative to Sun. Great precision is not required. And I don't need actual magnitude of velocity vector, only direction. $\endgroup$ – Igor Lapin Apr 27 '16 at 9:40
  • $\begingroup$ Do you mean how fast the Earth is revolving around the Sun? $\endgroup$ – GdD Apr 27 '16 at 9:41
  • 1
    $\begingroup$ Yes, ECEF mean Earth Centred, Earth Fixed. And, yes Earth is not moving relative to itself, but Earth velocity vector is moving in that reference frame, because of Earth's rotation and because of Earth is flying around Sun. And I'd like to know how to calculate that vector in ECEF. $\endgroup$ – Igor Lapin Apr 27 '16 at 13:00
  • 2
    $\begingroup$ Actually, because the reference frame is Earth-fixed the center of the reference frame is the Earth itself, meaning it's not moving or rotating in the ECEF reference frame. In ECEF the sun is moving relative to Earth and the center of Earth is always (0, 0, 0) $\endgroup$ – 1337joe Apr 27 '16 at 15:00

To convert my comment into an answer now that I'm back to my desk: The origin of the ECEF reference frame is the center of the earth, and the X axis goes through the center of the earth and the point on the surface at lat/lon 0/0. Therefore, by definition the earth neither moves nor rotates in the ECEF coordinate space.

To try to provide what you're looking for, I'll offer the JPL Horizons interface. Specify ephemeris type "VECTORS", target body "Sun [Sol] [10]", coordinate origin set to your current lat/lon location, and a time span starting at the current time with a step size in minutes. That should give you a table of vector positions of the sun relative to your current location. Take the delta between positions (or possibly just use a velocity vector instead of multiple position vectors) and reverse it and you should get your velocity vector relative to the sun.

Obviously this doesn't give you the math to do the calculations yourself, but it should give you the answers and maybe someone else can chime in with the math.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.