Reference
Ten famous spacecraft (Voyager, New Horizons, Pioneer, Cassini, Galileo, Juno, Parker Solar Probe, Webb): facts, events, and where each is at any date from launch to the end of its record
import { … } from "@johnmorrisdotca/wakusei-planets/spacecraft";
Exports
| Name | Kind | What it is |
|---|---|---|
loadSpacecraft | function | Load the fitted paths of some spacecraft (or all of them), each a table of its own that nothing else imports: about 6 kB gzipped for the Voyagers, the Pioneers, New Horizons and JWST, and more for the craft that orbited a planet. |
SPACECRAFT | constant | The ten craft and their facts, keyed by id. |
SPACECRAFT_IDS | constant | The ten craft: voyager1, voyager2, newhorizons, pioneer10, pioneer11, cassini, galileo, juno, parker and webb. |
spacecraftEarthDistance | function | A craft's distance from the Earth's centre at a moment, in kilometres: the craft's path from Horizons and the Earth from VSOP87B (a few thousand kilometres at most), both for the same instant, with no allowance for the light's travel. |
spacecraftErrorKm | function | The worst error of a craft's loaded path against Horizons, in kilometres, as measured when it was made: on samples held back from the fit and on fresh samples at random times. |
SpacecraftEvent | type | One thing that happened on a craft's voyage. |
SpacecraftFacts | type | Facts about one craft. |
SpacecraftId | type | The name of a craft: voyager1, cassini, webb... |
spacecraftLightTime | function | How long a radio signal takes from the Earth to a craft (or back), at a moment, in seconds: the distance from the Earth over the speed of light. |
spacecraftPosition | function | Where a craft is at a moment: x, y, z in kilometres from the Sun, in the J2000 ecliptic frame (the same axes as heliocentric, which is in astronomical units). |
spacecraftSpeed | function | A craft's speed relative to the Sun at a moment, in kilometres a second. |
spacecraftSunDistance | function | A craft's distance from the Sun at a moment, in kilometres. |
spacecraftVelocity | function | A craft's velocity relative to the Sun at a moment, in kilometres a second, in the same frame as spacecraftPosition. |
When | type | A moment: a Date or a number of milliseconds since 1970 (UTC, as JavaScript counts). |