orbitShapefunction
The shape of an orbit from the two numbers every element set has: its mean motion (revolutions a day) by Kepler's third law, and its eccentricity. Heights are above the mean Earth radius (6371 km), the same as the satellites' own readout.
Import it
import { orbitShape } from "@johnmorrisdotca/chikyu-earth/catalogue";
Definition
function orbitShape(meanMotion: number, eccentricity: number): OrbitShape | null
Parameters
| Name | Type | Description |
|---|---|---|
meanMotion | number | Revolutions a day, above 0. |
eccentricity | number | 0 up to (not including) 1. |
Returns
OrbitShape | null
The shape; null for a mean motion or an eccentricity that is not an orbit.
Examples
import { orbitShape } from "@johnmorrisdotca/chikyu-earth/catalogue";
const iss = orbitShape(15.4915, 0.0007139);
console.log(iss && Math.round(iss.perigeeKm), iss && Math.round(iss.periodMinutes), orbitShape(0, 0));421 93 nullWhat it prints (run when this page was built)