本文へ移動

Hoshi Stars星

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

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

目次

リファレンス

立体の星座 (視差から星を空間に置き、誤差の範囲と地球からの視線を示す)

import { … } from "@johnmorrisdotca/hoshi-stars/constellation-3d";

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

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

エクスポート

名前種類概要
Constellation3D型A constellation's figure in space.
constellationIn3D関数A constellation's figure in space: each star of the figure placed from its right ascension, declination and parallax, with the nearest and farthest places its parallax error allows, and the Earth's line of sight to it.
DISTANCE_QUALITIES定数The qualities in order, best first.
distanceQuality関数How well a star's distance is known (see DistanceQuality).
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).
distanceQualityTable関数How many stars of each figure have each quality of distance: the table that says which constellations are worth looking at in space today.
Point3型A point in space in light-years on the J2000 equatorial axes: x toward right ascension 0, y toward 6 hours, z toward the north celestial pole.
positionIn3D関数The place in space of a direction and a distance: right ascension and declination in degrees, distance in light-years, on the J2000 equatorial axes with the viewpoint at the origin.
QUALITY_LIMITS定数The relative errors that divide the qualities: under good is good, up to rough is fair, over it is rough.
StarIn3D型One star of a figure in space, as seen from the viewpoint (the Earth, or another star).
Viewpoint3D型A viewpoint: a star (with a distance), a name starByName finds, or a point { x, y, z } in parsecs with the Sun at the origin.

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

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