Reference · Satellites: orbital elements in, positions out
CatalogueRowtype
One plain row a page can index, for its own search box. No DOM: a group or a satellite, with both languages on every row.
Import it
import type { CatalogueRow } from "@johnmorrisdotca/chikyu-earth/satellites";
Definition
interface CatalogueRow {
kind: "satellite" | "group";
id: string;
noradId?: number;
names: {
en: string;
ja: string;
reading?: string;
};
group?: string;
orbit: OrbitKind;
aka?: readonly string[];
}
Members
| Name | Type | Description |
|---|---|---|
kind | "group" | "satellite" |
|
id | string | The group's id, or the satellite's NORAD number as a string. |
noradId (optional) | number | undefined | The NORAD catalogue number. Only a satellite has one. |
names | { en: string; ja: string; reading?: string; } | Names in both languages. |
group (optional) | string | undefined | The group's id. Only a satellite has one. |
orbit | OrbitKind | |
aka (optional) | readonly string[] | undefined | Other names already written in the catalogue, such as HST for Hubble. Absent when there are none. |
Examples
import type { CatalogueRow } from "@johnmorrisdotca/chikyu-earth/satellites";
const row: CatalogueRow = { kind: "group", id: "weather", names: { en: "Weather", ja: "気象衛星" }, orbit: "mixed" };
console.log(row.names.ja);気象衛星What it prints (run when this page was built)