SatellitePass型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
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 type { SatellitePass } from "@johnmorrisdotca/chikyu-earth/passes";
定義
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;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
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 |
例
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);function出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。