Reference · Satellites: orbital elements in, positions out
createSatellitesfunction
Make a group of satellites from their element sets. Each starts SGP4 once here; one that does not (bad numbers, decayed at its own epoch) is listed in refused and left out.
It needs satellite.js (MIT, an optional peer dependency) and imports in a browser or on a server.
Import it
import { createSatellites } from "@johnmorrisdotca/chikyu-earth/satellites";
Definition
function createSatellites(sets: readonly ElementSet[], options?: SatellitesOptions): Satellites
Parameters
| Name | Type | Description |
|---|---|---|
sets | readonly ElementSet[] | Element sets in CelesTrak's JSON format ( |
options (optional) | SatellitesOptions |
|
Returns
Satellites
The group: at(ms, out) for positions, exact, orbit, info, and counters.
Examples
import { createSatellites } from "@johnmorrisdotca/chikyu-earth/satellites";
const group = createSatellites([
{
OBJECT_NAME: "ISS (ZARYA)",
OBJECT_ID: "1998-067A",
EPOCH: "2026-11-02T10:25:21.580320",
MEAN_MOTION: 15.49150046,
ECCENTRICITY: 0.0007139,
INCLINATION: 51.6332,
RA_OF_ASC_NODE: 335.9757,
ARG_OF_PERICENTER: 339.3739,
MEAN_ANOMALY: 20.6961,
NORAD_CAT_ID: 25544,
BSTAR: 0.00012,
MEAN_MOTION_DOT: 0.0001,
MEAN_MOTION_DDOT: 0,
},
]);
const noon = Date.UTC(2026, 10, 2, 12);
console.log(group.count, group.info(0, noon)?.altitudeKm.toFixed(0));1 422What it prints (run when this page was built)