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

gradeAtLeastfunction

Whether 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.

Import it

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

Definition

function gradeAtLeast(grade: StarGrade, minimum: StarGrade): boolean

Parameters

NameTypeDescription
gradeStarGrade

The grade to test.

minimumStarGrade

The worst grade that is accepted.

Returns

boolean

true when grade is minimum or better.

Examples

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

console.log(gradeAtLeast("A", "B"), gradeAtLeast("C", "B")); // true false
true false

What it prints (run when this page was built)

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