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 · How well each value of a star is known: the source and error of its position, magnitude, colour, parallax and proper motion, and a grade A, B or C

DistanceAccuracytype

The distance of a star in numbers: what the parallax's error makes of it.

Import it

import type { DistanceAccuracy } from "@johnmorrisdotca/hoshi-stars/accuracy";

Definition

interface DistanceAccuracy {
    relativeError: number | undefined;
    quality: DistanceQuality;
}

Members

NameTypeDescription
relativeErrornumber | undefined

The parallax's error divided by the parallax (0.05 is 5%), or undefined where there is no parallax or no stated error.

qualityDistanceQuality

The band the distance falls in: the same as distanceQuality.

Examples

import { starByName } from "@johnmorrisdotca/hoshi-stars";
import { starAccuracy, type DistanceAccuracy } from "@johnmorrisdotca/hoshi-stars/accuracy";

const distance: DistanceAccuracy = starAccuracy(starByName("Sirius")!).distance;
console.log(distance.quality, distance.relativeError);
good 0.005765199161425576

What it prints (run when this page was built)

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