本文へ移動

Hoshi Stars星

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

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

目次

リファレンス · 20光年以内の73の星系 (英語と日本語の名前、位置、距離、伴星、値ごとの出典つき)

NearStarMember型

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

One star of a system.

インポート

import type { NearStarMember } from "@johnmorrisdotca/hoshi-stars/near-stars";

定義

interface NearStarMember {
    name: string;
    nameJa: string | undefined;
    role: "primary" | "companion";
    rightAscension: number | undefined;
    declination: number | undefined;
    lightYears: number | undefined;
    spectralType: string | undefined;
    luminosityClass: LuminosityClass | undefined;
    magnitude: number | undefined;
    source: NearStarSource;
    note: string | undefined;
}

メンバー

名前型説明
namestring

The star's name (Sirius B, Proxima Centauri).

nameJastring | undefined

The name in Japanese where it has one, else undefined.

role"primary" | "companion"

"primary" for the star the system's values are the values of (the brightest, or the one the table names), else "companion".

rightAscensionnumber | undefined

Right ascension in degrees at J2000, or undefined for a companion the Yale tables do not hold (it is close beside the primary).

declinationnumber | undefined

Declination in degrees at J2000, or undefined as above.

lightYearsnumber | undefined

The star's own distance in light-years, or undefined as above.

spectralTypestring | undefined

The spectral type, or undefined where the source gives none.

luminosityClassLuminosityClass | undefined

The luminosity class in spectralType, or undefined where it states none (a white dwarf is D only where the type starts with D).

magnitudenumber | undefined

The V magnitude, or undefined where there is none.

sourceNearStarSource

Where the star's values come from: "typed" for a published value typed into the package.

notestring | undefined

A word about the star (a white dwarf, a brown dwarf), or undefined.

例

import { nearStarByName, type NearStarMember } from "@johnmorrisdotca/hoshi-stars/near-stars";

const sirius: readonly NearStarMember[] = nearStarByName("Sirius")!.members;
console.log(sirius.map((m) => `${m.name} ${m.spectralType}`));
[ 'Sirius A1Vm', 'Sirius B DA2' ]

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

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

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