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

Approachtype

The closest two bodies come in a span: the moment of the minimum and the separation then.

Import it

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

Definition

interface Approach {
    a: BodyId;
    b: BodyId;
    time: Date;
    angle?: number;
    uncertaintyArcseconds?: number;
    distanceKm?: number;
    distanceAu?: number;
    uncertaintyKm?: number;
    uncertaintySeconds: number;
    atEdge: boolean;
}

Members

NameTypeDescription
aBodyId
bBodyId
timeDate

The moment of the minimum, to about a second of time.

angle (optional)number | undefined

Degrees, for by: "sky".

uncertaintyArcseconds (optional)number | undefined

The accuracy to expect of angle, arc-seconds, for by: "sky".

distanceKm (optional)number | undefined

Kilometres, for by: "space".

distanceAu (optional)number | undefined

Astronomical units, for by: "space".

uncertaintyKm (optional)number | undefined

The accuracy to expect of distanceKm, for by: "space".

uncertaintySecondsnumber

How far the moment may be off, in seconds: the position's accuracy over how fast the two move past each other.

atEdgeboolean

True when the smallest separation in the span is at its start or end, not a minimum inside it.

Examples

import { closestApproach, type Approach } from "@johnmorrisdotca/wakusei-planets/nearest";

const found: Approach = closestApproach("jupiter", "saturn", { from: Date.UTC(2020, 11, 1), to: Date.UTC(2021, 0, 1) });
console.log(found.time.toISOString(), found.angle?.toFixed(2));
2020-12-21T18:25:35.939Z 0.10

What it prints (run when this page was built)

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