本文へ移動

Hoshi Stars星

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

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

目次

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

greenwichSiderealTime関数

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

The Greenwich mean sidereal time: how far the Earth has turned against the stars, as the right ascension on the meridian of Greenwich, in degrees (Meeus 12.4, the IAU 1982 expression). It uses UT, which is UTC to under a second, and is the mean time, without the nutation term (at most about 1.1 seconds of time, 17 arc-seconds).

インポート

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

定義

function greenwichSiderealTime(when: When): number

引数

名前型説明
whenWhen

The moment, a Date or milliseconds since 1970.

戻り値

number

Degrees, 0 up to but not including 360. Divide by 15 for hours.

例

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

// Meeus example 12.a: 1987 April 10 at 0h UT is 13h10m46.3668s, 197.693195 degrees
console.log(greenwichSiderealTime(Date.UTC(1987, 3, 10)).toFixed(6));
197.693195

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

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

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