本文へ移動

Hoshi Stars星

肉眼で見える星の名前・色・距離、88星座の線と境界、メシエ天体、そしてそれらを描くための7種類の図法を使えます。

「星」(ほし) は、夜空に光って見えるものです。 名前について(英語)

目次

リファレンス

星ごとの値の確かさ (位置・明るさ・色・視差・固有運動の出典と誤差、A・B・Cの等級)

import { … } from "@johnmorrisdotca/hoshi-stars/accuracy";

最小化と gzip 圧縮をしたサイズは 1.5 kB(読み込むものをすべて含み、esbuild で計測)

リファレンスの説明と例は英語です。見出しと目次は日本語です。

エクスポート

名前種類概要
AccuracySource型Where a value is from: BSC the Yale Bright Star Catalogue, GCTP the Yale General Catalogue of Trigonometric Stellar Parallaxes, 2MASS the Two Micron All Sky Survey, dynamical the Bright Star Catalogue's parallax from the orbit of a binary, literature a distance typed from a published paper (Betelgeuse, Rigel, Polaris).
checkGrade関数Whether a value is a grade: "A", "B" or "C".
DistanceAccuracy型The distance of a star in numbers: what the parallax's error makes of it.
DistanceQuality型How well a star's distance is known, from its parallax and the error the catalogue states: good (the error is under 5% of the parallax), fair (5% to 20%, or a dynamical parallax from a binary's orbit), rough (over 20%, or a parallax with no stated error) and none (no parallax: the distance is unknown).
FieldAccuracy型What is known about one value of a star.
GRADE_RULES定数The numbers the grade is decided by: a distance is good under distance.good of the parallax and fair up to distance.fair (the same bands as distanceQuality), and a position is modern when its error, or its resolution where it has no stated error, is at most modernPositionArcsec.
gradeAtLeast関数Whether a grade is at least as good as another: A is at least B, and B is at least B, but C is not at least B.
STAR_GRADES定数The grades, best first.
starAccuracy関数How well each value of a star is known, and its grade.
StarAccuracy型Everything starAccuracy says of one star.
starGrade関数A star's grade alone, worked out without building the whole record: the same answer as starAccuracy(star).grade, cheap enough to filter thousands of stars with.
StarGrade型The grade of a star: A a distance known to under 5% and a modern position, B a distance known to 20% or better (or one known to under 5% with a coarse position), C anything else: a position and a rough or missing distance.

ソースを見るGitHub で編集@johnmorrisdotca/hoshi-stars 0.47.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。