@johnmorrisdotca/chikyu-earth 0.11.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/NOTICE.md +3 -2
- package/README.md +1 -1
- package/dist/satellites/catalogue.d.ts +109 -0
- package/dist/satellites/catalogue.js +249 -0
- package/dist/satellites/index.d.ts +1 -0
- package/dist/satellites/index.js +1 -0
- package/dist/space/scene.js +10 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.12.0 - 2026-11-03
|
|
4
|
+
|
|
5
|
+
More satellites to follow and ride (MODULES-261, steps 1 and 2): where the data may come from, a curated catalogue, and fourteen groups in the demo.
|
|
6
|
+
|
|
7
|
+
- **`docs/satellite-sources.md`: every source's terms read and quoted** (CelesTrak, Space-Track, SatNOGS DB, N2YO, AMSAT, NASA and ESA, Wikidata), each with a tier (green, grey, red) and whether it may be fetched by the visitor's own browser, snapshotted on the demo site, or redistributed in the package. CelesTrak stays grey; Space-Track's blanket approval for passing on basic data (TLEs, OMMs) with a citation is noted; the decisions that are John's are one ticket (MODULES-333). The package still ships no orbital elements.
|
|
8
|
+
- **A curated catalogue** in `@johnmorrisdotca/chikyu-earth/satellites`: `SATELLITE_GROUPS` (fourteen groups: stations, famous, science, Earth observation, weather, geostationary, GPS, GLONASS, Galileo, BeiDou, amateur radio, OneWeb, Iridium, Starlink, each with its CelesTrak list or catalogue numbers, an orbit kind, whether it sits still, and a line in English and Japanese), `CATALOGUE` (about forty satellites by NORAD number, from the ISS and Tiangong to Hubble and Vanguard 1, the oldest satellite still in orbit, each with a line in English and Japanese), `findInCatalogue` and `catalogueEntry`. JWST is left out on purpose: it is not in Earth orbit. No elements in it.
|
|
9
|
+
- **The demo's groups are buttons** (a coloured dot each; a group switched on says what it is, and the demo zooms out to a group that goes far from the Earth), with **Find** (a search box over the catalogue and the names of every satellite in the demo's files, plus ISS and Tiangong) and two new rides, **The chosen satellite** and **One from the last group**. The address keeps the groups (`sats=gps,weather`), the chosen satellite (`sat=<NORAD number>`) and the ride (`ride=chosen`). A chosen satellite shows its catalogue line beside its height, speed and age.
|
|
10
|
+
- **`demo/elements/`** (demo site only): one file for each group, made from one download of each CelesTrak list on 2026-11-03, `manifest.json` and `index.json`; `scripts/elements.ts` makes them from downloaded lists and fetches nothing. Starlink stays at every fifth satellite (about 2,200 dots in one draw call); the others are whole (the geostationary list has 569).
|
|
11
|
+
- **Moons that have left the view are let go even when nothing else is drawn.** The space view let go of a moon four seconds after it left the view, but only when the next draw happened; a view at rest draws nothing, so the moons of Jupiter and Saturn were kept (their shaders and pictures) until someone touched the view. It now asks for one more draw when the first of them is due. Test: `e2e/space.gl.ts`. This is why the space soak failed in CI on "programs" since 0.11.0 (the count was never growing: the moons kept after leaving the view made it differ from one moment to the next); the soak now also looks at the Earth, not at whichever body the walk left it on, before it counts.
|
|
12
|
+
- Tests: the catalogue and the file maker (`test/catalogue.test.ts`, `test/elements.test.ts`) and the demo's groups, Find and Ride on **made-up** element files served in place of the demo's own, with a check that nothing is asked of any other site (`e2e/groups.gl.ts`).
|
|
13
|
+
|
|
3
14
|
## 0.11.0 - 2026-11-03
|
|
4
15
|
|
|
5
16
|
The real Sun, planets, Pluto and moons in the space view.
|
package/NOTICE.md
CHANGED
|
@@ -49,11 +49,12 @@ bundle or ship it. The planets are drawn as plain colours, from no picture.
|
|
|
49
49
|
`<chikyu-space>` draws satellites from orbital elements that **your page** passes in; this package fetches and ships none. SGP4 is run by **satellite.js** (https://github.com/shashwatak/satellite-js, MIT, by
|
|
50
50
|
Shashwat Kandadai and contributors), the page's own optional peer dependency: this package does not bundle or ship it.
|
|
51
51
|
|
|
52
|
-
The demo's
|
|
52
|
+
The demo's files `demo/elements/*.json` (the demo site only, not the npm package) hold element sets, one file for each of fourteen groups, from one download of each of CelesTrak's lists on 2026-11-03 (about 16:00 UTC), with every fifth
|
|
53
|
+
Starlink satellite kept (2,231 of 11,155), within the same usage policy, credited the same way and with the same grey tier. `demo/celestrak-snapshot.json` below is the older snapshot of 2026-11-02 that the embed page and some tests still read. It holds element sets from **CelesTrak** (https://celestrak.org, T.S. Kelso), which serves the U.S. Space Force's
|
|
53
54
|
18th Space Defense Squadron's general-perturbation (GP) data and, for Starlink, SpaceX's own supplemental elements. It is one download of the `stations` list and one of the `starlink` list on 2026-11-02
|
|
54
55
|
(about 17:07 UTC), within CelesTrak's usage policy (https://celestrak.org/usage-policy.php, read 2026-11-02: one download per update per list, nothing fetched at a visitor's request), with every fifth Starlink satellite
|
|
55
56
|
kept (2,232 of 11,156), as numbers only. CelesTrak states no licence or credit rule for the data; it is credited on the demo page, and the demo shows the age of the elements. The tier is "grey" in John's
|
|
56
|
-
terms: a snapshot with credit, never a live fetch. Space-Track's data are not used
|
|
57
|
+
terms: a snapshot with credit, never a live fetch. The catalogue (`src/satellites/catalogue.ts`) holds names, NORAD numbers and orbit kinds, which are facts, and lines written for this package in its own words (English and Japanese); nothing is copied from NASA, ESA, Wikipedia or any other page. Space-Track's data are not used (it needs an account; its user agreement allows passing on basic data such as TLEs and OMMs only with a citation). docs/satellite-sources.md has every source's terms, read 2026-11-03.
|
|
57
58
|
|
|
58
59
|
## Sun position
|
|
59
60
|
|
package/README.md
CHANGED
|
@@ -157,7 +157,7 @@ computed in the browser by astronomy-engine (MIT), nothing is fetched. [docs/spa
|
|
|
157
157
|
|
|
158
158
|
## Satellites
|
|
159
159
|
|
|
160
|
-
The ISS, a space station or thousands of Starlink satellites at the places SGP4 puts them for the date and time shown, on `<chikyu-space>`: a group is one draw call however many it holds, press one to get its name, height and speed, and its orbit is drawn. Chikyu fetches nothing: your page passes in orbital elements (CelesTrak's JSON, within its usage policy), and satellite.js (MIT, an optional peer) does the maths about once a second, with every frame between interpolated. A group is hidden while the clock runs faster than 60 times real time. The guide has the rules for getting elements and the budget, each line tested: [satellites guide](docs/guides/satellites.md), [docs/satellites.md](docs/satellites.md).
|
|
160
|
+
The ISS, a space station or thousands of Starlink satellites at the places SGP4 puts them for the date and time shown, on `<chikyu-space>`: a group is one draw call however many it holds, press one to get its name, height and speed, and its orbit is drawn. Chikyu fetches nothing: your page passes in orbital elements (CelesTrak's JSON, within its usage policy), and satellite.js (MIT, an optional peer) does the maths about once a second, with every frame between interpolated. A group is hidden while the clock runs faster than 60 times real time. A small catalogue (`SATELLITE_GROUPS`, `CATALOGUE`, `findInCatalogue`) names fourteen groups (stations, weather, GPS, Galileo, OneWeb and more) and about forty satellites worth following, with no elements in it. The guide has the rules for getting elements and the budget, each line tested: [satellites guide](docs/guides/satellites.md), [docs/satellites.md](docs/satellites.md).
|
|
161
161
|
|
|
162
162
|
<p align="center"><img alt="The ISS, ringed, over South Africa on 3 November 2026, with its orbit and the stations' orbits" src="docs/images/space-sat-iss.png" width="420"></p>
|
|
163
163
|
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What kind of orbit a satellite or a group is in: `leo` (low, below 2,000 km), `meo` (medium, up to about 35,000 km: the navigation satellites), `geo` (about 35,786 km up, where a satellite goes round once
|
|
3
|
+
* a day; over the equator it sits still over one place), `heo` (a long oval that swings far out) or `mixed` (a group with more than one kind).
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```ts
|
|
7
|
+
* import type { OrbitKind } from "@johnmorrisdotca/chikyu-earth/satellites";
|
|
8
|
+
*
|
|
9
|
+
* const sitsStill = (orbit: OrbitKind): boolean => orbit === "geo";
|
|
10
|
+
* console.log(sitsStill("geo"));
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export type OrbitKind = "leo" | "meo" | "geo" | "heo" | "mixed";
|
|
14
|
+
/**
|
|
15
|
+
* A group of satellites the demo offers as one button: what it is, in English and Japanese, and where its elements come from (a CelesTrak list name, or single catalogue numbers).
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* import { SATELLITE_GROUPS } from "@johnmorrisdotca/chikyu-earth/satellites";
|
|
20
|
+
*
|
|
21
|
+
* const gps = SATELLITE_GROUPS.find((group) => group.id === "gps");
|
|
22
|
+
* console.log(gps?.celestrak, gps?.orbit);
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export interface SatelliteGroupInfo {
|
|
26
|
+
/** A short name for an address or a button, lower case with hyphens. */
|
|
27
|
+
id: string;
|
|
28
|
+
label: string;
|
|
29
|
+
labelJa: string;
|
|
30
|
+
/** A line on what the group is. */
|
|
31
|
+
about: string;
|
|
32
|
+
aboutJa: string;
|
|
33
|
+
orbit: OrbitKind;
|
|
34
|
+
/** True when the satellites of this group sit still over one place (geostationary), so a reader is not surprised that they do not move. */
|
|
35
|
+
still: boolean;
|
|
36
|
+
/** The name of the CelesTrak list (`GROUP=` in its address) that holds the group, when there is one. */
|
|
37
|
+
celestrak?: string;
|
|
38
|
+
/** Single NORAD catalogue numbers to ask for one by one, when the group has no list of its own. */
|
|
39
|
+
catnr?: readonly number[];
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* One satellite worth naming: its NORAD catalogue number (the number every source uses), its usual name, the group it is shown in, its orbit and a line on what it is.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* import { CATALOGUE } from "@johnmorrisdotca/chikyu-earth/satellites";
|
|
47
|
+
*
|
|
48
|
+
* const oldest = CATALOGUE.find((entry) => entry.noradId === 5);
|
|
49
|
+
* console.log(oldest?.name, oldest?.about);
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
export interface CatalogueEntry {
|
|
53
|
+
noradId: number;
|
|
54
|
+
name: string;
|
|
55
|
+
group: string;
|
|
56
|
+
orbit: OrbitKind;
|
|
57
|
+
about: string;
|
|
58
|
+
aboutJa: string;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* The groups, in the order the demo shows them. Each one is a CelesTrak list or a few single numbers; the elements are fetched by the page (or the demo's scheduled build), never by the package.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```ts
|
|
65
|
+
* import { SATELLITE_GROUPS } from "@johnmorrisdotca/chikyu-earth/satellites";
|
|
66
|
+
*
|
|
67
|
+
* console.log(SATELLITE_GROUPS.map((group) => group.label).join(", "));
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
export declare const SATELLITE_GROUPS: readonly SatelliteGroupInfo[];
|
|
71
|
+
/**
|
|
72
|
+
* The satellites worth naming, with the NORAD number every source uses for them: the stations, the famous ones, and a few of each group.
|
|
73
|
+
* JWST is not here on purpose: it is not in Earth orbit (it circles the Sun about 1.5 million km out, at the second Lagrange point).
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```ts
|
|
77
|
+
* import { CATALOGUE } from "@johnmorrisdotca/chikyu-earth/satellites";
|
|
78
|
+
*
|
|
79
|
+
* console.log(CATALOGUE.filter((entry) => entry.group === "stations").map((entry) => entry.name));
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
export declare const CATALOGUE: readonly CatalogueEntry[];
|
|
83
|
+
/**
|
|
84
|
+
* Find catalogue entries by name, group name or NORAD number: "hubble", "hst", "25544" or "weather". Matching ignores case, spaces and punctuation, and a name that starts with the text comes before one that only has it inside.
|
|
85
|
+
*
|
|
86
|
+
* @param text - What the reader typed.
|
|
87
|
+
* @param limit - The most entries to give back (8 by default).
|
|
88
|
+
* @returns The matching entries, best first; none for empty text.
|
|
89
|
+
* @example
|
|
90
|
+
* ```ts
|
|
91
|
+
* import { findInCatalogue } from "@johnmorrisdotca/chikyu-earth/satellites";
|
|
92
|
+
*
|
|
93
|
+
* console.log(findInCatalogue("sentinel 2").map((entry) => entry.name));
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
96
|
+
export declare function findInCatalogue(text: string, limit?: number): CatalogueEntry[];
|
|
97
|
+
/**
|
|
98
|
+
* The catalogue entry for a NORAD number, if there is one.
|
|
99
|
+
*
|
|
100
|
+
* @param noradId - The NORAD catalogue number.
|
|
101
|
+
* @returns The entry, or undefined when the catalogue does not name that satellite.
|
|
102
|
+
* @example
|
|
103
|
+
* ```ts
|
|
104
|
+
* import { catalogueEntry } from "@johnmorrisdotca/chikyu-earth/satellites";
|
|
105
|
+
*
|
|
106
|
+
* console.log(catalogueEntry(25544)?.about);
|
|
107
|
+
* ```
|
|
108
|
+
*/
|
|
109
|
+
export declare function catalogueEntry(noradId: number): CatalogueEntry | undefined;
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
// A small curated catalogue of satellites worth following: the groups the demo offers as buttons and the famous ones by name. Facts (names, NORAD numbers, orbit types) and our own words;
|
|
2
|
+
// no orbital elements are here, and nothing is fetched. The elements come from the page (see docs/satellite-sources.md for the sources and their terms).
|
|
3
|
+
/**
|
|
4
|
+
* The groups, in the order the demo shows them. Each one is a CelesTrak list or a few single numbers; the elements are fetched by the page (or the demo's scheduled build), never by the package.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```ts
|
|
8
|
+
* import { SATELLITE_GROUPS } from "@johnmorrisdotca/chikyu-earth/satellites";
|
|
9
|
+
*
|
|
10
|
+
* console.log(SATELLITE_GROUPS.map((group) => group.label).join(", "));
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export const SATELLITE_GROUPS = [
|
|
14
|
+
{
|
|
15
|
+
id: "stations",
|
|
16
|
+
label: "Stations",
|
|
17
|
+
labelJa: "宇宙ステーション",
|
|
18
|
+
about: "The ISS and China's Tiangong, with the craft docked to them. Both circle about 400 km up, once round in about 92 minutes.",
|
|
19
|
+
aboutJa: "ISS と中国の天宮、つながっている宇宙船です。どちらも高さ約400 km を、約92分で1周します。",
|
|
20
|
+
orbit: "leo",
|
|
21
|
+
still: false,
|
|
22
|
+
celestrak: "stations",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
id: "famous",
|
|
26
|
+
label: "Famous",
|
|
27
|
+
labelJa: "有名な衛星",
|
|
28
|
+
about: "Vanguard 1 (the oldest satellite still in orbit), Hubble, the Chandra X-ray telescope, LAGEOS 1 and Envisat.",
|
|
29
|
+
aboutJa: "いちばん古い現役の軌道上の衛星バンガード1、ハッブル、チャンドラ X線望遠鏡、LAGEOS 1、エンビサットです。",
|
|
30
|
+
orbit: "mixed",
|
|
31
|
+
still: false,
|
|
32
|
+
catnr: [5, 8820, 20580, 25867, 27386],
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
id: "science",
|
|
36
|
+
label: "Science",
|
|
37
|
+
labelJa: "科学衛星",
|
|
38
|
+
about: "Space telescopes and research satellites: Hubble, Swift, Fermi, XMM-Newton, the four MMS craft. A few swing out far beyond the rest.",
|
|
39
|
+
aboutJa: "宇宙望遠鏡や研究用の衛星です。ハッブル、Swift、Fermi、XMM-Newton、MMS の4機など。ほかよりずっと遠くまで行くものもあります。",
|
|
40
|
+
orbit: "mixed",
|
|
41
|
+
still: false,
|
|
42
|
+
celestrak: "science",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
id: "earth-observation",
|
|
46
|
+
label: "Earth observation",
|
|
47
|
+
labelJa: "地球観測",
|
|
48
|
+
about: "Satellites that photograph or measure the land, ice and seas: Landsat 8 and 9, the Sentinels, Terra, Aqua and many more. Most circle from pole to pole at about 700 km.",
|
|
49
|
+
aboutJa: "陸、氷、海を撮影したり測ったりする衛星です。Landsat 8 と 9、Sentinel、Terra、Aqua など。多くは高さ約700 km で、極から極へ回ります。",
|
|
50
|
+
orbit: "leo",
|
|
51
|
+
still: false,
|
|
52
|
+
celestrak: "resource",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
id: "weather",
|
|
56
|
+
label: "Weather",
|
|
57
|
+
labelJa: "気象衛星",
|
|
58
|
+
about: "Weather satellites. The polar ones (NOAA-20 and -21, Metop, Fengyun 3) pass over each place twice a day; the others (GOES, Himawari, Meteosat, Fengyun 2 and 4) hang over the equator and sit still.",
|
|
59
|
+
aboutJa: "気象衛星です。極を回るもの (NOAA-20、-21、Metop、風雲3号) は、同じ場所の上を1日に2回通ります。ほかのもの (GOES、ひまわり、Meteosat、風雲2号と4号) は赤道の上で止まって見えます。",
|
|
60
|
+
orbit: "mixed",
|
|
61
|
+
still: false,
|
|
62
|
+
celestrak: "weather",
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
id: "geostationary",
|
|
66
|
+
label: "Geostationary",
|
|
67
|
+
labelJa: "静止衛星",
|
|
68
|
+
about: "Satellites 35,786 km above the equator. They go round once a day, as fast as the Earth turns, so each one sits still over one place.",
|
|
69
|
+
aboutJa: "赤道の上、高さ35,786 km の衛星です。1日に1周して、地球の回る速さと同じなので、1つの場所の上で止まって見えます。",
|
|
70
|
+
orbit: "geo",
|
|
71
|
+
still: true,
|
|
72
|
+
celestrak: "geo",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
id: "gps",
|
|
76
|
+
label: "GPS",
|
|
77
|
+
labelJa: "GPS",
|
|
78
|
+
about: "The American GPS satellites, about 20,200 km up, twice round the Earth a day.",
|
|
79
|
+
aboutJa: "アメリカの GPS 衛星です。高さ約20,200 km で、1日に2周します。",
|
|
80
|
+
orbit: "meo",
|
|
81
|
+
still: false,
|
|
82
|
+
celestrak: "gps-ops",
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
id: "glonass",
|
|
86
|
+
label: "GLONASS",
|
|
87
|
+
labelJa: "GLONASS",
|
|
88
|
+
about: "Russia's GLONASS satellites, about 19,100 km up, once round in about 11 hours 15 minutes.",
|
|
89
|
+
aboutJa: "ロシアの GLONASS 衛星です。高さ約19,100 km で、約11時間15分で1周します。",
|
|
90
|
+
orbit: "meo",
|
|
91
|
+
still: false,
|
|
92
|
+
celestrak: "glo-ops",
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
id: "galileo",
|
|
96
|
+
label: "Galileo",
|
|
97
|
+
labelJa: "ガリレオ",
|
|
98
|
+
about: "Europe's Galileo satellites, about 23,200 km up, once round in about 14 hours.",
|
|
99
|
+
aboutJa: "ヨーロッパのガリレオ衛星です。高さ約23,200 km で、約14時間で1周します。",
|
|
100
|
+
orbit: "meo",
|
|
101
|
+
still: false,
|
|
102
|
+
celestrak: "galileo",
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
id: "beidou",
|
|
106
|
+
label: "BeiDou",
|
|
107
|
+
labelJa: "北斗",
|
|
108
|
+
about: "China's BeiDou satellites. Most are about 21,500 km up; some are geostationary or on tilted orbits that stay near one place.",
|
|
109
|
+
aboutJa: "中国の北斗衛星です。多くは高さ約21,500 km にあります。静止しているものや、傾いた軌道で1つの場所の近くにとどまるものもあります。",
|
|
110
|
+
orbit: "mixed",
|
|
111
|
+
still: false,
|
|
112
|
+
celestrak: "beidou",
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
id: "amateur",
|
|
116
|
+
label: "Amateur radio",
|
|
117
|
+
labelJa: "アマチュア無線",
|
|
118
|
+
about: "Satellites built or used by radio amateurs: FUNcube-1, SO-50, RS-44, the Fox satellites, and old ones like OSCAR 7 from 1974.",
|
|
119
|
+
aboutJa: "アマチュア無線の人たちが作ったり使ったりする衛星です。FUNcube-1、SO-50、RS-44、Fox 衛星、1974年の OSCAR 7 などの古いものもあります。",
|
|
120
|
+
orbit: "mixed",
|
|
121
|
+
still: false,
|
|
122
|
+
celestrak: "amateur",
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
id: "oneweb",
|
|
126
|
+
label: "OneWeb",
|
|
127
|
+
labelJa: "OneWeb",
|
|
128
|
+
about: "About 650 OneWeb internet satellites, 1,200 km up on orbits that pass near the poles.",
|
|
129
|
+
aboutJa: "インターネット用の OneWeb 衛星、約650機です。高さ1,200 km で、極の近くを通る軌道を回ります。",
|
|
130
|
+
orbit: "leo",
|
|
131
|
+
still: false,
|
|
132
|
+
celestrak: "oneweb",
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
id: "iridium",
|
|
136
|
+
label: "Iridium",
|
|
137
|
+
labelJa: "イリジウム",
|
|
138
|
+
about: "The Iridium NEXT satellites for phones and data anywhere on Earth, 780 km up on orbits that pass near the poles.",
|
|
139
|
+
aboutJa: "地球のどこでも電話やデータが使える、イリジウム NEXT の衛星です。高さ780 km で、極の近くを通ります。",
|
|
140
|
+
orbit: "leo",
|
|
141
|
+
still: false,
|
|
142
|
+
celestrak: "iridium-NEXT",
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
id: "starlink",
|
|
146
|
+
label: "Starlink",
|
|
147
|
+
labelJa: "Starlink",
|
|
148
|
+
about: "SpaceX's Starlink: thousands of small internet satellites, mostly about 550 km up.",
|
|
149
|
+
aboutJa: "SpaceX の Starlink です。小さなインターネット衛星が何千機もあり、多くは高さ約550 km にあります。",
|
|
150
|
+
orbit: "leo",
|
|
151
|
+
still: false,
|
|
152
|
+
celestrak: "starlink",
|
|
153
|
+
},
|
|
154
|
+
];
|
|
155
|
+
/**
|
|
156
|
+
* The satellites worth naming, with the NORAD number every source uses for them: the stations, the famous ones, and a few of each group.
|
|
157
|
+
* JWST is not here on purpose: it is not in Earth orbit (it circles the Sun about 1.5 million km out, at the second Lagrange point).
|
|
158
|
+
*
|
|
159
|
+
* @example
|
|
160
|
+
* ```ts
|
|
161
|
+
* import { CATALOGUE } from "@johnmorrisdotca/chikyu-earth/satellites";
|
|
162
|
+
*
|
|
163
|
+
* console.log(CATALOGUE.filter((entry) => entry.group === "stations").map((entry) => entry.name));
|
|
164
|
+
* ```
|
|
165
|
+
*/
|
|
166
|
+
export const CATALOGUE = [
|
|
167
|
+
{ noradId: 25544, name: "ISS (ZARYA)", group: "stations", orbit: "leo", about: "The International Space Station, lived in without a break since November 2000, about 420 km up and tilted 51.6 degrees.", aboutJa: "国際宇宙ステーション。2000年11月から、ずっと人が滞在しています。高さ約420 km で、傾きは51.6度です。" },
|
|
168
|
+
{ noradId: 48274, name: "CSS (TIANHE)", group: "stations", orbit: "leo", about: "Tianhe, the core of China's Tiangong station, tilted 41.5 degrees.", aboutJa: "中国の宇宙ステーション、天宮の中心になる天和です。傾きは41.5度です。" },
|
|
169
|
+
{ noradId: 5, name: "VANGUARD 1", group: "famous", orbit: "heo", about: "A grapefruit-sized sphere launched on 17 March 1958: the oldest satellite still in orbit, on a long oval that takes it about 3,800 km out.", aboutJa: "1958年3月17日に打ち上げた、グレープフルーツくらいの球です。今も軌道にある、いちばん古い衛星で、いちばん遠いところは高さ約3,800 km です。" },
|
|
170
|
+
{ noradId: 20580, name: "HST", group: "famous", orbit: "leo", about: "The Hubble Space Telescope, in orbit since 1990, about 94 minutes round and tilted 28.5 degrees.", aboutJa: "ハッブル宇宙望遠鏡です。1990年から軌道にあり、約94分で1周します。傾きは28.5度です。" },
|
|
171
|
+
{ noradId: 25867, name: "CXO", group: "famous", orbit: "heo", about: "The Chandra X-ray Observatory, launched 1999, on a long oval that swings out to about a third of the way to the Moon.", aboutJa: "チャンドラ X線天文台です。1999年に打ち上げ、月までの約3分の1の遠さまで行く、細長い軌道を回ります。" },
|
|
172
|
+
{ noradId: 8820, name: "LAGEOS 1", group: "famous", orbit: "meo", about: "A 60 cm ball covered in mirrors that lasers on the ground bounce light off, to measure the Earth's shape and the slow drift of its continents. Launched 1976.", aboutJa: "地上のレーザーの光を返す鏡で全体をおおった、直径60 cm の球です。地球の形や、大陸のゆっくりした動きを測ります。1976年に打ち上げました。" },
|
|
173
|
+
{ noradId: 27386, name: "ENVISAT", group: "famous", orbit: "leo", about: "Europe's Earth-watching satellite, working from 2002 until contact was lost in 2012. Still up there, one of the biggest pieces of space junk.", aboutJa: "ヨーロッパの地球観測衛星です。2002年から働き、2012年に連絡が取れなくなりました。今も軌道にあり、大きな宇宙ごみの1つです。" },
|
|
174
|
+
{ noradId: 28485, name: "SWIFT", group: "science", orbit: "leo", about: "NASA's Swift, which turns within a minute to look at gamma-ray bursts, the flashes of exploding stars.", aboutJa: "NASA の Swift です。星の爆発で起こるガンマ線バーストを、1分もかからず向きを変えて見ます。" },
|
|
175
|
+
{ noradId: 33053, name: "FGRST (GLAST)", group: "science", orbit: "leo", about: "NASA's Fermi gamma-ray telescope, which maps the whole sky every few hours.", aboutJa: "NASA の Fermi ガンマ線望遠鏡です。数時間ごとに、空全体を調べます。" },
|
|
176
|
+
{ noradId: 25989, name: "XMM-NEWTON", group: "science", orbit: "heo", about: "Europe's X-ray telescope, on a long oval orbit that takes it more than 100,000 km out.", aboutJa: "ヨーロッパの X線望遠鏡です。高さ10万 km 以上まで行く、細長い軌道を回ります。" },
|
|
177
|
+
{ noradId: 49954, name: "IXPE", group: "science", orbit: "leo", about: "NASA's Imaging X-ray Polarimetry Explorer, which orbits right over the equator.", aboutJa: "NASA の IXPE です。赤道のすぐ上を回ります。" },
|
|
178
|
+
{ noradId: 57800, name: "XRISM", group: "science", orbit: "leo", about: "The X-ray satellite JAXA launched in 2023, built with NASA and ESA.", aboutJa: "NASA と ESA といっしょに作り、2023年に JAXA が打ち上げた X線天文衛星です。" },
|
|
179
|
+
{ noradId: 36395, name: "SDO", group: "science", orbit: "geo", about: "NASA's Solar Dynamics Observatory, which watches the Sun all day from a tilted orbit that takes a day to go round, so it draws a figure eight over one place.", aboutJa: "NASA の太陽観測衛星です。傾いた軌道を1日で1周して、1つの場所の上で8の字をえがきながら、いつも太陽を見ています。" },
|
|
180
|
+
{ noradId: 40482, name: "MMS 1", group: "science", orbit: "heo", about: "One of NASA's four MMS craft that fly in a tight group through the Earth's magnetic field.", aboutJa: "NASA の MMS の4機のうちの1機です。4機は近くに並んで、地球の磁場の中を飛びます。" },
|
|
181
|
+
{ noradId: 25994, name: "TERRA", group: "earth-observation", orbit: "leo", about: "NASA's Terra, launched 1999, which crosses the equator on the day side every morning at the same hour.", aboutJa: "1999年に打ち上げた NASA の Terra です。毎日同じ時刻の午前中に、昼間の赤道を通ります。" },
|
|
182
|
+
{ noradId: 27424, name: "AQUA", group: "earth-observation", orbit: "leo", about: "NASA's Aqua, Terra's partner, which crosses in the afternoon and watches water in the air, sea and ice.", aboutJa: "Terra の仲間の NASA の Aqua です。午後に通り、空気、海、氷の水を見ています。" },
|
|
183
|
+
{ noradId: 39084, name: "LANDSAT 8", group: "earth-observation", orbit: "leo", about: "Landsat 8, part of the longest unbroken record of the Earth's land seen from space, since 1972.", aboutJa: "Landsat 8 です。1972年から続く、宇宙から見た地球の陸の、いちばん長い記録の一部です。" },
|
|
184
|
+
{ noradId: 49260, name: "LANDSAT 9", group: "earth-observation", orbit: "leo", about: "Landsat 9, launched 2021, flying half an orbit apart from Landsat 8 so the pair sees any place every eight days.", aboutJa: "2021年に打ち上げた Landsat 9 です。Landsat 8 と半周ずれて飛び、2機で同じ場所を8日ごとに見ます。" },
|
|
185
|
+
{ noradId: 40697, name: "SENTINEL-2A", group: "earth-observation", orbit: "leo", about: "One of Europe's Copernicus Sentinel-2 pair that photograph land and coasts in colour.", aboutJa: "ヨーロッパの Copernicus の Sentinel-2 の2機のうちの1機です。陸と海岸をカラーで撮影します。" },
|
|
186
|
+
{ noradId: 42063, name: "SENTINEL-2B", group: "earth-observation", orbit: "leo", about: "The other of the Sentinel-2 pair.", aboutJa: "Sentinel-2 の、もう1機です。" },
|
|
187
|
+
{ noradId: 39634, name: "SENTINEL-1A", group: "earth-observation", orbit: "leo", about: "A Copernicus radar satellite that sees through cloud and at night.", aboutJa: "雲があっても夜でも見える、Copernicus のレーダー衛星です。" },
|
|
188
|
+
{ noradId: 46984, name: "SENTINEL-6A", group: "earth-observation", orbit: "leo", about: "The reference satellite for the height of the sea, higher up than most (about 1,300 km).", aboutJa: "海面の高さを測る基準の衛星です。ほかの多くより高く、約1,300 km にあります。" },
|
|
189
|
+
{ noradId: 43613, name: "ICESAT-2", group: "earth-observation", orbit: "leo", about: "NASA's laser satellite that measures the height of ice sheets.", aboutJa: "氷床の高さを測る、NASA のレーザー衛星です。" },
|
|
190
|
+
{ noradId: 54754, name: "SWOT", group: "earth-observation", orbit: "leo", about: "A NASA and CNES satellite that measures the height of the water in oceans, lakes and rivers.", aboutJa: "海、湖、川の水面の高さを測る、NASA と CNES の衛星です。" },
|
|
191
|
+
{ noradId: 43013, name: "NOAA 20 (JPSS-1)", group: "weather", orbit: "leo", about: "An American polar weather satellite that sees every place on Earth twice a day.", aboutJa: "アメリカの極軌道の気象衛星です。地球のどこでも、1日に2回見ます。" },
|
|
192
|
+
{ noradId: 54234, name: "NOAA 21 (JPSS-2)", group: "weather", orbit: "leo", about: "NOAA 20's partner, half an orbit apart.", aboutJa: "NOAA 20 の仲間で、半周ずれて飛びます。" },
|
|
193
|
+
{ noradId: 37849, name: "SUOMI NPP", group: "weather", orbit: "leo", about: "The satellite that took the Black Marble night pictures of the Earth's lights.", aboutJa: "地球の夜の明かりの写真、ブラックマーブルを撮った衛星です。" },
|
|
194
|
+
{ noradId: 38771, name: "METOP-B", group: "weather", orbit: "leo", about: "One of Europe's Metop polar weather satellites.", aboutJa: "ヨーロッパの極軌道の気象衛星 Metop の1機です。" },
|
|
195
|
+
{ noradId: 60133, name: "GOES 19", group: "weather", orbit: "geo", about: "An American weather satellite that sits still over the equator, watching the Americas all day.", aboutJa: "アメリカの気象衛星です。赤道の上で止まって見え、南北アメリカを1日中見ています。" },
|
|
196
|
+
{ noradId: 41836, name: "HIMAWARI-9", group: "weather", orbit: "geo", about: "Japan's Himawari (sunflower) weather satellite, sitting still over the western Pacific.", aboutJa: "日本の気象衛星ひまわりです。西太平洋の上で止まって見えます。" },
|
|
197
|
+
{ noradId: 54743, name: "METEOSAT-12 (MTG-I1)", group: "weather", orbit: "geo", about: "Europe's newest weather imager, sitting still over the Gulf of Guinea.", aboutJa: "ヨーロッパの新しい気象衛星です。ギニア湾の上で止まって見えます。" },
|
|
198
|
+
{ noradId: 41882, name: "FENGYUN 4A", group: "weather", orbit: "geo", about: "A Chinese weather satellite that sits still over the equator.", aboutJa: "赤道の上で止まって見える、中国の気象衛星です。" },
|
|
199
|
+
{ noradId: 7530, name: "OSCAR 7 (AO-7)", group: "amateur", orbit: "leo", about: "A radio-amateur satellite launched in 1974 that went silent in 1981 and came back to life in 2002.", aboutJa: "1974年に打ち上げたアマチュア無線の衛星です。1981年に止まり、2002年に動き出しました。" },
|
|
200
|
+
{ noradId: 39444, name: "FUNCUBE-1 (AO-73)", group: "amateur", orbit: "leo", about: "A cubesat made for schools, with a radio beacon anyone can listen to.", aboutJa: "学校のために作られた小さな衛星です。だれでも聞ける電波を出しています。" },
|
|
201
|
+
{ noradId: 27607, name: "SAUDISAT 1C (SO-50)", group: "amateur", orbit: "leo", about: "A long-lived FM voice repeater that hams use with a handheld radio.", aboutJa: "手持ちの無線機で使える、長く働いている FM の中継衛星です。" },
|
|
202
|
+
{ noradId: 44909, name: "RS-44 & BREEZE-KM R/B", group: "amateur", orbit: "leo", about: "A Russian amateur satellite on a higher orbit than most (about 1,500 km), used for long-distance calls.", aboutJa: "ほかより高い、約1,500 km の軌道を回る、ロシアのアマチュア無線の衛星です。遠くの人との交信に使います。" },
|
|
203
|
+
{ noradId: 40967, name: "FOX-1A (AO-85)", group: "amateur", orbit: "leo", about: "The first of AMSAT's Fox satellites, built with university students.", aboutJa: "AMSAT の Fox 衛星の1機目です。大学の学生といっしょに作りました。" },
|
|
204
|
+
];
|
|
205
|
+
/** A name made easy to compare: upper case, letters and digits only. */
|
|
206
|
+
const squash = (text) => text.toUpperCase().replace(/[^A-Z0-9]+/g, "");
|
|
207
|
+
/**
|
|
208
|
+
* Find catalogue entries by name, group name or NORAD number: "hubble", "hst", "25544" or "weather". Matching ignores case, spaces and punctuation, and a name that starts with the text comes before one that only has it inside.
|
|
209
|
+
*
|
|
210
|
+
* @param text - What the reader typed.
|
|
211
|
+
* @param limit - The most entries to give back (8 by default).
|
|
212
|
+
* @returns The matching entries, best first; none for empty text.
|
|
213
|
+
* @example
|
|
214
|
+
* ```ts
|
|
215
|
+
* import { findInCatalogue } from "@johnmorrisdotca/chikyu-earth/satellites";
|
|
216
|
+
*
|
|
217
|
+
* console.log(findInCatalogue("sentinel 2").map((entry) => entry.name));
|
|
218
|
+
* ```
|
|
219
|
+
*/
|
|
220
|
+
export function findInCatalogue(text, limit = 8) {
|
|
221
|
+
const wanted = squash(text);
|
|
222
|
+
if (!wanted)
|
|
223
|
+
return [];
|
|
224
|
+
const starts = [];
|
|
225
|
+
const inside = [];
|
|
226
|
+
for (const entry of CATALOGUE) {
|
|
227
|
+
const name = squash(entry.name);
|
|
228
|
+
if (String(entry.noradId) === wanted || name.startsWith(wanted))
|
|
229
|
+
starts.push(entry);
|
|
230
|
+
else if (name.includes(wanted) || squash(entry.group).includes(wanted) || squash(entry.about).includes(wanted))
|
|
231
|
+
inside.push(entry);
|
|
232
|
+
}
|
|
233
|
+
return [...starts, ...inside].slice(0, limit);
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* The catalogue entry for a NORAD number, if there is one.
|
|
237
|
+
*
|
|
238
|
+
* @param noradId - The NORAD catalogue number.
|
|
239
|
+
* @returns The entry, or undefined when the catalogue does not name that satellite.
|
|
240
|
+
* @example
|
|
241
|
+
* ```ts
|
|
242
|
+
* import { catalogueEntry } from "@johnmorrisdotca/chikyu-earth/satellites";
|
|
243
|
+
*
|
|
244
|
+
* console.log(catalogueEntry(25544)?.about);
|
|
245
|
+
* ```
|
|
246
|
+
*/
|
|
247
|
+
export function catalogueEntry(noradId) {
|
|
248
|
+
return CATALOGUE.find((entry) => entry.noradId === noradId);
|
|
249
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { createSatellites, type SatellitesOptions } from "./track.ts";
|
|
2
2
|
export { DEFAULT_MAX_AGE_DAYS, MAX_SATELLITE_SPEED } from "./limits.ts";
|
|
3
3
|
export type { ElementSet, RefusedElementSet, SatelliteInfo, SatelliteRef, Satellites } from "./types.ts";
|
|
4
|
+
export { CATALOGUE, SATELLITE_GROUPS, catalogueEntry, findInCatalogue, type CatalogueEntry, type OrbitKind, type SatelliteGroupInfo } from "./catalogue.ts";
|
package/dist/satellites/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
// The satellites' pure parts: orbital elements in, positions out (SGP4 by satellite.js, an optional peer). They import on a server. The space view takes a group with `setSatellites`.
|
|
2
2
|
export { createSatellites } from "./track.js";
|
|
3
3
|
export { DEFAULT_MAX_AGE_DAYS, MAX_SATELLITE_SPEED } from "./limits.js";
|
|
4
|
+
export { CATALOGUE, SATELLITE_GROUPS, catalogueEntry, findInCatalogue } from "./catalogue.js";
|
package/dist/space/scene.js
CHANGED
|
@@ -230,6 +230,7 @@ export function createSpaceItem(model, deps) {
|
|
|
230
230
|
planets.set(name, { slot: newSlot(name), orbit, positions, samples: [], epoch: Number.NaN, toSun: [1, 0, 0] });
|
|
231
231
|
}
|
|
232
232
|
const moonSlots = new Map();
|
|
233
|
+
let releaseTimer;
|
|
233
234
|
let layer;
|
|
234
235
|
const rideState = new Float64Array(6);
|
|
235
236
|
let selectedShown = false;
|
|
@@ -499,6 +500,7 @@ export function createSpaceItem(model, deps) {
|
|
|
499
500
|
drawing.update?.({ toSun: p.toSun, ms: model.time, radiusPx: moonPx });
|
|
500
501
|
}
|
|
501
502
|
}
|
|
503
|
+
let soonest = Number.POSITIVE_INFINITY;
|
|
502
504
|
for (const [key, held] of moonSlots) {
|
|
503
505
|
if (seen.has(key))
|
|
504
506
|
continue;
|
|
@@ -508,7 +510,13 @@ export function createSpaceItem(model, deps) {
|
|
|
508
510
|
empty(held.slot);
|
|
509
511
|
moonSlots.delete(key);
|
|
510
512
|
}
|
|
513
|
+
else
|
|
514
|
+
soonest = Math.min(soonest, held.seen + MOON_KEEP_MS - now);
|
|
511
515
|
}
|
|
516
|
+
// a view that is at rest draws nothing, so a moon that has gone from the view would be kept for ever: ask for one more draw when the first of them is due to be let go
|
|
517
|
+
if (releaseTimer !== undefined)
|
|
518
|
+
clearTimeout(releaseTimer);
|
|
519
|
+
releaseTimer = soonest < Number.POSITIVE_INFINITY ? setTimeout(() => deps.invalidate(), soonest + 50) : undefined;
|
|
512
520
|
}
|
|
513
521
|
const ratio = model.ratio();
|
|
514
522
|
const earthPx = Math.min(px.Earth, 1e5) * ratio;
|
|
@@ -537,6 +545,8 @@ export function createSpaceItem(model, deps) {
|
|
|
537
545
|
size = { width: w, height: h };
|
|
538
546
|
},
|
|
539
547
|
dispose() {
|
|
548
|
+
if (releaseTimer !== undefined)
|
|
549
|
+
clearTimeout(releaseTimer);
|
|
540
550
|
layer?.dispose();
|
|
541
551
|
model.pick = null;
|
|
542
552
|
textures.dispose();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@johnmorrisdotca/chikyu-earth",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "Chikyu Earth 地球 — A line-drawn globe for the web: country outlines that turn at the Earth's own rate, centred on where you are, with an optional realistic Earth from space (three.js), the Sun, Moon and planets, satellites on their orbits, and markers for any place. A web component and an SVG string.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"earth",
|