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

withinfunction

Every body inside a radius of a body on a date, nearest first: nearest with no limit on how many. The radius is degrees for by: "sky" and kilometres for by: "space".

Import it

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

Definition

function within(target: BodyId, radius: number, options: Omit<NearestOptions, "count" | "within"> & { by: "space"; }): SpaceNeighbour[]
function within(target: BodyId, radius: number, options?: Omit<NearestOptions, "count" | "within"> & { by?: "sky"; }): SkyNeighbour[]
function within(target: BodyId, radius: number, options: Omit<NearestOptions, "count" | "within">): SkyNeighbour[] | SpaceNeighbour[]

Parameters

NameTypeDescription
targetBodyId

The body to look around.

radiusnumber

How close, in degrees (the sky) or kilometres (space).

optionsOmit<NearestOptions, "count" | "within">

The same as nearest, without count and within.

Returns

SpaceNeighbour[] | SkyNeighbour[]

The bodies inside the radius, nearest first.

Examples

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

const date = Date.UTC(2023, 2, 2, 0);
console.log(within("venus", 1, { date }).map((row) => `${row.id} ${row.angle.toFixed(2)}`).join(", "));
console.log(within("jupiter", 1_000_000, { by: "space", kind: "moon", date }).map((row) => row.id).join(", "));
europa 0.53, jupiter 0.53, io 0.55, ganymede 0.55, callisto 0.58
io, europa

What it prints (run when this page was built)

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