ShowerLink型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One shower's link to the IAU Meteor Data Center's lists, with where each figure of its row comes from.
インポート
import type { ShowerLink } from "@johnmorrisdotca/chikyu-earth/meteors";
定義
interface ShowerLink {
code: string;
iau: number;
iauName: string;
status: "established" | "working";
parent: ParentBody | null;
checked: {
adNo: number;
meteors: number;
} | null;
from: {
radiant: "imo" | "mdc";
speed: "imo" | "mdc";
};
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
code | string | The IAU's three-letter code, the same as the shower's |
iau | number | The IAU's number (IAUNo), the same as the shower's |
iauName | string | The MDC's name for the shower, as it writes it (Greek letters spelled out). |
status | "established" | "working" |
|
parent | ParentBody | null | The parent body the MDC's origin column names for it, or |
checked | { adNo: number; meteors: number; } | null | The MDC solution (its AdNo) the radiant and speed agree with, the biggest that does, and how many meteors it rests on; |
from | { radiant: "imo" | "mdc"; speed: "imo" | "mdc"; } | Where the row's radiant and speed come from: |
例
import { METEOR_LINKS, type ShowerLink } from "@johnmorrisdotca/chikyu-earth/meteors";
const geminids: ShowerLink | undefined = METEOR_LINKS.find((link) => link.code === "GEM");
console.log(geminids?.iauName, geminids?.status, geminids?.parent?.designation, geminids?.checked?.meteors);Geminids established (3200) Phaethon 104490出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。