Reference · Passes: when a satellite crosses the sky over a place
SatellitePasstype
One pass of a satellite over a place: it comes up through minAltitude, reaches its highest and goes down below minAltitude, with whether and how it can be seen. Times are UTC milliseconds; show them in the place's own time
by adding its offset.
Import it
import type { SatellitePass } from "@johnmorrisdotca/chikyu-earth/passes";
Definition
interface SatellitePass {
noradId: number;
name: string;
start: PassPoint;
highest: PassPoint;
end: PassPoint;
durationSeconds: number;
visible: VisiblePart | undefined;
reason: PassReason;
sky: SkyName;
sunAltitude: number;
sunlit: boolean;
magnitude: number | undefined;
elementEpochMs: number;
elementAgeDays: number;
stale: boolean;
}
Members
| Name | Type | Description |
|---|---|---|
noradId | number | |
name | string | |
start | PassPoint | The pass above |
highest | PassPoint | |
end | PassPoint | |
durationSeconds | number | |
visible | VisiblePart | undefined | The part that can be seen, or undefined when none can. |
reason | PassReason |
|
sky | SkyName | The sky at the watcher's place, at the highest point of the visible part (or of the pass when none is visible). |
sunAltitude | number | The Sun's altitude then, degrees. |
sunlit | boolean | True when the satellite is in sunlight for at least part of the pass above |
magnitude | number | undefined | The brightest it is, as a magnitude (smaller is brighter), over the visible part or, when none is visible, over the part that is lit. Undefined when it is never lit or its standard magnitude is not known. |
elementEpochMs | number | The moment of the elements, milliseconds since the Unix epoch. |
elementAgeDays | number | Days between the elements' moment and the pass's highest point (negative for a pass before it). |
stale | boolean | True when the elements are older than |
Examples
import type { SatellitePass } from "@johnmorrisdotca/chikyu-earth/passes";
const line = (pass: SatellitePass): string => `${pass.name}: ${pass.highest.altitude.toFixed(0)} degrees ${pass.highest.compass}, ${pass.reason}`;
console.log(typeof line);functionWhat it prints (run when this page was built)