FaintStartype
One faint star.
Import it
import type { FaintStar } from "@johnmorrisdotca/hoshi-stars/faint";
Definition
interface FaintStar {
rightAscension: number;
declination: number;
magnitude: number;
colourIndex: number | undefined;
}
Members
| Name | Type | Description |
|---|---|---|
rightAscension | number | Right ascension in degrees at J2000 (the ICRS), 0 up to 360, good to a fraction of an arc-second. |
declination | number | Declination in degrees at J2000, -90 to 90. |
magnitude | number | The magnitude to 0.05: APASS DR10's V for a bright star it holds (V 7.0 to 10.2, south of declination +20.0), else APASS V as UCAC4 carries it where it is APASS's own, else UCAC4's own model magnitude (between V and R). Smaller is brighter. |
colourIndex | number | undefined | B-V in magnitudes from APASS, to 0.0125, or |
Examples
import type { FaintStar } from "@johnmorrisdotca/hoshi-stars/faint";
const show = (star: FaintStar): string => `${star.magnitude.toFixed(2)} at ${star.rightAscension.toFixed(4)}, ${star.declination.toFixed(4)}`;
console.log(show({ rightAscension: 83.8, declination: -5.4, magnitude: 11.2, colourIndex: 0.7 }));11.20 at 83.8000, -5.4000What it prints (run when this page was built)