Skip to the content

Chikyu Earth地球

A line-drawn globe of the world's countries that turns at the Earth's own rate, with an optional realistic Earth from space and markers for any place.

Chikyu is the Japanese word 地球 for the Earth. About the name

Contents

Reference · Satellites: orbital elements in, positions out

MissionPositiontype

Where a craft was at a moment: over the ground (WGS 84), how high, how fast, and which element set the place came from.

Import it

import type { MissionPosition } from "@johnmorrisdotca/chikyu-earth/satellites";

Definition

interface MissionPosition {
    latitude: number;
    longitude: number;
    altitudeKm: number;
    speedKmS: number;
    epochMs: number;
}

Members

NameTypeDescription
latitudenumber

Degrees north.

longitudenumber

Degrees east, -180 to 180.

altitudeKmnumber

Height above the WGS 84 ellipsoid, kilometres.

speedKmSnumber

Speed against the stars, kilometres a second.

epochMsnumber

The moment of the element set used, milliseconds since the Unix epoch.

Examples

import type { MissionPosition } from "@johnmorrisdotca/chikyu-earth/satellites";

const describe = (place: MissionPosition): string => `${place.latitude.toFixed(1)}, ${place.longitude.toFixed(1)}, ${place.altitudeKm.toFixed(0)} km`;
console.log(describe({ latitude: 28.5, longitude: -80.6, altitudeKm: 300, speedKmS: 7.7, epochMs: 0 }));
28.5, -80.6, 300 km

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/chikyu-earth 0.51.1.