本文へ移動

Hoshi Stars星

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

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

目次

リファレンス · 星の名前・位置・距離・色

absoluteMagnitude関数

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

A star's absolute magnitude: how bright it would look from 10 parsecs (32.6 light-years), from its visual magnitude and its parallax (M = V + 5 + 5 log10(parallax in arc-seconds)). It is the brightness the Hertzsprung-Russell diagram plots against colour. The Sun is 4.83 and Sirius 1.45. The dimming of starlight by interstellar dust is not corrected, so a distant star is a little fainter than it is; the catalogue holds no figure for it.

インポート

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

定義

function absoluteMagnitude(star: Pick<Star, "magnitude" | "parallaxMas">): number | undefined

引数

名前型説明
starPick<Star, "magnitude" | "parallaxMas">

A star, or anything with a visual magnitude and a parallax in milliarcseconds.

戻り値

number | undefined

The absolute magnitude, or undefined where there is no parallax (or a non-positive one). It carries the parallax's error: a star with a poor parallax has a poor absolute magnitude.

例

import { absoluteMagnitude, starByName } from "@johnmorrisdotca/hoshi-stars";

console.log(absoluteMagnitude(starByName("Sirius")!)?.toFixed(2));
1.45

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

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

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