本文へ移動

Hoshi Stars星

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

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

目次

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

HorizontalOptions型

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

How to read the position and whether to bend the light.

インポート

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

定義

interface HorizontalOptions {
    equinox?: "J2000" | "date";
    refraction?: boolean;
    pressureHpa?: number;
    temperatureC?: number;
}

メンバー

名前型説明
equinox (省略可)"J2000" | "date" | undefined

"J2000" (the default) when the position is a catalogue position, which is turned to the equinox of the date first; "date" when it is already the mean equator and equinox of the moment (planets are, from an almanac).

refraction (省略可)boolean | undefined

True to lift the altitude by the air's bending of light (Saemundsson's formula, Meeus 16.4): about 0.48 degrees at the horizon, 0.02 at 45 degrees up. Default false, the geometric altitude. Not applied below -1 degree, where the formula stops being true.

pressureHpa (省略可)number | undefined

Air pressure in hectopascals for the refraction; default 1010 (a standard sea-level day). Only used with refraction.

temperatureC (省略可)number | undefined

Air temperature in degrees Celsius for the refraction; default 10. Only used with refraction.

例

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

const options: HorizontalOptions = { refraction: true, pressureHpa: 900, temperatureC: -5 };
console.log(options.refraction);
true

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

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

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