heliocentricModel関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The theory that heliocentric(planet, ms) answers with, given the tables loaded now: VSOP87B for Mercury to Neptune, a fitted Chebyshev table where one covers the moment, else
osculating elements (a dwarf planet) or JPL's approximate elements (Pluto outside its table). worstArcseconds is the fitted table's measured worst on samples held back from
the fit, not a bound for every date; null where no such measurement exists. Ask again after importing a table or for another moment.
インポート
import { heliocentricModel } from "@johnmorrisdotca/wakusei-planets";
定義
function heliocentricModel(planet: HostId, ms: number): { theory: "vsop87b" | "chebyshev" | "osculating-elements" | "approximate-elements"; worstArcseconds: number | null; }
引数
| 名前 | 型 | 説明 |
|---|---|---|
planet | HostId | A planet or dwarf planet. |
ms | number | The moment in milliseconds since 1970 (UTC). |
戻り値
{ theory: "vsop87b" | "chebyshev" | "osculating-elements" | "approximate-elements"; worstArcseconds: number | null; }
The theory's name and its measured worst error in arc-seconds, or null.
例
import { heliocentricModel } from "@johnmorrisdotca/wakusei-planets";
console.log(heliocentricModel("pluto", Date.UTC(2026, 0, 1)));{ theory: 'chebyshev', worstArcseconds: 0.14637 }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。