リファレンス · 今夜見える星 (場所と時刻から、地平線の上にあり、太陽の光・空の明るさ・大気の減光のあとでも見える星を、薄明の種類、高度と方位、見やすさつきで)
sunPosition関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The Sun's right ascension and declination of date, in degrees, from the Almanac's low-precision formula (0.01 degree from 1950 to 2050). No clock is read: the moment is passed in.
インポート
import { sunPosition } from "@johnmorrisdotca/hoshi-stars/tonight";
定義
function sunPosition(when: When): { rightAscension: number; declination: number; }
引数
| 名前 | 型 | 説明 |
|---|---|---|
when | When | The moment, a |
戻り値
{ rightAscension: number; declination: number; }
{ rightAscension, declination } of the equinox of the date, in degrees.
例
import { sunPosition } from "@johnmorrisdotca/hoshi-stars/tonight";
// the June solstice: the Sun is as far north as it gets, 23.4 degrees
console.log(sunPosition(Date.UTC(2026, 5, 21, 8, 24)).declination.toFixed(1)); // 23.423.4出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。