本文へ移動

Wakusei Planets惑星

太陽・惑星・衛星を、線画、陰影つきの絵、表面の地図で描きます。実際の大きさ・傾き・自転つきで、任意の日時の衛星の位置も分かります。

「惑星」(わくせい) は、太陽のまわりを回る大きな星のことです。 名前について(英語)

目次

リファレンス · データ・線画・位置

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; }

引数

名前型説明
planetHostId

A planet or dwarf planet.

msnumber

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 }

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

ソースを見るGitHub で編集@johnmorrisdotca/wakusei-planets 0.24.0 のソースから作成しました。

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