リファレンス · 距離で見る空 (10・50・100・500・1,000光年より近い星や銀河を層に分けて、距離の帯ごとに色分けします。距離がはっきりしないものは別にし、推測で置くことはしません)
DistanceInput型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Something with a place on the sky and perhaps a distance, as layersByDistance takes it. Make one with starInput, nearbyInput or deepSkyInput, or write one for your own data.
インポート
import type { DistanceInput } from "@johnmorrisdotca/hoshi-stars/distance";
定義
interface DistanceInput {
id: string;
kind: LayerKind;
name: string | undefined;
rightAscension: number;
declination: number;
magnitude: number | undefined;
lightYears: number | undefined;
low: number | undefined;
high: number | undefined;
certainty: Certainty | undefined;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
id | string | A key that stays the same: |
kind | LayerKind | |
name | string | undefined | |
rightAscension | number | J2000 right ascension and declination in degrees. |
declination | number | |
magnitude | number | undefined | Visual magnitude, or |
lightYears | number | undefined | The best distance in light-years, or |
low | number | undefined | The nearest and farthest the distance can be within one standard error, in light-years; |
high | number | undefined | |
certainty | Certainty | undefined |
例
import type { DistanceInput } from "@johnmorrisdotca/hoshi-stars/distance";
const proxima: DistanceInput = { id: "proxima", kind: "nearby", name: "Proxima Centauri", rightAscension: 217.43, declination: -62.68, magnitude: 11.1, lightYears: 4.24, low: 4.24, high: 4.24, certainty: "good" };
console.log(proxima.name);Proxima Centauri出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。