Module 04 · Lesson 2
Two-Line Element Sets and Ephemerides
Most public orbit data arrives as two-line element sets or their OMM successors. This lesson explains each field, why the elements only work with SGP4, and how ephemerides differ.
Learning objectives
After this lesson you will be able to:
- Read the fields of a two-line element set and convert them to usable values
- Explain why TLE and OMM elements are mean elements that must be propagated with SGP4
- Choose between element sets and ephemerides, taking the accuracy and age of the data into account
The format most developers meet first
Most publicly available orbit data comes from the U.S. government, which has published orbital elements for tracked objects since the 1970s. The data is known as general perturbations, or GP, data. Its traditional container is the two-line element set (TLE), a fixed-width text record designed when data moved on punch cards. TLEs are distributed through Space-Track.org and redistributed by sites such as CelesTrak.
The set below was constructed for this lesson. It is an illustrative example, not tracking data for a real object. Catalog number 00000 is not assigned to anything.
EXAMPLE SAT
1 00000U 26999A 26327.50000000 .00010000 00000-0 18000-3 0 9993
2 00000 51.6000 120.0000 0005000 90.0000 270.0000 15.50000000 12
The name line is optional. Lines 1 and 2 are always 69 characters long.
Reading the fields
| Line | Columns | Field | Notes |
|---|---|---|---|
| 1 and 2 | 3-7 | Catalog number | The object's number in the U.S. satellite catalog |
| 1 | 19-32 | Epoch | Two-digit year, then day of year with a fraction, in UTC |
| 1 | 54-61 | B* drag term | Implied decimal point and exponent |
| 2 | 9-16 | Inclination | Degrees |
| 2 | 18-25 | RAAN | Degrees |
| 2 | 27-33 | Eccentricity | Implied leading decimal point |
| 2 | 35-42 | Argument of perigee | Degrees |
| 2 | 44-51 | Mean anomaly | Degrees |
| 2 | 53-63 | Mean motion | Revolutions per day |
| 1 and 2 | 69 | Checksum | Sum of the digits, modulo 10, with each minus sign counted as 1 |
Columns are numbered from 1.
- Epoch.
26327.50000000means day 327.5 of 2026, which is 12:00 UTC on November 23. Day 1.0 is the start of January 1. Two-digit years from 57 to 99 mean the 1900s and 00 to 56 mean the 2000s. - Eccentricity.
0005000means 0.0005000. The decimal point is not stored. - Mean motion. The number of orbits per day stands in for the semi-major axis. A value of 15.5 gives a period of about 92.9 minutes, or an altitude a little above 400 km.
- B*.
18000-3means 0.18000 multiplied by 10 to the power of -3. The B* drag term tells the propagator how strongly drag acts on the object.
The reader below decodes every field and draws the orbit the set describes. It starts with the set above. Change one digit of the inclination in the text box and note which check fails, then try the other examples.
Read a two-line element set
Interactive model
Edit a digit, or paste a TLE of your own, with or without a name line above the two numbered lines.
Both lines are the right length and pass their checksums.
Loading 3D globe…
- One lap takes
- 93 minutes
- Semi-major axis
- 6,795 km
- Perigee altitude
- 413 km
- Apogee altitude
- 420 km
These four values are not written in the TLE. They are worked out from the mean motion and the eccentricity.
| Field | Value | Where it is |
|---|---|---|
| Catalog number | 00000 | Lines 1 and 2, columns 3–7 |
| Classification | U (unclassified) | Line 1, column 8 |
| International designator | 26999A | Line 1, columns 10–17 |
| Epoch | 2026-11-23 12:00:00 UTC (day 327.5000 of 2026) | Line 1, columns 19–32 |
| Rate of change of mean motion ÷ 2 | 0.00010000 rev/day² | Line 1, columns 34–43 |
| Drag term (B*) | 1.8000 × 10^-4 | Line 1, columns 54–61 |
| Line 1 checksum | 3, correct | Line 1, column 69 |
| Inclination | 51.6000° | Line 2, columns 9–16 |
| Right ascension of the ascending node | 120.0000° | Line 2, columns 18–25 |
| Eccentricity | 0.0005000 | Line 2, columns 27–33, decimal point assumed |
| Argument of perigee | 90.0000° | Line 2, columns 35–42 |
| Mean anomaly | 270.0000° | Line 2, columns 44–51 |
| Mean motion | 15.50000000 revolutions per day | Line 2, columns 53–63 |
| Revolution number at epoch | 1 | Line 2, columns 64–68 |
| Line 2 checksum | 2, correct | Line 2, column 69 |
Mean elements, made for SGP4
The elements in a TLE are not the instantaneous elements of the previous lesson. They are mean elements, produced by fitting tracking observations with a specific orbit model called SGP4, which averages out periodic variations in its own way.
TLE values give sensible positions only when they are propagated with SGP4, which adds those variations back. Putting them into a two-body formula or a numerical propagator gives errors of kilometers, even at the epoch. SGP4 also returns positions in its own inertial frame, known as TEME (true equator, mean equinox), which is close to but not the same as the standard inertial frames in Module 3.
OMM and the five-digit limit
Fixed columns impose hard limits. The catalog number has five columns, so the largest value is 99,999, and the year has two digits. CelesTrak reports that five-digit catalog numbers ran out in July 2026. Objects cataloged since then have six-digit numbers, and their data cannot be published in the standard TLE format.
The replacement is the Orbit Mean-Elements Message (OMM), part of the Orbit Data Messages standard from the Consultative Committee for Space Data Systems (CCSDS). An OMM carries the same GP data as named fields, such as NORAD_CAT_ID, EPOCH, MEAN_MOTION, ECCENTRICITY and BSTAR. The standard defines XML and key-value text encodings, and data providers also offer JSON and CSV using the same keywords. The epoch is a full timestamp and catalog numbers can have up to nine digits.
The OMM changes the container, not the contents. The values are still mean elements and still require SGP4. New software should read OMM, store catalog numbers in a type wider than five digits, and keep TLE parsing only for legacy inputs.
Parsing line 2
Fixed columns make parsing simple, provided the offsets are exact.
// Illustrative line 2, constructed for this lesson. It is not real tracking data.
const LINE2 = '2 00000 51.6000 120.0000 0005000 90.0000 270.0000 15.50000000 12';
// TLE columns are numbered from 1. slice() takes a 0-based start and an exclusive end.
const field = (line: string, first: number, last: number) => line.slice(first - 1, last).trim();
function tleChecksum(line: string): number {
let sum = 0;
for (const ch of line.slice(0, 68)) {
if (ch >= '0' && ch <= '9') sum += Number(ch);
else if (ch === '-') sum += 1; // a minus sign counts as 1, everything else as 0
}
return sum % 10;
}
function parseLine2(line: string) {
if (line.length !== 69 || line[0] !== '2') throw new Error('not a TLE line 2');
if (tleChecksum(line) !== Number(line[68])) throw new Error('checksum mismatch');
return {
catalogNumber: Number(field(line, 3, 7)),
inclinationDeg: Number(field(line, 9, 16)),
raanDeg: Number(field(line, 18, 25)),
eccentricity: Number('0.' + field(line, 27, 33)), // implied leading decimal point
argPerigeeDeg: Number(field(line, 35, 42)),
meanAnomalyDeg: Number(field(line, 44, 51)),
meanMotionRevPerDay: Number(field(line, 53, 63)),
revolutionNumber: Number(field(line, 64, 68)),
};
}
const elements = parseLine2(LINE2);
console.log(elements);
console.log(`period ${(1440 / elements.meanMotionRevPerDay).toFixed(2)} min`);
Running it prints:
{
catalogNumber: 0,
inclinationDeg: 51.6,
raanDeg: 120,
eccentricity: 0.0005,
argPerigeeDeg: 90,
meanAnomalyDeg: 270,
meanMotionRevPerDay: 15.5,
revolutionNumber: 1
}
period 92.90 min
In production, use the parser of an established SGP4 library.
Ephemerides
An ephemeris takes a different approach. It is a table of states over time, where each row holds a timestamp, a position and usually a velocity. The producer runs its own propagator and publishes the results. The consumer only interpolates between rows.
The CCSDS Orbit Ephemeris Message (OEM) is the standard container. It has a header and a metadata block that names the object, the central body, the reference frame, the time system and the time span covered. Rows of epoch, position in kilometers and velocity in kilometers per second follow. Operators exchange ephemerides when accuracy matters or when the trajectory includes maneuvers, which a TLE cannot represent.
The trade is that between a function and a precomputed table. Elements are compact but need the right model. An ephemeris is larger and covers a fixed span, but it needs no model and is as accurate as its producer could make it.
Accuracy and age
GP data is a fit to observations, not a measurement. For low Earth orbits a commonly quoted figure is an error of about a kilometer at the epoch, growing by one to a few kilometers per day. Treat that as typical and not guaranteed. The data carries no statement of its own uncertainty.
Drag makes low orbits hard to predict, and a maneuver invalidates earlier elements. Software should compute the age of the data at the time of use, and warn or refuse beyond a threshold suited to the application. GP data is adequate for visualization and for pointing an antenna with a wide beam. It is not sufficient on its own for precise pointing or collision avoidance decisions.
A practical example: the stale element set
A team runs a pass prediction service for an antenna that tracks a satellite at about 415 km. Station staff report that the satellite is arriving several seconds earlier than predicted.
The developer checks the epoch of the element set in use and finds that it is nine days old. A scheduled job that refreshes the data had been failing without raising an alert. Errors in old elements lie mostly along the track, which shows up as a timing error. At 7.7 km per second, 30 km along the track is about four seconds.
The team makes three changes. The service refuses element sets older than a configured limit. A failed refresh raises an alert, so data freshness is monitored like any other service objective. Ingestion moves from TLE text to OMM, so that objects with six-digit catalog numbers are not silently dropped.
The next lesson covers propagation, the calculation that turns elements at an epoch into a position at any other time.
Key takeaways
- A TLE is a fixed-width text record holding an epoch, a drag term and six mean elements, with mean motion in revolutions per day standing in for the semi-major axis.
- TLE elements are mean elements fitted with the SGP4 model. They give sensible answers only when propagated with SGP4.
- The OMM carries the same data as named fields and removes the five-digit catalog number and two-digit year limits of the TLE. It does not make the data more accurate.
- An ephemeris is a table of states over time that the consumer interpolates. Whatever the format, check the epoch, because orbit data loses accuracy as it ages.
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
Two-line element set (TLE)
A fixed-width text format of two 69-character lines that carries an object's identifiers, an epoch, a drag term and six mean orbital elements for use with the SGP4 propagator.
Epoch
The moment at which a set of orbital elements or a state applies. Predictions are made by propagating forward or backward from it.
Mean elements
Orbital elements from which short-term variations have been averaged out according to a specific model. They must be used with that same model.
B* drag term
A fitted parameter in a TLE or OMM, pronounced B-star, that tells SGP4 how strongly atmospheric drag affects the object.
Orbit Mean-Elements Message (OMM)
A CCSDS message that carries the same mean elements as a TLE as named fields, without the fixed-column limits.
Ephemeris
A table of positions, and usually velocities, at a series of times, from which a consumer interpolates the state at any time within the table.
References and further reading
- NORAD Two-Line Element Set Format (opens in a new tab)CelesTrak
- A New Way to Obtain GP Data (aka TLEs) (opens in a new tab)CelesTrak
- Blue Books - Recommended Standards, including Orbit Data Messages (CCSDS 502.0-B) (opens in a new tab)Consultative Committee for Space Data Systems
Finished this lesson?
Loading your progress…
Lesson version 1.0.0.