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 · Passes: when a satellite crosses the sky over a place

PassPointtype

One moment of a pass: when, which way, how high and how far.

Import it

import type { PassPoint } from "@johnmorrisdotca/chikyu-earth/passes";

Definition

interface PassPoint {
    ms: number;
    azimuth: number;
    compass: Compass;
    altitude: number;
    rangeKm: number;
}

Members

NameTypeDescription
msnumber

The moment, milliseconds since the Unix epoch (UTC; add the place's own offset for local time).

azimuthnumber

Degrees clockwise from north.

compassCompass

The compass word for azimuth.

altitudenumber

Degrees above the horizon (geometric: no refraction).

rangeKmnumber

Distance from the watcher, kilometres.

Examples

import type { PassPoint } from "@johnmorrisdotca/chikyu-earth/passes";

const describe = (point: PassPoint): string => `${point.compass} ${point.altitude.toFixed(0)} degrees`;
console.log(typeof describe);
function

What it prints (run when this page was built)

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