Module 03 · Lesson 2
Inertial and Earth-Fixed Frames
Orbits are computed in frames that do not rotate, and ground positions in one that turns with the Earth. This lesson covers ECI and ECEF frames, geodetic coordinates and the topocentric frame of a station.
Learning objectives
After this lesson you will be able to:
- Explain why orbit dynamics use an inertial frame and ground positions use an Earth-fixed frame
- Distinguish GCRF, J2000 and TEME from ITRF and WGS 84 at a working level
- Convert geodetic latitude, longitude and height to ECEF coordinates and describe the east-north-up frame
Two views of the same position
A position is three numbers and a set of axes. Change the axes and the numbers change completely. Space software uses two families of axes constantly, and most frame bugs come from confusing them.
- An inertial frame does not rotate. Its axes point in fixed directions relative to the distant stars. Orbits are computed here.
- An Earth-fixed frame rotates with the planet. A ground station has constant coordinates in it. Positions on the ground are expressed here.
Both families normally place the origin at the Earth's center of mass. The abbreviations are ECI, for Earth-centered inertial, and ECEF, for Earth-centered, Earth-fixed.
Inertial frames
Newton's laws take their simple form only in a frame that is not rotating. In an inertial frame a satellite accelerates because of real forces, and the two-body equations from Module 2 apply as written. In a rotating frame extra apparent accelerations, the centrifugal and Coriolis terms, must be added. Propagators therefore integrate in an inertial frame and convert afterward.
A typical ECI frame has its Z axis along the Earth's rotation axis, its X axis in the equatorial plane pointing toward a reference direction among the stars called the vernal equinox, and its Y axis completing a right-handed set.
The complication is that the Earth's axis is not perfectly steady. It traces a slow cone over about 26,000 years, called precession, and has a smaller periodic wobble, called nutation. The equator and equinox therefore move, and "the" inertial frame has to say which equator and equinox it means. Three frames come up constantly.
- J2000, also written EME2000, uses the mean equator and equinox at the epoch J2000.0.
- GCRF, the Geocentric Celestial Reference Frame, is the current standard. Its axes are tied to the measured directions of very distant radio sources. It differs from J2000 by a fixed rotation of a few hundredths of an arcsecond, about a meter or less at low Earth orbit distances.
- TEME, for True Equator, Mean Equinox, is the frame in which the SGP4 propagator produces its output. It follows the equator of the current date, so it drifts away from J2000 as the axis precesses. The difference today is about a third of a degree, which is tens of kilometers at low Earth orbit distances. TEME is not rigorously standardized, so the usual practice is to convert SGP4 output to a standard frame once, with a library, and work in that.
Earth-fixed frames
An ECEF frame has its Z axis through the north pole, its X axis through the point where the equator meets the prime meridian, and its Y axis through the equator at 90 degrees east. It turns with the Earth once per day.
Two names appear in practice.
- ITRF, the International Terrestrial Reference Frame, is the precise scientific standard, maintained by the IERS from the measured positions of stations around the world. It is reissued periodically and accounts for the motion of tectonic plates, which is centimeters per year.
- WGS 84, the World Geodetic System 1984, is the system used by GPS. It includes both a frame and a reference ellipsoid. Its recent versions agree with ITRF at the level of centimeters.
For most software the two are interchangeable. For surveying and precise orbit work they are not.
| Frame | Family | Rotates with Earth | Typical use |
|---|---|---|---|
| GCRF | Inertial | No | Numerical propagation, precise orbit products |
| J2000 (EME2000) | Inertial | No | Many existing data products and tools |
| TEME | Inertial | No | Output of SGP4 only |
| ITRF, WGS 84 | Earth-fixed | Yes | Station coordinates, navigation receiver positions, ground tracks |
| East-north-up | Topocentric | Yes | Antenna pointing, look angles |
Geodetic coordinates
People describe ground positions by latitude, longitude and height, not by Cartesian coordinates. These are geodetic coordinates, defined on a reference ellipsoid: a slightly flattened sphere that approximates the Earth's shape. The WGS 84 ellipsoid has an equatorial radius of 6,378.137 km and a polar radius of about 6,356.752 km.
Two definitions are easy to get wrong.
- Geodetic latitude is the angle between the equatorial plane and a line perpendicular to the ellipsoid's surface. That line does not pass through the Earth's center except at the equator and the poles. The angle measured from the center, called geocentric latitude, differs by up to about 0.19 degrees, which is about 21 km on the ground.
- Height is measured above the ellipsoid, not above mean sea level. The two differ by up to about 100 meters, depending on location.
Converting geodetic coordinates to ECEF is a closed formula.
const WGS84_A = 6378.137; // km, equatorial radius
const WGS84_F = 1 / 298.257223563; // flattening
const WGS84_E2 = WGS84_F * (2 - WGS84_F); // first eccentricity squared
const DEG = Math.PI / 180; // radians per degree
/** Geodetic latitude, longitude (degrees) and ellipsoidal height (km) to ECEF (km). */
function geodeticToEcef(latDeg: number, lonDeg: number, heightKm: number): number[] {
const lat = latDeg * DEG;
const lon = lonDeg * DEG;
// distance along the ellipsoid normal from the surface to the Z axis, km
const n = WGS84_A / Math.sqrt(1 - WGS84_E2 * Math.sin(lat) ** 2);
const x = (n + heightKm) * Math.cos(lat) * Math.cos(lon);
const y = (n + heightKm) * Math.cos(lat) * Math.sin(lon);
const z = (n * (1 - WGS84_E2) + heightKm) * Math.sin(lat);
return [x, y, z];
}
const show = (name: string, p: number[]) =>
console.log(name, p.map((c) => c.toFixed(3)).join(", "));
show("equator at prime meridian:", geodeticToEcef(0, 0, 0));
show("north pole:", geodeticToEcef(90, 0, 0));
show("Svalbard site:", geodeticToEcef(78.23, 15.39, 0.45));
The output is:
equator at prime meridian: 6378.137, 0.000, 0.000
north pole: 0.000, 0.000, 6356.752
Svalbard site: 1258.514, 346.416, 6222.665
The first two lines are sanity checks: the equatorial and polar radii appear where they should. The reverse conversion, from ECEF to geodetic, has no equally simple formula. It is done by iteration or by one of several published closed-form methods, and is a good thing to take from a library.
Topocentric frames
An antenna does not care about the center of the Earth. It needs to know where the satellite is relative to itself. A topocentric frame has its origin at the station. The most common is east-north-up, or ENU, with axes pointing east, north and straight up, where up is perpendicular to the ellipsoid.
The vector from the station to the satellite, expressed in ENU, gives the three numbers that antenna control uses: azimuth, the compass direction measured clockwise from north; elevation, the angle above the horizon; and range. Module 5 computes them.
Conventions vary. Some textbooks use south-east-zenith axes, and aviation commonly uses north-east-down. A frame name in a function signature is part of the contract.
A practical example: placing a polar ground station
A ground software team is adding a station to its pass prediction system. The site is on a plateau near Longyearbyen in Svalbard, at approximately 78.23 degrees north, 15.39 degrees east and 0.45 km above the ellipsoid. High-latitude sites like this see satellites in near-polar orbits on most revolutions.
The code above gives the station's ECEF position as about (1258.5, 346.4, 6222.7) km. A reviewer notices that an earlier prototype used a spherical formula with the equatorial radius. For this site the prototype's answer differs by about 22 km, mostly along the polar axis.
That error matters. Seen by a satellite passing 500 km away, 22 km is an angle of up to about 2.5 degrees. A dish used for high-rate downlinks can have a beam narrower than one degree, so the antenna could point past the satellite.
The team keeps the ellipsoidal conversion, adds the equator and pole cases as unit tests, and stores station coordinates with an explicit frame and height reference.
The station is now in Earth-fixed coordinates and the satellite is in inertial ones. The next lesson builds the transformation that connects them.
Key takeaways
- A coordinate triple means nothing without its frame. Inertial frames keep fixed directions relative to the stars, and Earth-fixed frames rotate with the planet.
- GCRF and J2000 are almost identical inertial frames. TEME is the frame that SGP4 outputs, and it is not the same as either.
- Geodetic latitude and height are defined on the WGS 84 ellipsoid, so a spherical conversion to Cartesian coordinates can be wrong by more than 20 km.
- Antenna pointing uses a topocentric frame centered on the station, with azimuth and elevation derived from east, north and up components.
Knowledge check
Check your understanding. These questions are not graded and you can retry as often as you like.
0 of 3 questions answered.
Glossary
Inertial frame
A reference frame that is not rotating or accelerating, in which Newton's laws apply without extra terms. Earth-centered inertial frames have axes fixed relative to the distant stars.
ECEF
Earth-centered, Earth-fixed. A frame with its origin at the Earth's center of mass and axes that rotate with the Earth, so that points on the ground have constant coordinates.
GCRF
The Geocentric Celestial Reference Frame. The standard Earth-centered inertial frame, with axes tied to the directions of very distant radio sources.
TEME
True Equator, Mean Equinox. The Earth-centered inertial frame in which the SGP4 propagator produces positions and velocities.
Geodetic latitude
The angle between the equatorial plane and a line perpendicular to the reference ellipsoid at a point. It is the latitude shown on maps and reported by navigation receivers.
Topocentric frame
A local frame with its origin at a point on or near the Earth's surface, such as the east-north-up frame of a ground station.
References and further reading
- Ellipsoidal and Cartesian Coordinates Conversion (opens in a new tab)European Space Agency Navipedia
- Reference Frames in GNSS (opens in a new tab)European Space Agency Navipedia
- International Terrestrial Reference Frame (opens in a new tab)Institut national de l'information geographique et forestiere (IGN)
Finished this lesson?
Loading your progress…
Lesson version 1.0.0.