本文へ移動

Hoshi Stars星

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

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

目次

リファレンス · 検索ボックス用の名前の一覧 (明るい星とメシエ天体ごとに、英語・日本語の名前、符号、星座、順位の重み、アドレスに使える ID、向ける先を持つ行。IDと名前で引けます)

NameRow型

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

One row of the names index: a star or a deep-sky object with the names a search box would try, and where to turn the sky to it.

インポート

import type { NameRow } from "@johnmorrisdotca/hoshi-stars/names";

ほかのエクスポート元: @johnmorrisdotca/hoshi-stars/names/named, @johnmorrisdotca/hoshi-stars/names/ngc-ic

定義

interface NameRow {
    id: string;
    kind: NameKind;
    detail: string;
    name: {
        en: string;
        ja: string | undefined;
    };
    otherNames: string[];
    designations: string[];
    constellation: string | undefined;
    constellationName: {
        en: string;
        ja: string;
    } | undefined;
    magnitude: number | undefined;
    weight: number;
    rightAscension: number;
    declination: number;
    pick: string;
    hr: number | undefined;
}

メンバー

名前型説明
idstring

An address-safe id that stays the same: lower-case letters, digits and hyphens (betelgeuse, alpha-orionis, hr-1234, m31, ngc7000). A star with a name takes it, one with a Bayer letter or Flamsteed number takes that spelt out, the rest take hr- and the catalogue number. Unique in the index.

kind"star" | "other" | "galaxy" | "nebula" | "cluster"

What the row is.

detailstring

More exactly what: the deep-sky object's own type (globular cluster, planetary nebula), or the star's spectral type as the catalogue gives it (M1-2Ia-Iab).

name{ en: string; ja: string | undefined; }

The name to show: en is the common name, else the designation (Betelgeuse, α Ori, M31); ja is the name in katakana where the package has one (ベテルギウス), else for a star with a Bayer letter the usual オリオン座α星, else undefined (the package holds no Japanese name for a deep-sky object).

otherNamesstring[]

Every other name and designation a reader might type, once each, in the spellings the package knows: for a star α Ori, alpha Ori, alpha Orionis, Alp Ori, 58 Ori, HR 2061; for a deep-sky object M31, Messier 31, NGC 224, the other NGC and IC numbers and its other common names (Andromeda Nebula). Excludes the two names shown.

designationsstring[]

The designations alone, as printed: α Ori, 58 Ori, HR 2061, or M31, NGC 224, IC 434.

constellationstring | undefined

The IAU abbreviation of the constellation it lies in (Ori), or undefined for a deep-sky object with none.

constellationName{ en: string; ja: string; } | undefined

The constellation's name in English (Orion) and in Japanese (オリオン座), or undefined.

magnitudenumber | undefined

Visual magnitude, or undefined where there is none (many NGC and IC objects). Smaller is brighter.

weightnumber

A rank for ordering results, larger first: how bright the thing is (8 less its magnitude, between 0 and 14), plus 3 for a common name and 2 for a Messier number. Brighter and better-known things come first; it is not a measure of anything else.

rightAscensionnumber

Right ascension in degrees at J2000, 0 up to 360.

declinationnumber

Declination in degrees at J2000, -90 to 90.

pickstring

The key the demo's address uses to pick it on the map (pick= in the address): S:2061 for a star by HR number, D:M31 for a deep-sky object by id.

hrnumber | undefined

The Bright Star Catalogue (HR) number of a star, else undefined.

例

import { nameRowById, type NameRow } from "@johnmorrisdotca/hoshi-stars/names";

const row: NameRow = nameRowById("betelgeuse")!;
console.log(row.name.en, row.name.ja, row.designations, row.pick);
Betelgeuse ベテルギウス [ 'α Ori', 'HR 2061' ] S:2061

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

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

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