Reference · The Messier objects
DeepSkyObjecttype
One deep-sky object. Positions are J2000 (equator and equinox of 2000), the same frame as Star.
Import it
import type { DeepSkyObject } from "@johnmorrisdotca/hoshi-stars/deep-sky";
Also exported from: @johnmorrisdotca/hoshi-stars/deep-sky/ngc-ic
Definition
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;
}
Members
| Name | Type | Description |
|---|---|---|
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 |
Examples
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.4What it prints (run when this page was built)