FAINT_LEVELSconstant
The tile levels, brightest first. A star lies in the first level whose faintest it does not pass, so level 0 holds everything to magnitude 10, level 1 the stars from 10 to 11 and level 2 those from 11 to 12.
A level's tiles are bands of declination bandDegrees high, each cut into as many tiles along right ascension as keep a tile about as wide as it is tall at the edge of the band nearer the equator.
Import it
import { FAINT_LEVELS } from "@johnmorrisdotca/hoshi-stars/faint";
Definition
const FAINT_LEVELS: readonly { readonly faintest: number; readonly bandDegrees: number; }[] = [
{ faintest: 10, bandDegrees: 10 },
{ faintest: 11, bandDegrees: 6 },
{ faintest: 12, bandDegrees: 5 },
]
Examples
import { FAINT_LEVELS } from "@johnmorrisdotca/hoshi-stars/faint";
console.log(FAINT_LEVELS.map((level) => level.faintest)); // [10, 11, 12][ 10, 11, 12 ]What it prints (run when this page was built)