本文へ移動

Chikyu Earth地球

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

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

目次

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

closeApproach関数

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

The closest the two satellites come between from and to. The span is sampled every stepMs (60 seconds when left out), and the moment of the closest sample is then refined between its two neighbours, to a tenth of a second, because two satellites close in at several kilometres a second and the closest sample alone can be hundreds of kilometres too far. The uncertainty is the elements' own: the square root of the sum of the squares of the two satellites' rough uncertainties (1 km, and 1 km more for each day the elements have aged at that moment), not a published covariance. Two SGP4 calls a sample, and about 20 more for the refinement. It does not run again by itself.

インポート

import { closeApproach } from "@johnmorrisdotca/chikyu-earth/satellites";

定義

function closeApproach(group: Satellites, a: number, b: number, from: number, to: number, stepMs?: number): { at: number; kilometres: number; uncertaintyKm: number; } | null

引数

名前型説明
groupSatellites

The satellites.

anumber

The index of one satellite.

bnumber

The index of the other.

fromnumber

The start, milliseconds since the Unix epoch.

tonumber

The end.

stepMs (省略可)number

The sample step, at least 1000.

戻り値

{ at: number; kilometres: number; uncertaintyKm: number; } | null

The closest moment, or null when either satellite cannot be placed.

例

import { closeApproach, createSatellites } from "@johnmorrisdotca/chikyu-earth/satellites";

const group = createSatellites([]);
console.log(closeApproach(group, 0, 1, 0, 60_000));
null

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

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

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