Skip to the content

Hoshi Stars星

The stars you can see without a telescope, with names, colours and distances; the 88 constellations with their lines and boundaries; the Messier objects; and seven map projections to draw them on.

Hoshi is the Japanese word 星 for a star. About the name

Contents

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

NameTypeDescription
objectDeepSkyObject

A deep-sky object from deep-sky or deep-sky/ngc-ic.

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' ] false

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hoshi-stars 0.47.0.