本文へ移動

Hoshi Stars星

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

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

目次

リファレンス · 自分の空 (場所と時刻から高度と方位)

horizontal関数

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

Where a star (or any J2000 position) stands in the sky of a place on Earth at a moment: its altitude above the horizon and azimuth from north through east. The position is carried from J2000 to the equinox of the date (precess), the hour angle comes from the local mean sidereal time, and the horizon formulas are Meeus's (chapter 13). The result is geometric (no refraction) unless you ask for it. UTC stands for UT; nutation, aberration and parallax are left out, so it is good to about an arc-minute, far finer than the eye. The star's own proper motion is not added: pass starPosition(star, when) if you want it.

インポート

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

定義

function horizontal(position: SkyPoint, observer: Observer, when: When, options?: HorizontalOptions): Horizontal

引数

名前型説明
positionSkyPoint

A right ascension and declination in degrees, J2000 (the catalogue's frame), or of the date with equinox: "date".

observerObserver

Latitude north and longitude east in degrees, and optionally heightM.

whenWhen

The moment, a Date or milliseconds since 1970.

options (省略可)HorizontalOptions

equinox, and refraction with pressureHpa and temperatureC.

戻り値

Horizontal

{ altitude, azimuth } in degrees.

例

import { starByName, starPosition } from "@johnmorrisdotca/hoshi-stars";
import { horizontal } from "@johnmorrisdotca/hoshi-stars/sky";

const polaris = starPosition(starByName("Polaris")!);
const view = horizontal(polaris, { latitude: 49.28, longitude: -123.12 }, new Date("2026-11-08T06:00:00Z"));
console.log(view.altitude.toFixed(1)); // 49.8: within a degree of the latitude, 49.28
49.8

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

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

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