リファレンス · 星ごとの値の確かさ (位置・明るさ・色・視差・固有運動の出典と誤差、A・B・Cの等級)
StarAccuracy型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Everything starAccuracy says of one star.
インポート
import type { StarAccuracy } from "@johnmorrisdotca/hoshi-stars/accuracy";
定義
interface StarAccuracy {
layer: "bright" | "nearby";
grade: StarGrade;
modernPosition: boolean;
position: FieldAccuracy;
magnitude: FieldAccuracy;
colour: FieldAccuracy;
parallax: FieldAccuracy;
distance: DistanceAccuracy;
properMotion: FieldAccuracy;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
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. |
例
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 A出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。