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)

PackedCataloguetype

A packed file, read: the columns as typed arrays (nothing is copied into objects until you ask) and the names.

Import it

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

Definition

interface PackedCatalogue {
    meta: Readonly<Record<string, string>>;
    count: number;
    norad: Uint32Array;
    meanMotion: Float64Array;
    eccentricity: Float32Array;
    inclination: Float32Array;
    raan: Float32Array;
    argPerigee: Float32Array;
    meanAnomaly: Float32Array;
    kind: Uint8Array;
    epochMs(i: number): number;
    kindAt(i: number): ObjectKind;
    nameAt(i: number): string;
    setAt(i: number): ElementSet;
    recordAt(i: number): CatalogueRecord;
    sets(): ElementSet[];
    records(): CatalogueRecord[];
}

Members

NameTypeDescription
metaReadonly<Record<string, string>>

The words kept with the file.

countnumber
noradUint32Array<ArrayBufferLike>

The catalogue numbers, 32-bit.

meanMotionFloat64Array<ArrayBufferLike>

Mean motion, revolutions a day.

eccentricityFloat32Array<ArrayBufferLike>
inclinationFloat32Array<ArrayBufferLike>

Degrees.

raanFloat32Array<ArrayBufferLike>

Degrees.

argPerigeeFloat32Array<ArrayBufferLike>

Degrees.

meanAnomalyFloat32Array<ArrayBufferLike>

Degrees.

kindUint8Array<ArrayBufferLike>

Index into OBJECT_KINDS: 0 payload, 1 rocket body, 2 debris, 3 unknown.

epochMs(i: number): number

The epoch of record i, milliseconds since 1970 (the file keeps microseconds).

kindAt(i: number): ObjectKind

The kind of record i.

nameAt(i: number): string

The name of record i.

setAt(i: number): ElementSet

Record i as an element set the satellites code reads.

recordAt(i: number): CatalogueRecord

Record i with what the catalogue says of it.

sets(): ElementSet[]

Every record as an element set.

records(): CatalogueRecord[]

Every record.

Examples

import { packCatalogue, unpackCatalogue, type PackedCatalogue } from "@johnmorrisdotca/chikyu-earth/catalogue";

const empty: PackedCatalogue = unpackCatalogue(packCatalogue([], { group: "none" }));
console.log(empty.count, empty.sets().length);
0 0

What it prints (run when this page was built)

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