Module 12 · Lesson 3
Visualization and Delivery
The final lesson draws the tracker's results on a map or globe, covers timing, accessibility, testing, deployment and honest limits, and closes the course with a review and next steps.
Learning objectives
After this lesson you will be able to:
- Sample and draw a ground track correctly, including across the antimeridian, and update the display without timing drift
- Apply basic performance, accessibility, testing and deployment practices to the tracking application
- State the limits of the finished application and identify sensible next steps beyond the course
From numbers to a picture
The previous lesson produced positions and passes as numbers. This lesson turns them into something a person can use, ships it, and is honest about what it is.
A flat map or a globe
Module 05 compared map projections and globe views. For the capstone the choice is practical.
A flat map is the simplest option. With an equirectangular projection, longitude maps directly to horizontal position and latitude to vertical, so a canvas or SVG element with a world map image behind it is enough. The whole Earth is visible at once, and a low Earth orbit appears as the familiar wave.
A three-dimensional globe has no seam and shows the orbit's height and tilt. It needs more code and more graphics capability, and half the Earth is always hidden. CesiumJS, introduced in Module 05, is one open-source library for globes and maps of this kind, with support for data that changes over time. It is an option, not a requirement.
Whichever is chosen, the view should consume only the contract types from the first lesson of this module, so that it can be replaced without touching the orbit code.
Sampling the ground track
A ground track is drawn from positions sampled at a fixed time step. The point beneath a satellite in low orbit moves at roughly 7 km/s, so a 60 second step puts samples about 400 km apart, which shows as corners when zoomed in. A step of 10 to 30 seconds is smoother. The track does not close on itself, because each orbit is displaced westward by the Earth's rotation, as Module 05 calculated.
The antimeridian
Longitude jumps between +180 and -180 degrees at the antimeridian, and a line drawn naively across the jump spans the entire map. Module 05 gave a function that splits a finished track there and interpolates a point on each map edge. The sampler below takes the simpler route of starting a new segment while it collects points. The Module 05 function can be applied to its output when the line must reach the border. A globe avoids the problem, because positions are converted to three-dimensional coordinates before drawing.
A practical example: a ground track from a stub
The drawing code needs only one thing from the orbit code: the point beneath the satellite at a given time. Writing the sampler against that small interface means it can be tested with a stub before the real propagator is connected.
interface GroundPoint {
latitudeDeg: number; // geodetic, north positive
longitudeDeg: number; // -180 to 180, east positive
}
// Returns the point beneath the satellite, or null if propagation fails.
type SubpointFn = (time: Date) => GroundPoint | null;
// Samples the ground track and splits it wherever it crosses the antimeridian,
// so that each segment can be drawn as one unbroken line.
function sampleGroundTrack(subpoint: SubpointFn, start: Date, durationS: number, stepS: number): GroundPoint[][] {
const segments: GroundPoint[][] = [[]];
let previous: GroundPoint | null = null;
for (let elapsed = 0; elapsed <= durationS; elapsed += stepS) {
const point = subpoint(new Date(start.getTime() + elapsed * 1000));
if (point === null) continue;
if (previous !== null && Math.abs(point.longitudeDeg - previous.longitudeDeg) > 180) {
segments.push([]); // the track wrapped at +/-180 degrees
}
segments[segments.length - 1].push(point);
previous = point;
}
return segments.filter((segment) => segment.length > 0);
}
The stub below is a rough circular orbit, labeled as such. It is good enough to exercise the sampler, including the wrap at 180 degrees.
// A stub for testing - a rough circular orbit, not a real propagator.
const PERIOD_S = 5560; // s, about 92.7 minutes
const INCLINATION_DEG = 51.6;
const EARTH_RATE = 360 / 86164; // degrees per second
const stub: SubpointFn = (time) => {
const t = time.getTime() / 1000; // s
const phase = (2 * Math.PI * t) / PERIOD_S;
const longitude = (360 * t) / PERIOD_S - EARTH_RATE * t;
return {
latitudeDeg: INCLINATION_DEG * Math.sin(phase),
longitudeDeg: ((((longitude + 180) % 360) + 360) % 360) - 180,
};
};
const track = sampleGroundTrack(stub, new Date(0), 2 * PERIOD_S, 60);
console.log(track.map((segment) => segment.length));
It prints the number of points in each segment:
[ 50, 99, 37 ]
Two orbits sampled every 60 seconds give 186 points. The track crosses the antimeridian twice, so the sampler returns three segments, each of which can be drawn as one line. In the application the stub is replaced by a function that calls the stateAt method from the first lesson of this module. The sampler does not change.
Updating without drift
A one-second timer does not fire exactly once a second. Each call is slightly late, and browsers slow timers down in background tabs. Two designs turn that into a growing error: counting ticks and assuming each is one second, and moving the marker on from its previous position.
The reliable design makes the display a pure function of time. On each update, read the clock, which is injected as in Module 10, and compute the position for that instant from the element set. A late update is drawn late but is still correct. Recompute the ground track about once a minute, and the pass list only when the location or the element set changes.
Performance and accessibility
Propagation is cheap, so drawing dominates the cost. Redraw only what moved, keep the static map on its own layer, and move searches across many satellites to a background worker.
A map alone excludes people who use screen readers and is a slow way for anyone to find a time. Requirement R7 asked for a text table of upcoming passes: rise time, direction, maximum elevation and set time. Add a text readout of the current position, label the time zone, avoid conveying meaning by color alone, and make every control usable from the keyboard.
Testing and deployment
End-to-end tests run with a fixed clock and a stored element set and compare the text table with expected values, which is far more stable than comparing images. Deployment is a set of static files plus the scheduled job that caches element sets. Monitor that job and the age of the data it produces, pin the version of the SGP4 library, and show the data source and element epoch on the page.
Honest limits
The application propagates public element sets with SGP4. Its positions are good to roughly kilometers and get worse as the elements age. It does not know about maneuvers made after the epoch, it ignores atmospheric refraction, and it predicts geometry, not whether a satellite can be seen. It is suitable for learning, outreach and rough planning. It must not be used for operational or safety decisions such as collision avoidance or pointing a narrow antenna beam, which rely on precise orbit data and validated tools. Say so on the page.
Extending the project
Good next features include several satellites at once, visible-pass prediction using the Sun's position, the Doppler shift on a radio link, contact scheduling across several ground stations as in Modules 06 and 08, and a three-dimensional view.
The course in review
The twelve modules followed one path. Module 01 set out how systems engineers think in requirements, interfaces and margins. Modules 02 to 05 covered orbital mechanics, time and frames, elements and propagation, and tracking. Modules 06 to 09 covered how spacecraft are operated: station networks, telemetry and commanding, planning, and flight and ground software architecture. Modules 10 and 11 dealt with simulation and reliability, and this module combined them in working software.
A few ideas recurred. State units, frames and time scales explicitly. Expect failures at interfaces. Prefer evidence to confidence. Keep margin. Test the way you will operate.
For next steps, read primary sources such as the CCSDS standards and the NASA Systems Engineering Handbook, study open-source projects such as the core Flight System, F Prime and Open MCT, and keep building. This course gives no qualification or title. What it offers is the vocabulary and the mental models to be useful on a space team and to keep learning from the specialists around you.
The field is large, and nobody in it knows all of it. Thank you for working through the course, and good luck with what you build next.
Key takeaways
- A ground track is a list of sampled positions. On a flat map it must be split wherever longitude wraps at 180 degrees, or the line is drawn across the whole map.
- The displayed position should be a function of the current time, recomputed on every update. Counting timer ticks or stepping from the previous position accumulates drift.
- A text table of upcoming passes beside the map serves users who cannot use the map and is also the easiest thing to test.
- The result is a visualization built on public element sets and SGP4. Its accuracy is limited and degrades with element age, and it is not a basis for operational or safety decisions.
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
Ground track
The path traced on the Earth's surface by the point directly beneath a satellite.
Antimeridian
The meridian at 180 degrees longitude, where longitude values jump between +180 and -180 and where most flat world maps are cut.
Equirectangular projection
A map projection in which longitude and latitude are plotted directly as horizontal and vertical position. It is simple to draw on and distorts areas near the poles.
Timer drift
The growing difference between an intended schedule and what actually happens when each timer delay is slightly late and the errors accumulate.
Stub
A simplified stand-in for a real component, used so that the code depending on it can be run and tested in isolation.
References and further reading
- CesiumJS (opens in a new tab)CesiumGS (GitHub)
- NASA Systems Engineering Handbook (opens in a new tab)NASA
- Introduction to Web Accessibility (opens in a new tab)W3C Web Accessibility Initiative
Finished this lesson?
Loading your progress…
Lesson version 1.0.0.