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

createSatellitesfunction

Make a group of satellites from their element sets. Each starts SGP4 once here; one that does not (bad numbers, decayed at its own epoch) is listed in refused and left out. It needs satellite.js (MIT, an optional peer dependency) and imports in a browser or on a server.

Import it

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

Definition

function createSatellites(sets: readonly ElementSet[], options?: SatellitesOptions): Satellites

Parameters

NameTypeDescription
setsreadonly ElementSet[]

Element sets in CelesTrak's JSON format (ElementSet), fetched by your page.

options (optional)SatellitesOptions

maxAgeDays: the oldest an element set may be at the moment shown.

Returns

Satellites

The group: at(ms, out) for positions, exact, orbit, info, and counters.

Examples

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

const group = createSatellites([
  {
    OBJECT_NAME: "ISS (ZARYA)",
    OBJECT_ID: "1998-067A",
    EPOCH: "2026-11-02T10:25:21.580320",
    MEAN_MOTION: 15.49150046,
    ECCENTRICITY: 0.0007139,
    INCLINATION: 51.6332,
    RA_OF_ASC_NODE: 335.9757,
    ARG_OF_PERICENTER: 339.3739,
    MEAN_ANOMALY: 20.6961,
    NORAD_CAT_ID: 25544,
    BSTAR: 0.00012,
    MEAN_MOTION_DOT: 0.0001,
    MEAN_MOTION_DDOT: 0,
  },
]);
const noon = Date.UTC(2026, 10, 2, 12);
console.log(group.count, group.info(0, noon)?.altitudeKm.toFixed(0));
1 422

What it prints (run when this page was built)

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