StarAccuracytype
Everything starAccuracy says of one star.
Import it
import type { StarAccuracy } from "@johnmorrisdotca/hoshi-stars/accuracy";
Definition
interface StarAccuracy {
layer: "bright" | "nearby";
grade: StarGrade;
modernPosition: boolean;
position: FieldAccuracy;
magnitude: FieldAccuracy;
colour: FieldAccuracy;
parallax: FieldAccuracy;
distance: DistanceAccuracy;
properMotion: FieldAccuracy;
}
Members
| Name | Type | Description |
|---|---|---|
layer | "nearby" | "bright" | The tier the star is from: |
grade | StarGrade | The grade, by |
modernPosition | boolean | Whether the position is modern by |
position | FieldAccuracy | The J2000 position, in arc-seconds. |
magnitude | FieldAccuracy | The V magnitude, in magnitudes. |
colour | FieldAccuracy | The B-V colour index, in magnitudes. Only the bright tier has one. |
parallax | FieldAccuracy | The parallax, in milliarcseconds. |
distance | DistanceAccuracy | The distance the parallax makes. |
properMotion | FieldAccuracy | The proper motion, in milliarcseconds a year. |
Examples
import { starByName } from "@johnmorrisdotca/hoshi-stars";
import { starAccuracy, type StarAccuracy } from "@johnmorrisdotca/hoshi-stars/accuracy";
const sirius: StarAccuracy = starAccuracy(starByName("Sirius")!);
console.log(sirius.layer, sirius.grade);bright AWhat it prints (run when this page was built)