リファレンス · 暗い星 (UCAC4の約300万個、12等まで。見ている空の部分のタイルだけを読み込みます)
FaintStar型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One faint star.
インポート
import type { FaintStar } from "@johnmorrisdotca/hoshi-stars/faint";
定義
interface FaintStar {
rightAscension: number;
declination: number;
magnitude: number;
colourIndex: number | undefined;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
rightAscension | number | Right ascension in degrees at J2000 (the ICRS), 0 up to 360, good to a fraction of an arc-second. |
declination | number | Declination in degrees at J2000, -90 to 90. |
magnitude | number | The magnitude to 0.05: APASS DR10's V for a bright star it holds (V 7.0 to 10.2, south of declination +20.0), else APASS V as UCAC4 carries it where it is APASS's own, else UCAC4's own model magnitude (between V and R). Smaller is brighter. |
colourIndex | number | undefined | B-V in magnitudes from APASS, to 0.0125, or |
例
import type { FaintStar } from "@johnmorrisdotca/hoshi-stars/faint";
const show = (star: FaintStar): string => `${star.magnitude.toFixed(2)} at ${star.rightAscension.toFixed(4)}, ${star.declination.toFixed(4)}`;
console.log(show({ rightAscension: 83.8, declination: -5.4, magnitude: 11.2, colourIndex: 0.7 }));11.20 at 83.8000, -5.4000出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。