本文へ移動

Chikyu Earth地球

世界の国の輪郭を線で描いた地球儀です。地球と同じ速さで回ります。宇宙から見たような地球と、好きな場所の目印も使えます。

「地球」(ちきゅう) は、私たちが住む星の名前です。 名前について(英語)

目次

リファレンス · 人工衛星: 軌道要素から位置を計算

SatelliteInfo型

リファレンスの説明と例は英語です。見出しと目次は日本語です。

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 type { SatelliteInfo } from "@johnmorrisdotca/chikyu-earth/satellites";

定義

interface SatelliteInfo {
    index: number;
    name: string;
    noradId: number;
    objectId: string | undefined;
    epochMs: number;
    ageDays: number;
    altitudeKm: number;
    speedKmS: number;
    periodMinutes: number;
    inclinationDeg: number;
}

メンバー

名前型説明
indexnumber

Where it is in its group.

namestring
noradIdnumber

The NORAD catalogue number.

objectIdstring | undefined

The international designator (for example 1998-067A), when the elements carry one.

epochMsnumber

The moment of its elements, in milliseconds since the Unix epoch.

ageDaysnumber

Days between the elements' moment and the moment asked about (negative before it).

altitudeKmnumber

Height above the mean Earth radius (6371 km) at that moment.

speedKmSnumber

Speed against the stars, kilometres a second.

periodMinutesnumber

One revolution, minutes.

inclinationDegnumber

Degrees.

例

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);
function

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/chikyu-earth 0.11.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。