リファレンス · 有名な探査機10機 (ボイジャー、ニュー・ホライズンズ、パイオニア、カッシーニ、ガリレオ、ジュノー、パーカー、ウェッブ): 情報、出来事、打ち上げから記録の終わりまでの任意の日の位置
loadSpacecraft関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Load the fitted paths of some spacecraft (or all of them), each a table of its own that nothing else imports: about 6 kB gzipped for the Voyagers, the Pioneers, New Horizons and JWST, and more for the craft that orbited a planet. Call it once before the other functions; it is safe to call again.
インポート
import { loadSpacecraft } from "@johnmorrisdotca/wakusei-planets/spacecraft";
定義
function loadSpacecraft(...ids: readonly SpacecraftId[]): Promise<void>
引数
| 名前 | 型 | 説明 |
|---|---|---|
...ids | readonly ("voyager1" | "voyager2" | "newhorizons" | "pioneer10" | "pioneer11" | "cassini" | "galileo" | "juno" | "parker" | "webb")[] | The craft to load; none means all ten. |
戻り値
Promise<void>
A promise that settles when every table is registered.
例
import { loadSpacecraft, spacecraftPosition } from "@johnmorrisdotca/wakusei-planets/spacecraft";
await loadSpacecraft("voyager1");
const [x, y, z] = spacecraftPosition("voyager1", Date.UTC(2026, 10, 8));
console.log((Math.hypot(x, y, z) / 149597870.7).toFixed(0), "au from the Sun");172 au from the Sun出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。