Reference · Satellites: orbital elements in, positions out
SatelliteInfotype
What a page can tell a reader about one satellite at a moment: its name, its number, how old its elements are, how high and how fast it is.
Import it
import type { SatelliteInfo } from "@johnmorrisdotca/chikyu-earth/satellites";
Definition
interface SatelliteInfo {
index: number;
name: string;
noradId: number;
objectId: string | undefined;
epochMs: number;
ageDays: number;
altitudeKm: number;
speedKmS: number;
periodMinutes: number;
inclinationDeg: number;
}
Members
| Name | Type | Description |
|---|---|---|
index | number | Where it is in its group. |
name | string | |
noradId | number | The NORAD catalogue number. |
objectId | string | undefined | The international designator (for example |
epochMs | number | The moment of its elements, in milliseconds since the Unix epoch. |
ageDays | number | Days between the elements' moment and the moment asked about (negative before it). |
altitudeKm | number | Height above the mean Earth radius (6371 km) at that moment. |
speedKmS | number | Speed against the stars, kilometres a second. |
periodMinutes | number | One revolution, minutes. |
inclinationDeg | number | Degrees. |
Examples
import type { SatelliteInfo } from "@johnmorrisdotca/chikyu-earth/satellites";
const describe = (info: SatelliteInfo): string => `${info.name}: ${info.altitudeKm.toFixed(0)} km up, ${info.speedKmS.toFixed(2)} km/s`;
console.log(typeof describe);functionWhat it prints (run when this page was built)