リファレンス · 有名な探査機10機 (ボイジャー、ニュー・ホライズンズ、パイオニア、カッシーニ、ガリレオ、ジュノー、パーカー、ウェッブ): 情報、出来事、打ち上げから記録の終わりまでの任意の日の位置
SpacecraftEvent型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One thing that happened on a craft's voyage.
インポート
import type { SpacecraftEvent } from "@johnmorrisdotca/wakusei-planets/spacecraft";
定義
interface SpacecraftEvent {
kind: "launch" | "flyby" | "orbit-insertion" | "arrival" | "end";
date: number;
precision: "minute" | "day";
name: {
en: string;
ja: string;
};
body?: PlanetId;
distanceKm?: number;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
kind | "launch" | "flyby" | "orbit-insertion" | "arrival" | "end" | What happened: the launch, a flyby, going into orbit round a planet, getting to the place the craft works from, or the end of the mission. |
date | number | The moment, in milliseconds since 1970 (UTC). Where |
precision | "day" | "minute" | "minute" where the page gives a time, "day" where it gives only a date. |
name | { en: string; ja: string; } | The name of the event in English and Japanese. |
body (省略可) | "mercury" | "venus" | "earth" | "mars" | "jupiter" | "saturn" | "uranus" | "neptune" | "pluto" | undefined | The planet (or Pluto) the event is at, when it is at one. A flyby of an asteroid or of Arrokoth has none. |
distanceKm (省略可) | number | undefined | The closest the craft came, in kilometres, as NASA gives it: above the planet's cloud tops or the body's surface, or from a planet for the one distant pass (Cassini at Jupiter). Left out where NASA gives none. |
例
import { SPACECRAFT, type SpacecraftEvent } from "@johnmorrisdotca/wakusei-planets/spacecraft";
const jupiter: SpacecraftEvent = SPACECRAFT.voyager1.events.find((e) => e.body === "jupiter")!;
console.log(new Date(jupiter.date).toISOString(), jupiter.name.en);1979-03-05T12:05:00.000Z Jupiter flyby出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。