The Sun’s View of the Earth
✓ Published0🌍 Public
Mmbostock
Last edited Mar 9, 2019
Created on Feb 5, 2013
This example shows an orthographic projection of Earth from the Sun’s perspective, with the day-night terminator updated every second. The code uses d3.geo.orthographic, d3.geo.path, and d3.json to load TopoJSON world land data, rendering land as a single SVG path. A red dot marks the Sun’s position. Solar declination and equation of time calculations from NOAA drive the projection’s rotation, animating the view via setInterval and the rotate method.
AI-generated descriptionAn alternate view of the solar terminator.
gpl-3.0 Licensed