spacecraftErrorKmfunction
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. It grows with the craft's distance from the Sun (a millionth of it in cruise), and is 1,000 km or better near a planet.
Import it
import { spacecraftErrorKm } from "@johnmorrisdotca/wakusei-planets/spacecraft";
Definition
function spacecraftErrorKm(id: SpacecraftId): number
Parameters
| Name | Type | Description |
|---|---|---|
id | "voyager1" | "voyager2" | "newhorizons" | "pioneer10" | "pioneer11" | "cassini" | "galileo" | "juno" | "parker" | "webb" | The craft. |
Returns
number
The error in kilometres.
Examples
import { loadSpacecraft, spacecraftErrorKm } from "@johnmorrisdotca/wakusei-planets/spacecraft";
await loadSpacecraft("juno");
console.log(spacecraftErrorKm("juno") < 1000);trueWhat it prints (run when this page was built)