Reference · NGC and IC objects as well
galaxyDistancefunction
The distance to a Messier, NGC or IC galaxy: the median of the distances Wikidata (CC0) gives, in light-years and parsecs, with the error where a statement has one, the lowest and highest statement, how many there are and whether they disagree (the highest more than 1.2 times the lowest). The method is always "compiled, method not stated": Wikidata gathers published values and names no method. About six in ten of the galaxies have one. Statements Wikidata marks deprecated are not used, and neither is any under 20 kiloparsecs (the nearest galaxy in the lists is the Small Magellanic Cloud, at 60).
Import it
import { galaxyDistance } from "@johnmorrisdotca/hoshi-stars/deep-sky/ngc-ic";
Definition
function galaxyDistance(object: DeepSkyObject): GalaxyDistance | null
Parameters
| Name | Type | Description |
|---|---|---|
object | DeepSkyObject | A deep-sky object from |
Returns
GalaxyDistance | null
The distance, frozen, or null for an object that is not a galaxy or one the source has no distance for.
Examples
import { deepSkyObject, galaxyDistance } from "@johnmorrisdotca/hoshi-stars/deep-sky/ngc-ic";
const ngc253 = galaxyDistance(deepSkyObject("NGC 253")!);
console.log(ngc253?.lightYears, ngc253?.error, ngc253?.sources[0]?.items, ngc253?.disagree);12067785.9755195 null [ 'Q487221' ] falseWhat it prints (run when this page was built)