本文へ移動

Hoshi Stars星

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

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

目次

リファレンス · 星座の境界と、ある点がどの星座にあるか

constellationAt関数

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

The constellation a point on the sky is in. The position is precessed to the equator and equinox of B1875.0, where the IAU's boundaries (Delporte 1930) are defined, and looked up in N. G. Roman's table of them (1987, PASP 99, 695). Coordinates are J2000, the frame of this package's stars, unless when says the position is of date. The constellations tile the sky, so every point is in exactly one; Serpens is one constellation (Ser) although it is in two pieces.

A point within a few arc-seconds of a boundary can fall either side of it: Roman's table has the boundaries to a hundredth of a second of time and the precession here is IAU 1976, not the Newcomb-based one of 1930.

インポート

import { constellationAt } from "@johnmorrisdotca/hoshi-stars/boundaries";

定義

function constellationAt(position: { rightAscension: number; declination: number; }, when?: When): Constellation

引数

名前型説明
position{ rightAscension: number; declination: number; }

rightAscension in degrees (any real number, taken modulo 360) and declination in degrees, -90 to 90.

when (省略可)When | undefined

The equinox the coordinates are on: a Date or milliseconds since 1970 (UTC), for a position of date such as a telescope's. J2000 when left out.

戻り値

Constellation

The shared, frozen constellation.

例

import { starByName } from "@johnmorrisdotca/hoshi-stars";
import { constellationAt } from "@johnmorrisdotca/hoshi-stars/boundaries";

console.log(constellationAt(starByName("Betelgeuse")!).name);                       // Orion
console.log(constellationAt({ rightAscension: 0, declination: 90 }).abbreviation);   // UMi
console.log(constellationAt({ rightAscension: 83.8, declination: -5.4 }, Date.UTC(2026, 10, 8)).english);
Orion
UMi
Hunter

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

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

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