本文へ移動

Hoshi Stars星

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

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

目次

リファレンス · 立体の星座 (視差から星を空間に置き、誤差の範囲と地球からの視線を示す)

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. The positions are the catalogue's, so they are as good as its parallaxes (see distanceQuality): the Yale catalogue's are ground-based and many carry errors larger than the parallax. A star with no parallax is never given a guessed distance: it has no position, only its line of sight (sight). Seen from the Earth, the stars appear where the sky chart puts them, whatever their distances.

With from, the viewpoint moves to another star or point: every position is relative to it, so the figure is seen from there. A star with no parallax has no place to be seen from there, but its Earth line of sight is still a line in space.

インポート

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

定義

function constellationIn3D(text: string, options?: { from?: Viewpoint3D; }): Constellation3D

引数

名前型説明
textstring

The constellation, as the IAU abbreviation (Ori) or any other name constellation accepts.

options (省略可){ from?: Viewpoint3D; }

from: a star (with a parallax), its name, or { x, y, z } in parsecs (the Sun at the origin); the Earth when left out. The viewpoint is taken at its best distance, with no error.

戻り値

Constellation3D

The figure in space.

例

例 1

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

const orion = constellationIn3D("Ori");
for (const { star, lightYears, range, quality } of orion.stars) console.log(star.name ?? star.designation, lightYears?.toFixed(0), range?.map((n) => n.toFixed(0)), quality);
Betelgeuse 548 [ '480', '640' ] fair
Bellatrix 117 [ '76', '253' ] rough
Alnitak 136 [ '84', '366' ] rough
Mintaka 336 [ '196', '1165' ] rough
Alnilam undefined undefined none
Saiph 247 [ '116', 'Infinity' ] rough
Rigel 847 [ '593', '1483' ] rough
Hatysa 143 [ '83', '502' ] rough

出力(このページを作ったときに実行した結果)

例 2

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

const fromProxima = constellationIn3D("Cas", { from: "Rigil Kentaurus" });
console.log(fromProxima.viewpoint.earth.map((n) => n.toFixed(1)), fromProxima.counts);
[ '1.6', '1.4', '3.8' ] { good: 0, fair: 2, rough: 3, none: 0 }

出力(このページを作ったときに実行した結果)

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

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