本文へ移動

Hoshi Stars星

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

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

目次

リファレンス · ほかの星から見た空 (近くの星も動かす)

skyFromWithNearby関数

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

skyFrom over the 5,080 bright stars and the 5,565 nearby stars together. A name is looked up among the bright stars first, then the nearby ones (Proxima Centauri, GJ 551, Barnard's Star). A nearby star with no magnitude (the catalogue gives one for most) cannot be given a brightness and is counted in skipped with the stars that have no distance. The Sun is among the stars.

インポート

import { skyFromWithNearby } from "@johnmorrisdotca/hoshi-stars/sky-from/nearby";

定義

function skyFromWithNearby(viewpoint: SkyFromViewpoint, options?: Omit<SkyFromOptions, "among">): SeenSky

引数

名前型説明
viewpointSkyFromViewpoint

As for skyFrom, and the name of a nearby star.

options (省略可)Omit<SkyFromOptions, "among">

magnitude, the faintest apparent magnitude to include. among is the table: it is set here.

戻り値

SeenSky

A new list of seen stars, brightest first, with a skipped count.

例

import { skyFromWithNearby } from "@johnmorrisdotca/hoshi-stars/sky-from/nearby";

const sky = skyFromWithNearby("Proxima Centauri", { magnitude: 0 });
console.log(sky.map((star) => star.name ?? star.designation));
[ 'Rigil Kentaurus', 'Toliman', 'Sirius', 'Canopus', 'Arcturus' ]

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

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

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