本文へ移動

Hoshi Stars星

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

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

目次

リファレンス · 星団の輪郭の中にあるカタログの明るい星

starsInside関数

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

The catalogue stars (magnitude 6.0 and brighter) that lie inside the circle of an object's major diameter, brightest first. This says where a star is, not what it belongs to: a star in front of a cluster or far behind it is in the list too, because the catalogue gives no cluster distance to tell them apart. Draw them as "inside the outline", not as proven members.

インポート

import { starsInside } from "@johnmorrisdotca/hoshi-stars/deep-sky/members";

定義

function starsInside(object: DeepSkyObject, shape: DeepSkyShape): Star[]

引数

名前型説明
objectDeepSkyObject

The deep-sky object (a cluster, usually).

shapeDeepSkyShape

Its shape from deepSkyShape; with no major axis the list is empty.

戻り値

Star[]

A fresh array of the shared, frozen stars: empty where the object has no size or no catalogue star is inside.

例

import { deepSkyObject } from "@johnmorrisdotca/hoshi-stars/deep-sky";
import { deepSkyShape } from "@johnmorrisdotca/hoshi-stars/deep-sky/shape";
import { starsInside } from "@johnmorrisdotca/hoshi-stars/deep-sky/members";

const pleiades = deepSkyObject("M45")!;
console.log(starsInside(pleiades, deepSkyShape(pleiades)).map((star) => star.name ?? star.hr));
[
  'Alcyone',  'Atlas',
  'Electra',  'Maia',
  'Merope',   'Taygeta',
  'Pleione',  1172,
  'Celaeno',  1144,
  'Asterope'
]

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

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

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