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 · The sky out to a distance, in layers: the stars and galaxies nearer than 10, 50, 100, 500 or 1,000 light-years, each distance band its own colour, the ones with an uncertain distance kept apart, and none placed at a guess

DistanceInputtype

Something with a place on the sky and perhaps a distance, as layersByDistance takes it. Make one with starInput, nearbyInput or deepSkyInput, or write one for your own data.

Import it

import type { DistanceInput } from "@johnmorrisdotca/hoshi-stars/distance";

Definition

interface DistanceInput {
    id: string;
    kind: LayerKind;
    name: string | undefined;
    rightAscension: number;
    declination: number;
    magnitude: number | undefined;
    lightYears: number | undefined;
    low: number | undefined;
    high: number | undefined;
    certainty: Certainty | undefined;
}

Members

NameTypeDescription
idstring

A key that stays the same: hr-2491 for a bright star, gctp-3278 for a nearby star, M31 for a deep-sky object.

kindLayerKind
namestring | undefined
rightAscensionnumber

J2000 right ascension and declination in degrees.

declinationnumber
magnitudenumber | undefined

Visual magnitude, or undefined.

lightYearsnumber | undefined

The best distance in light-years, or undefined where there is none: the thing is then counted as having no distance, and never placed.

lownumber | undefined

The nearest and farthest the distance can be within one standard error, in light-years; Infinity for no upper limit. The distance itself where no error is stated.

highnumber | undefined
certaintyCertainty | undefined

Examples

import type { DistanceInput } from "@johnmorrisdotca/hoshi-stars/distance";

const proxima: DistanceInput = { id: "proxima", kind: "nearby", name: "Proxima Centauri", rightAscension: 217.43, declination: -62.68, magnitude: 11.1, lightYears: 4.24, low: 4.24, high: 4.24, certainty: "good" };
console.log(proxima.name);
Proxima Centauri

What it prints (run when this page was built)

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