Reference · Satellites: orbital elements in, positions out
missionElementsfunction
The element sets in a mission's file, as missionPosition and createSatellites take them, by NORAD catalogue number.
Import it
import { missionElements } from "@johnmorrisdotca/chikyu-earth/satellites";
Definition
function missionElements(file: MissionFile): Record<number, ElementSet[]>
Parameters
| Name | Type | Description |
|---|---|---|
file | MissionFile | A mission's file from the demo site ( |
Returns
Record<number, ElementSet[]>
The sets of each craft, in time order.
Examples
import { missionElements } from "@johnmorrisdotca/chikyu-earth/satellites";
const sets = missionElements({
id: "sts-1",
retrieved: "2026-11-08T12:18Z",
source: "Space-Track.org (USSPACECOM)",
fields: ["EPOCH", "MEAN_MOTION", "ECCENTRICITY", "INCLINATION", "RA_OF_ASC_NODE", "ARG_OF_PERICENTER", "MEAN_ANOMALY", "BSTAR", "MEAN_MOTION_DOT", "MEAN_MOTION_DDOT"],
objects: { "12399": { name: "STS 1 (OFT-1)", designator: "1981-034A", rows: [["1981-04-12T11:53:25.728288", 16.10930225, 0.0008761, 40.3505, 262.129, 212.5283, 147.5016, 0.002351, 0.02496602, 0.0000043266]] } },
});
console.log(sets[12399]?.length);1What it prints (run when this page was built)