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 · The Earth-orbit catalogue: orbit class, object kind, colours, fleets and the packed file format (no data)

fleetOffunction

The fleet an object belongs to, from its name and kind, or undefined.

Import it

import { fleetOf } from "@johnmorrisdotca/chikyu-earth/catalogue";

Definition

function fleetOf(name: string, kind?: ObjectKind): string | undefined

Parameters

NameTypeDescription
namestring

The object's name as the catalogue writes it, in any case.

kind (optional)ObjectKind | undefined

Its kind; a rocket body, debris or unknown object is in no fleet. Left out, the name alone decides.

Returns

string | undefined

The fleet's id, or undefined when the object belongs to none.

Examples

import { fleetOf } from "@johnmorrisdotca/chikyu-earth/catalogue";

console.log(fleetOf("STARLINK-1007", "PAY"), fleetOf("IRIDIUM 33 DEB", "DEB"), fleetOf("NAVSTAR 48 (USA 151)"), fleetOf("HST"));
starlink undefined gps undefined

What it prints (run when this page was built)

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