Skip to the content

Wakusei Planets惑星

The Sun, the planets and their moons as a clean line drawing, a shaded realistic drawing or a painted surface map, with real sizes, tilt and rotation, and the moons where they are at any date and time.

Wakusei is the Japanese word 惑星 for a planet. About the name

Contents

Reference · The bodies nearest to a body on a date, in the sky or in space, and when two bodies come closest: nearest, within, closestApproach and conjunctions

ConjunctionOptionstype

The options of conjunctions.

Import it

import type { ConjunctionOptions } from "@johnmorrisdotca/wakusei-planets/nearest";

Definition

interface ConjunctionOptions extends ApproachOptions {
    within?: number;
    bodies?: readonly BodyId[];
}

Members

NameTypeDescription
within (optional)number | undefined

Only closest approaches this small: degrees for by: "sky" (default 5), kilometres for by: "space" (default: all).

bodies (optional)readonly BodyId[] | undefined

The bodies to pair up. Default: the Sun and Mercury to Neptune, without the Earth's own place.

fromWhen

The start of the span, a Date or milliseconds since 1970 (UTC).

toWhen

The end of the span.

by (optional)"sky" | "space" | undefined

"sky" (default) or "space", as in nearest.

observer (optional)Viewpoint | undefined

Where the sky is seen from; ignored by by: "space". Default: the Earth's centre.

Examples

import { conjunctions, type ConjunctionOptions } from "@johnmorrisdotca/wakusei-planets/nearest";

const options: ConjunctionOptions = { from: Date.UTC(2020, 11, 1), to: Date.UTC(2021, 0, 1), bodies: ["jupiter", "saturn"], within: 1 };
console.log(conjunctions(options).length);
1

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/wakusei-planets 0.24.0.