本文へ移動

Hoshi Stars星

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

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

目次

リファレンス · 名前の一覧の小さな最初のかたまり (固有名のある335個の星と110個のメシエ天体。全体と同じ行で、最初に約20 kBだけ読み込む検索ボックス用)

nameRows関数

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

The rows of the small chunk: the 335 stars with a common name and the 110 Messier objects (445), brightest and best-known first (by weight), as a fresh array. Each equals the row of the same id in /names. For the other bright stars see /names, for the NGC and IC objects /names/ngc-ic.

インポート

import { nameRows } from "@johnmorrisdotca/hoshi-stars/names/named";

定義

function nameRows(options?: { kinds?: readonly NameKind[]; }): NameRow[]

引数

名前型説明
options (省略可){ kinds?: readonly NameKind[]; }

kinds: only rows of those kinds.

戻り値

NameRow[]

The rows.

例

import { nameRows } from "@johnmorrisdotca/hoshi-stars/names/named";

const rows = nameRows();
console.log(rows.length, rows[0].id, nameRows({ kinds: ["galaxy"] }).length);
445 sirius 40

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

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

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