FieldAccuracytype
What is known about one value of a star.
Import it
import type { FieldAccuracy } from "@johnmorrisdotca/hoshi-stars/accuracy";
Definition
interface FieldAccuracy {
source: AccuracySource | undefined;
error: number | undefined;
resolution: number | undefined;
unit: "arcsec" | "mag" | "mas" | "mas/yr";
note: string | undefined;
}
Members
| Name | Type | Description |
|---|---|---|
source | AccuracySource | undefined | Where the value is from, or |
error | number | undefined | The standard error in |
resolution | number | undefined | The size of the last digit the source prints, in |
unit | "arcsec" | "mag" | "mas" | "mas/yr" | The unit of |
note | string | undefined | One plain sentence on what to be careful about, or |
Examples
import { starByName } from "@johnmorrisdotca/hoshi-stars";
import { starAccuracy, type FieldAccuracy } from "@johnmorrisdotca/hoshi-stars/accuracy";
const parallax: FieldAccuracy = starAccuracy(starByName("Sirius")!).parallax;
console.log(parallax.source, parallax.error, parallax.unit);GCTP 2.2 masWhat it prints (run when this page was built)