DeepSkyObject型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One deep-sky object. Positions are J2000 (equator and equinox of 2000), the same frame as Star.
インポート
import type { DeepSkyObject } from "@johnmorrisdotca/hoshi-stars/deep-sky";
ほかのエクスポート元: @johnmorrisdotca/hoshi-stars/deep-sky/ngc-ic
定義
interface DeepSkyObject {
id: string;
messier: string | undefined;
ngc: string | undefined;
ic: string | undefined;
otherIds: string[];
name: string | undefined;
type: DeepSkyType;
constellation: string | undefined;
rightAscension: number;
declination: number;
magnitude: number | undefined;
sizeArcmin: number | undefined;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
id | string | The Messier designation ( |
messier | string | undefined | The Messier designation ( |
ngc | string | undefined | The New General Catalogue designation ( |
ic | string | undefined | The Index Catalogue designation ( |
otherIds | string[] | The object's other NGC and IC designations ( |
name | string | undefined | The common name where Wikidata's English label is one ( |
type | "other" | "galaxy" | "globular cluster" | "open cluster" | "nebula" | "planetary nebula" | "supernova remnant" | The kind of object. |
constellation | string | undefined | The IAU three-letter constellation abbreviation ( |
rightAscension | number | Right ascension in degrees at J2000, 0 up to 360. Given to 0.0001 degree (0.36 arc-second). |
declination | number | Declination in degrees at J2000, -90 to 90. Given to 0.0001 degree. |
magnitude | number | undefined | Visual (V band) magnitude of the whole object, or |
sizeArcmin | number | undefined | The major axis in arc-minutes, or |
例
import { deepSkyObject, type DeepSkyObject } from "@johnmorrisdotca/hoshi-stars/deep-sky";
const andromeda: DeepSkyObject = deepSkyObject("M31")!;
console.log(andromeda.id, andromeda.ngc, andromeda.name, andromeda.magnitude);M31 NGC 224 Andromeda Galaxy 3.4出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。