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

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

1.5 kB minified and gzipped, with everything it imports (measured with esbuild)

Exports

NameKindWhat it is
AccuracySourcetypeWhere a value is from: BSC the Yale Bright Star Catalogue, GCTP the Yale General Catalogue of Trigonometric Stellar Parallaxes, 2MASS the Two Micron All Sky Survey, dynamical the Bright Star Catalogue's parallax from the orbit of a binary, literature a distance typed from a published paper (Betelgeuse, Rigel, Polaris).
checkGradefunctionWhether a value is a grade: "A", "B" or "C".
DistanceAccuracytypeThe distance of a star in numbers: what the parallax's error makes of it.
DistanceQualitytypeHow well a star's distance is known, from its parallax and the error the catalogue states: good (the error is under 5% of the parallax), fair (5% to 20%, or a dynamical parallax from a binary's orbit), rough (over 20%, or a parallax with no stated error) and none (no parallax: the distance is unknown).
FieldAccuracytypeWhat is known about one value of a star.
GRADE_RULESconstantThe numbers the grade is decided by: a distance is good under distance.good of the parallax and fair up to distance.fair (the same bands as distanceQuality), and a position is modern when its error, or its resolution where it has no stated error, is at most modernPositionArcsec.
gradeAtLeastfunctionWhether a grade is at least as good as another: A is at least B, and B is at least B, but C is not at least B.
STAR_GRADESconstantThe grades, best first.
starAccuracyfunctionHow well each value of a star is known, and its grade.
StarAccuracytypeEverything starAccuracy says of one star.
starGradefunctionA star's grade alone, worked out without building the whole record: the same answer as starAccuracy(star).grade, cheap enough to filter thousands of stars with.
StarGradetypeThe grade of a star: A a distance known to under 5% and a modern position, B a distance known to 20% or better (or one known to under 5% with a coarse position), C anything else: a position and a rough or missing distance.

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