localSiderealTime関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The local mean sidereal time: the right ascension that is on your meridian, due south or north of you, in degrees. A star with this right ascension is crossing the meridian.
インポート
import { localSiderealTime } from "@johnmorrisdotca/hoshi-stars/sky";
定義
function localSiderealTime(when: When, longitude: number): number
引数
| 名前 | 型 | 説明 |
|---|---|---|
when | When | The moment, a |
longitude | number | Degrees east of Greenwich (west is negative). Any finite number. |
戻り値
number
Degrees, 0 up to but not including 360.
例
import { localSiderealTime } from "@johnmorrisdotca/hoshi-stars/sky";
// Greenwich's 197.693195 degrees at 0h UT, 1987 April 10, and Washington is 77.07 degrees west of it
console.log(localSiderealTime(Date.UTC(1987, 3, 10), -77.0656).toFixed(3)); // 120.628120.628出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。