Convert ECI to ECEF Coordinates

Transform ECI position, velocity and acceleration to ECEF position, velocity & acceleration.
6.2K Downloads
Updated 13 Nov 2020

View License

Convert Pseudo Earth Fixed Inertial Coordinates to ECEF Coordinates. This function has been vectorized for speed.

Example Function Call:
>> [r_ECEF v_ECEF a_ECEF] = ECItoECEF(JD,r_ECI,v_ECI,a_ECI);

Where:
JD is the Julian Date vector [1 x N] (units are in days)
r_ECI is the position vector [3 x N] (any units are permitted)
v_ECI is the velocity vector [3 x N] (any units are permitted)
a_ECI is the acceleration vector [3 x N] (any units are permitted)

Cite As

Darin Koblick (2024). Convert ECI to ECEF Coordinates (https://www.mathworks.com/matlabcentral/fileexchange/28233-convert-eci-to-ecef-coordinates), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: Julian Date to Greenwich Mean Sidereal Time

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.8.0.0

Clarified that the ECI frame is in Pseudo Earth Fixed Coordinates (No Nutations are performed about the +Z axis for speed)

1.7.0.0

Updated mean obliquity of elliptic equation to be consistent with units. All units in this equation are in degrees.

1.5.0.0

Added another code attachment since the last attachment didn't appear to make it through.

1.4.0.0

Updated vector inputs and outputs to include the acceleration term.

1.1.0.0

Added acceleration transformation update to code. This now supports all position, velocity and acceleration vectors.

1.0.0.0