本文へ移動

Chikyu Earth地球

世界の国の輪郭を線で描いた地球儀です。地球と同じ速さで回ります。宇宙から見たような地球と、好きな場所の目印も使えます。

「地球」(ちきゅう) は、私たちが住む星の名前です。 名前について(英語)

目次

リファレンス · 人工衛星: 軌道要素から位置を計算

CatalogueRow型

リファレンスの説明と例は英語です。見出しと目次は日本語です。

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 type { CatalogueRow } from "@johnmorrisdotca/chikyu-earth/satellites";

定義

interface CatalogueRow {
    kind: "satellite" | "group";
    id: string;
    noradId?: number;
    names: {
        en: string;
        ja: string;
        reading?: string;
    };
    group?: string;
    orbit: OrbitKind;
    aka?: readonly string[];
}

メンバー

名前型説明
kind"group" | "satellite"

group for a button's group, satellite for one named satellite.

idstring

The group's id, or the satellite's NORAD number as a string.

noradId (省略可)number | undefined

The NORAD catalogue number. Only a satellite has one.

names{ en: string; ja: string; reading?: string; }

Names in both languages. ja is the short Japanese name where SHORT_NAMES has one, and otherwise the English name: a name such as Sentinel-2A is written the same way in Japanese. reading is hiragana for a Japanese name that is not already kana.

group (省略可)string | undefined

The group's id. Only a satellite has one.

orbitOrbitKind
aka (省略可)readonly string[] | undefined

Other names already written in the catalogue, such as HST for Hubble. Absent when there are none.

例

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);
気象衛星

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/chikyu-earth 0.51.1 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。