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

ownerCountryfunction

The country of a satellite's owner code as an ISO 3166-1 alpha-2 code (PRC is CN, PAKI is PK, US is US), or undefined for an organisation, several countries, an ambiguous owner or a code that is not in the list.

Import it

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

Also exported from: @johnmorrisdotca/chikyu-earth/catalogue

Definition

function ownerCountry(code: string | null | undefined): string | undefined

Parameters

NameTypeDescription
codestring | null | undefined

The owner code as the catalogue writes it (COUNTRY_CODE or OWNER): case and spaces round it do not matter.

Returns

string | undefined

The two-letter country code, or undefined.

Examples

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

console.log(ownerCountry("PRC"), ownerCountry("PAKI"), ownerCountry("ESA"), ownerCountry("XYZ"));
CN PK undefined undefined

What it prints (run when this page was built)

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