@johnmorrisdotca/chikyu-earth 0.32.0 → 0.33.1

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.
Files changed (45) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/NOTICE.md +10 -1
  3. package/README.md +13 -2
  4. package/dist/catalogue/fleets.d.ts +70 -0
  5. package/dist/catalogue/fleets.js +66 -0
  6. package/dist/catalogue/index.d.ts +5 -0
  7. package/dist/catalogue/index.js +7 -0
  8. package/dist/catalogue/kinds.d.ts +143 -0
  9. package/dist/catalogue/kinds.js +121 -0
  10. package/dist/catalogue/omm.d.ts +44 -0
  11. package/dist/catalogue/omm.js +92 -0
  12. package/dist/catalogue/orbit.d.ts +95 -0
  13. package/dist/catalogue/orbit.js +91 -0
  14. package/dist/catalogue/pack.d.ts +193 -0
  15. package/dist/catalogue/pack.js +327 -0
  16. package/dist/data/meteor-iau.d.ts +79 -0
  17. package/dist/data/meteor-iau.js +77 -0
  18. package/dist/data/meteor-showers.js +24 -20
  19. package/dist/data-door.d.ts +2 -0
  20. package/dist/data-door.js +4 -2
  21. package/dist/door/index.d.ts +1 -0
  22. package/dist/door/index.js +1 -0
  23. package/dist/door/packed.d.ts +64 -0
  24. package/dist/door/packed.js +91 -0
  25. package/dist/meteors/index.d.ts +2 -0
  26. package/dist/meteors/index.js +2 -0
  27. package/dist/meteors/parents.d.ts +45 -0
  28. package/dist/meteors/parents.js +67 -0
  29. package/dist/realistic/body-label.d.ts +13 -0
  30. package/dist/realistic/body-label.js +16 -0
  31. package/dist/realistic/earth.d.ts +3 -0
  32. package/dist/realistic/earth.js +21 -0
  33. package/dist/realistic/element.d.ts +18 -0
  34. package/dist/realistic/element.js +36 -4
  35. package/dist/realistic/index.d.ts +1 -1
  36. package/dist/realistic/index.js +1 -1
  37. package/dist/satellites/source.d.ts +4 -0
  38. package/dist/satellites/source.js +2 -2
  39. package/dist/sky/host.d.ts +55 -0
  40. package/dist/sky/host.js +382 -0
  41. package/dist/space/element.d.ts +18 -0
  42. package/dist/space/element.js +36 -4
  43. package/dist/space/scene.d.ts +3 -0
  44. package/dist/space/scene.js +26 -0
  45. package/package.json +11 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.33.1 - 2026-11-11
6
+
7
+ ## 0.33.0 - 2026-11-11
8
+
9
+ - **The data door names licences in Japanese** (KAZOKU-UI-105): `src/data-door.ts` copied again, unchanged, from kazoku-ui's template: a licence may carry `nameJa` for a Japanese credit line.
10
+
11
+ - **CI's browser jobs run in the Playwright image and need no apt mirror** (KAZOKU-UI-100). The runner's apt mirror stopped answering on 2026-11-11 from about 13:50 UTC, and every browser job failed in its setup before a test ran. The demo and usage jobs (`ci.yml`) now run in `mcr.microsoft.com/playwright:v1.64.0-noble`, the lockfile's Playwright version, which has the browsers and their system libraries. `.github/actions/playwright` (the family's, kazoku-ui's copy is canonical) checks the libraries with `ldd` first and runs apt only when one is missing, skips the browser cache in the image, works without `sudo`, and warns when a workflow's image and the lockfile name different Playwright versions. The Pages deploy stays on the runner: its `python3 -m venv` has no `ensurepip` in the image.
12
+
13
+ - **The meteor showers checked against the IAU Meteor Data Center, and linked to their parent bodies** (MODULES-932). Every row of `METEOR_SHOWERS` was held against the Data Center's lists of all and of established showers (read 2026-11-11; it states no licence and asks to be cited, which NOTICE.md and the guide do). The radiants and speeds agree with the Data Center's solutions of 100 meteors or more within 2 degrees and 2 km/s except three, which took its figures: the April Lyrids' speed is 47 km/s (was 49), the alpha-Monocerotids' 62 (was 65) and the eta-Eridanids' radiant is right ascension 42, declination -13 (was 41, -11). The Data Center lists no maximum date and no rate, so the dates and rates stay the IMO's. New in `@johnmorrisdotca/chikyu-earth/meteors`: `METEOR_LINKS` (each shower's IAU name, `established` or `working` status, parent body, the solution it was checked against and where each figure comes from), `parentBodyOf(code)`, `showersOfParent(designation)`, `showerSource(link)` and `IAU_MDC` (where the lists are, when they were read and how to cite them). Fifteen showers gain a parent body (the Data Center's origin column names one for 26 in all; the delta-Aquariids' two solutions name different bodies and are given none). The guide, in English and Japanese, has a section on it.
14
+ - **The Earth-orbit catalogue: the data side** (MODULES-932). New entry point `@johnmorrisdotca/chikyu-earth/catalogue`, with no data, no DOM and no dependency. `classOfElements`, `orbitShape` and `orbitClass` give the class of an orbit (low, medium, geostationary, highly elliptical or other) from its mean motion and eccentricity, with the thresholds stated in `CLASS_LIMITS` and `CLASS_LABELS`; `readKind` gives the kind of an object (payload, rocket body, debris, unknown) from the catalogue's object type; `legend`, `CLASS_COLOURS` and `KIND_COLOURS` give a colour and a legend for each, in English and Japanese; `FLEETS`, `fleetOf` and `countFleets` find Starlink, OneWeb, GPS, Galileo, GLONASS, BeiDou, Iridium and the stations by name. `packCatalogue`, `unpackCatalogue`, `gzipBytes` and `unpackAny` write and read a packed file of up to 200,000 objects (about 95 bytes an object, about 37 gzipped) that holds six-digit and longer catalogue numbers, and `readCatalogueRecords` turns OMM JSON or CSV with Space-Track's GP fields into records. The data door's `packedElementsFrom` and `readPackedFrom` read such a file from an address you choose, once, politely. The repository's `scripts/catalogue.ts` and the scheduled `.github/workflows/catalogue.yml` make the group files (`payloads`, `rocket-bodies`, `debris`; `working` and `inactive` instead of `payloads` when the repository variable `CATALOGUE_WORKING_LIST` is `celestrak`, off by default) and `manifest.json` for the demo's site; the workflow is switched off until the repository variable `CATALOGUE_PUBLISH` is `yes`. New guide: The catalogue of objects in Earth orbit (English and Japanese).
15
+
16
+ - **The names of the brightest stars and faint constellation lines over the sky** (MODULES-926). `<chikyu-space>` and `<chikyu-earth-realistic>` take hoshi-stars' own attributes `star-names` (a count of the brightest stars in view and not covered; bare is 10), `star-names-magnitude` and `constellation-lines` (the 88 figures at a strength from 0 to 1; bare is 0.16), none of them by default: nothing is loaded until one is set, then hoshi-stars' `sky-labels` (an optional peer, `^0.30.0`) is imported. The names are laid where the stars of the page's own sky are, through the picture's camera, and are left out where the Earth, the Moon or the Sun covers the sky (the cover argument of hoshi's `update`); they never overlap, are English or katakana by the page's language, and take their look from the property `skyStyle` (hoshi's `LabelStyle`) with Michroma loaded as for the name on the Earth. A mouse lights the figure it rests on and a finger the one it touches, with its name; only the layer is drawn again, and nothing at rest. `star-names` is a most, not a count: at the opening size the Earth covers most of the space view, so about two named stars are in view on average (a smaller `earth-size` leaves room for all twelve); the names are written again when the page's language changes after the element was made (the family's `kazoku-languagechange`, or the next draw); `chikyu-sky-unavailable` is sent when hoshi-stars is not there, and `stats.sky` has the counts. On the realistic Earth the sky is the directions seen along the picture's own axes. The demo has Star names and Constellation lines buttons (`star-names` and `constellation-lines` in the address). New guide: Names on the stars and faint constellation lines (English and Japanese).
17
+
5
18
  ## 0.32.0 - 2026-11-11
6
19
 
7
20
  - **The Earth's name written on the globe, as the family's body label** (MODULES-923). `<chikyu-earth-realistic>` and `<chikyu-space>` take the family's plain attributes `body-label` (`painted`, `etched`, `outline` or `burned`; absent, off), `body-label-strength`, `body-label-repeat`, `body-label-latitude`, `body-label-facing`, `body-label-font` and `body-label-fallback-font`, and the property `bodyLabel` (an object with the same options, or `null`). It writes `EARTH` (`地球` on a Japanese page) on the globe with kazoku-ui's shared `body-label`, so it turns with the Earth and the surface shows through the letters; the default is the family's, Michroma, painted, half strength, once. Off unless set: nothing of it is fetched or made until `body-label` is first set, then the family's label is loaded and Michroma (64 kB) only when the page names no font of its own. No name while the Earth is under 24 pixels in radius or a ride hides it; nothing is drawn at rest. `chikyu-body-label-unavailable` is sent when the three.js handed over lacks a part the label needs (`ThreeParts` gains the optional `CanvasTexture`, `SphereGeometry`, `MeshLambertMaterial`, `SRGBColorSpace`, `NormalBlending` and `AdditiveBlending`). `stats.bodyLabel` has `on`, `text`, `made` and `showing`. New in `@johnmorrisdotca/chikyu-earth/realistic`: `readBodyLabel`, `bodyLabelText`, `BODY_LABEL_ATTRIBUTES`. New guide: A name on the Earth (English and Japanese).
package/NOTICE.md CHANGED
@@ -73,7 +73,7 @@ The same build may take a group's element sets from **Space-Track.org** (https:/
73
73
 
74
74
  ## Meteor showers
75
75
 
76
- `src/data/meteor-showers.ts` (in the package, the `./meteors` entry point) is the **International Meteor Organization**'s Working List of Visual Meteor Showers: Table 5 of the *2026 Meteor Shower Calendar*, edited by Jürgen Rendtel (IMO INFO(3-25), https://www.imo.net/files/meteor-shower/cal2026.pdf, read 2026-11-10), typed by hand: each shower's code and number, dates of activity, date and solar longitude of the maximum, radiant, speed, population index and zenithal hourly rate. The table says its details "were correct according to the best information available in June 2025, with maximum dates accurate only for 2026". The Antihelion Source is left out. The Calendar states no licence or reuse terms; these are facts from a published list, credited here and in the guide, and will be removed on request. The parent bodies are the ones the Calendar's own text names (Lyrids, June Bootids, Perseids, Draconids, Taurids, Leonids) and the ones **NASA**'s pages on the shower name (Quadrantids, eta Aquariids, Orionids, Geminids; https://science.nasa.gov/solar-system/meteors-meteorites/, read 2026-11-10); the other showers are given none. The Japanese names are the names in use in Japan. The heights between which meteors shine (80 to 120 km) and the range of their speeds are as the American Meteor Society's FAQ gives them (https://www.amsmeteors.org/faq/, read 2026-11-10), as figures only; none of its text is copied.
76
+ `src/data/meteor-showers.ts` (in the package, the `./meteors` entry point) is the **International Meteor Organization**'s Working List of Visual Meteor Showers: Table 5 of the *2026 Meteor Shower Calendar*, edited by Jürgen Rendtel (IMO INFO(3-25), https://www.imo.net/files/meteor-shower/cal2026.pdf, read 2026-11-10), typed by hand: each shower's code and number, dates of activity, date and solar longitude of the maximum, radiant, speed, population index and zenithal hourly rate. The table says its details "were correct according to the best information available in June 2025, with maximum dates accurate only for 2026". The Antihelion Source is left out. The Calendar states no licence or reuse terms; these are facts from a published list, credited here and in the guide, and will be removed on request. On 2026-11-11 every row was checked against the **IAU Meteor Data Center** (https://www.ta3.sk/IAUC22DB/MDC2022/, kept by the Astronomical Institute of the Slovak Academy of Sciences under Division F of the International Astronomical Union): its list of all showers and its list of established showers (`streamfulldata2026.txt` and `streamestablisheddata2026.txt`, last update 2026-11-10 20:00 UTC, read 2026-11-11). **The MDC states no licence or reuse terms**, on its pages or in its data files; the files ask, in their headers, that the shower database be cited as Jenniskens, Jopek, Janches, Hajdukova, Kokhirova and Rudawska (2020), *Planetary and Space Science* 182, 104821, and Jopek and Kanuchova (2017), *Planetary and Space Science* 143, 3-6, which is done here, in `IAU_MDC` and in the guide. What is taken is facts from a published list, credited and removed on request: each shower's IAU name, number and status, its parent body from the MDC's origin column (the 26 showers whose solutions name one; the delta-Aquariids' name two different bodies and are given none), and the check of the table's radiants and speeds against the MDC's solutions (rule and result in `src/data/meteor-iau.ts`; three rows took the MDC's figures: the April Lyrids' and alpha-Monocerotids' speeds and the eta-Eridanids' radiant). The MDC lists no maximum date and no zenithal hourly rate, so the dates and rates stay the IMO's. `test/recorded/iau-mdc-showers-2026-11-11.json` holds the MDC's solutions of the 37 showers as read, for the tests. The parent bodies agree with the ones the Calendar's own text names (Lyrids, June Bootids, Perseids, Draconids, Taurids, Leonids) and with **NASA**'s pages on the shower (Quadrantids, eta Aquariids, Orionids, Geminids; https://science.nasa.gov/solar-system/meteors-meteorites/, read 2026-11-10); the other 15 are the MDC's alone. The Japanese names are the names in use in Japan. The heights between which meteors shine (80 to 120 km) and the range of their speeds are as the American Meteor Society's FAQ gives them (https://www.amsmeteors.org/faq/, read 2026-11-10), as figures only; none of its text is copied.
77
77
 
78
78
  Not from any list, and said so where it is used (`src/meteors/rate.ts`, `src/meteors/layer.ts`, the guide): the sporadic background of 8 meteors an hour, its lean towards the morning side, each shower's curve between its first day, its maximum and its last day, and how many streaks are drawn. The Sun's longitude is Meeus's low-precision formula (as under "Sun position").
79
79
 
@@ -130,3 +130,12 @@ sponsored by or endorsed by any of them.
130
130
  ## The printable sheets
131
131
 
132
132
  The sheets (`src/sheets/`) are drawn from the package's own data: the outlines above, the Sun's place by `subsolarPoint` (the low-precision formulas of NOAA's solar calculator, Meeus, Astronomical Algorithms, chapter 25) and the Earth's tilt (23.4393 degrees, the IAU's obliquity of the ecliptic at J2000). Nothing is traced from a map or a flag. The few figures written into the facts are the Earth's mean diameter (12,742 km, the IAU's nominal radius 6,371 km) and equatorial circumference (40,075 km, WGS84), and that the Pacific Ocean (about 165 million square kilometres, NOAA's National Ocean Service) is bigger than all the land (about 149 million). The share of the land each continent has is worked out from the outlines. The demo's sheets page takes each country's capital from kuni (MIT, by John Morris) and a flag, to check a drawing against, from hata (MIT, by John Morris; each flag's own licence is in hata's NOTICE.md); neither is on a sheet and neither is a dependency of the package.
133
+
134
+ ## The Earth-orbit catalogue
135
+
136
+ The package ships no orbital elements and no catalogue data (`src/catalogue/` is code: the class of an orbit from Kepler's third law, the kinds, colours, fleet name patterns and a packed file format of this package's own). The demo's site hosts files made by `scripts/catalogue.ts` and published by `.github/workflows/catalogue.yml`, once a day, **once the repository variable `CATALOGUE_PUBLISH` is `yes`**; until then nothing is made or published.
137
+
138
+ Those files hold **Space-Track.org** (https://www.space-track.org, U.S. Space Command) basic SSA data: the GP class for every object on orbit (the elements, `OBJECT_TYPE`, `COUNTRY_CODE`, `LAUNCH_DATE`, `RCS_SIZE`) and the SATCAT, through John Morris's own account (the login is a repository secret, never in a file). Terms: the documentation page https://www.space-track.org/documentation, section "Redistribution of Basic SSA Information", read through a page-reading tool on 2026-11-11: "USSPACECOM has provided express blanket approval for transfer/redistribution of basic SSA data and services accessed via www.Space-Track.org conditioned on appropriate citation." Basic SSA data are "TLEs and OMMs; SATCAT; and Satellite Decay and Reentry Data." The citation, which is this package's own wording because the page gives none, is **"Data from Space-Track.org (USSPACECOM)"**, in each file's header, in `manifest.json` and wherever the demo shows the data. The User Agreement's own sentence stays true for everything else: the user "agrees not to transfer any data ... to any other entity without prior express approval", and the blanket approval is the approval. TODO before the first publish: the section's wording is to be read once in a real browser (the page needs one), and its sentence and that date written here. **The repository variable `CATALOGUE_PUBLISH` stays unset (the workflow does nothing) until this TODO is done.** The asks: one login, one GP request with the documented on-orbit filter and one SATCAT request after 17:00 UTC, a pause between them, nothing retried and nothing asked at a visitor's request; the API rule is "less than 30 requests per 1 minute(s) and 300 requests per 1 hour(s)".
139
+
140
+ Space-Track has no field that says whether a payload still works. **Until CelesTrak's list is approved, the files hold one `payloads` group and CelesTrak is never asked**; the split into working and inactive payloads is a switch (the repository variable `CATALOGUE_WORKING_LIST` set to `celestrak`), off unless set. When it is on, it uses the catalogue numbers in **CelesTrak**'s list of active satellites (https://celestrak.org/NORAD/elements/gp.php?GROUP=active, one request a day within CelesTrak's usage policy, https://celestrak.org/usage-policy.php, read 2026-11-03: a list is downloaded once per update and nothing at a visitor's request). Only the numbers are used, as a set, and nothing else of that list is kept or published; CelesTrak states no licence for the data (the "grey" tier, as above). The numbers are facts; the split they make is this package's own.
141
+
package/README.md CHANGED
@@ -189,7 +189,7 @@ computed in the browser by astronomy-engine (MIT), nothing is fetched. [docs/spa
189
189
 
190
190
  ## Meteors
191
191
 
192
- `<chikyu-earth-realistic meteors>` and `<chikyu-space meteors>` draw meteors as they look from space: short streaks 80 to 120 km up, only on the dark side and in twilight, more of them under an active shower's radiant, and only while the clock runs. Each streak's place and moment are drawn at random, and the element says so under the picture; how many there are, where they fall, their height and the showers' dates are real. `meteors-strength` (0 to 1, the property `meteorsStrength`; 1 when you say nothing) makes them subtler: fewer streaks and fainter ones, none at 0, with every real figure unchanged. The showers are the International Meteor Organization's working list for 2026 (37 of them), in an entry point of its own with the rate functions, which needs no browser: [guide](docs/guides/meteors.md).
192
+ `<chikyu-earth-realistic meteors>` and `<chikyu-space meteors>` draw meteors as they look from space: short streaks 80 to 120 km up, only on the dark side and in twilight, more of them under an active shower's radiant, and only while the clock runs. Each streak's place and moment are drawn at random, and the element says so under the picture; how many there are, where they fall, their height and the showers' dates are real. `meteors-strength` (0 to 1, the property `meteorsStrength`; 1 when you say nothing) makes them subtler: fewer streaks and fainter ones, none at 0, with every real figure unchanged. The showers are the International Meteor Organization's working list for 2026 (37 of them), each linked by IAU code to its parent body and checked against the IAU Meteor Data Center's lists, in an entry point of its own with the rate functions, which needs no browser: [guide](docs/guides/meteors.md).
193
193
 
194
194
  ```js
195
195
  import { activeShowers } from "@johnmorrisdotca/chikyu-earth/meteors";
@@ -216,6 +216,14 @@ console.log(JSON.stringify(readBodyLabel((name) => mine[name] ?? null)));
216
216
  console.log(bodyLabelText("en"), bodyLabelText("ja"), BODY_LABEL_ATTRIBUTES.length);
217
217
  ```
218
218
 
219
+ ## Names on the stars and faint constellation lines
220
+
221
+ `star-names`, `star-names-magnitude` and `constellation-lines` on `<chikyu-space>` and `<chikyu-earth-realistic>` lay the names of the brightest stars, and the 88 constellations as very faint lines (the figure under the pointer at full strength, with its name), over the sky the page draws: hoshi-stars' sky labels, an optional peer loaded only when one is set, in hoshi's own attribute names. Names never overlap, are in the page's language and are left out behind the Earth, the Moon and the Sun; nothing is drawn at rest: [guide](docs/guides/sky-names.md).
222
+
223
+ ```html
224
+ <chikyu-space star-names="12" constellation-lines="0.16"></chikyu-space>
225
+ ```
226
+
219
227
  ## Outside data: the data door
220
228
 
221
229
  The package draws; you bring the data. `@johnmorrisdotca/chikyu-earth/door` takes a finer map of the Earth, or a list of satellites' orbit data, as a **source**: a small object that carries its own licence and credit, so the screen can always say whose data it shows. With no source nothing changes: the Earth is drawn from the package's own pictures and tiles (`OWN_SOURCES`, written from `NOTICE.md`, never non-commercial or share-alike). A source of yours may be either, and the credit line prints that beside the licence.
@@ -511,6 +519,7 @@ The reference is a site, made from the source's own doc comments: every export h
511
519
  | `.../meteors` | The year's meteor showers, and when and where their meteors fall. No DOM, no dependency. |
512
520
  | `.../door` | The data door: sources of your own maps and orbit data with their licence and credit, `creditLine`, the package's own sources. No DOM, no dependency. |
513
521
  | `.../passes`, `.../passes/element` | Passes of a satellite over a place, the sky dome, `<chikyu-passes>`; `satellite.js`. |
522
+ | `.../catalogue` | The Earth-orbit catalogue's pure parts: the class of an orbit from its elements, the kind of an object, colours, legend, fleets, and the packed file of up to 200,000 objects. No data, no DOM, no dependency. |
514
523
 
515
524
  ## Guides
516
525
 
@@ -530,6 +539,7 @@ Each guide has a Japanese twin in [docs/guides/ja](docs/guides/ja/getting-starte
530
539
  | [When can I see the ISS?](docs/guides/passes.md) | Passes over a place, the sky dome, how it was checked |
531
540
  | [Ride along](docs/guides/ride-along.md) | A camera on a moving body |
532
541
  | [The date follows the clock, and Play](docs/guides/time-and-play.md) | The `chikyu-timechange` event, a `speed` for the space view and the realistic Earth, Play, Pause and Back |
542
+ | [Names on the stars and faint constellation lines](docs/guides/sky-names.md) | The brightest stars named and the constellations as faint lines over the sky, in hoshi-stars' attribute names |
533
543
  | [A name on the Earth](docs/guides/body-label.md) | The Earth's name written on the globe, in the family's plain attribute names |
534
544
  | [Meteors seen from space](docs/guides/meteors.md) | Streaks over the night side, the shower table, what is real and what is illustration |
535
545
  | [Outside data, the data door](docs/guides/data-door.md) | Hand the package your own maps of the Earth or orbit data with their licence and credit, switch them off, and show whose data is on the screen |
@@ -540,6 +550,7 @@ Each guide has a Japanese twin in [docs/guides/ja](docs/guides/ja/getting-starte
540
550
  | [Architecture](docs/guides/architecture.md) | How the layers fit |
541
551
  | [Troubleshooting](docs/guides/troubleshooting.md) | Something does not appear |
542
552
  | [Upgrading](docs/guides/upgrading.md) | What to act on between versions |
553
+ | [The catalogue of objects in Earth orbit](docs/guides/catalogue.md) | The orbit class and kind of any object, colours, fleets, and the packed file a site hosts for up to 200,000 objects |
543
554
 
544
555
  ## Limits
545
556
 
@@ -561,7 +572,7 @@ console.log(countryList().filter((country) => country.alpha2 === null).map((coun
561
572
 
562
573
  ## How to cite
563
574
 
564
- > Morris, J. (2026). *Chikyu Earth* (version 0.32.0) [Computer software]. https://github.com/johnmorrisdotca/chikyu-earth
575
+ > Morris, J. (2026). *Chikyu Earth* (version 0.33.1) [Computer software]. https://github.com/johnmorrisdotca/chikyu-earth
565
576
 
566
577
  GitHub's "Cite this repository" button reads [CITATION.cff](CITATION.cff) and gives BibTeX and APA. Cite the version you used (`npm ls @johnmorrisdotca/chikyu-earth`), and credit the sources behind the numbers and pictures: [NOTICE.md](NOTICE.md) says who made each one and under what terms.
567
578
 
@@ -0,0 +1,70 @@
1
+ import type { ObjectKind } from "./kinds.ts";
2
+ /**
3
+ * A fleet: a group of satellites that belong together, found by the pattern its members' names follow.
4
+ *
5
+ * @example
6
+ * ```ts
7
+ * import type { Fleet } from "@johnmorrisdotca/chikyu-earth/catalogue";
8
+ *
9
+ * const fleet: Fleet = { id: "starlink", label: { en: "Starlink", ja: "スターリンク" }, pattern: /^STARLINK/ };
10
+ * console.log(fleet.pattern.test("STARLINK-1007"));
11
+ * ```
12
+ */
13
+ export interface Fleet {
14
+ /** A short name for an address or a button, lower case. */
15
+ id: string;
16
+ label: {
17
+ en: string;
18
+ ja: string;
19
+ };
20
+ /** What the name of a member matches (the name as the catalogue writes it, upper case). */
21
+ pattern: RegExp;
22
+ }
23
+ /**
24
+ * The fleets, in the order a filter lists them. Only payloads belong to one: the spent rocket bodies and the debris that carry a fleet's name (`IRIDIUM 33 DEB`, `STARLINK-1234 R/B`) are not part of it. A satellite whose
25
+ * name does not say which fleet it is (many of GLONASS's are named `COSMOS` and a number) is not matched.
26
+ *
27
+ * @example
28
+ * ```ts
29
+ * import { FLEETS } from "@johnmorrisdotca/chikyu-earth/catalogue";
30
+ *
31
+ * console.log(FLEETS.map((fleet) => fleet.id).join(" "));
32
+ * ```
33
+ */
34
+ export declare const FLEETS: readonly Fleet[];
35
+ /**
36
+ * The fleet an object belongs to, from its name and kind, or `undefined`.
37
+ *
38
+ * @param name - The object's name as the catalogue writes it, in any case.
39
+ * @param kind - Its kind; a rocket body, debris or unknown object is in no fleet. Left out, the name alone decides.
40
+ * @returns The fleet's id, or `undefined` when the object belongs to none.
41
+ *
42
+ * @example
43
+ * ```ts
44
+ * import { fleetOf } from "@johnmorrisdotca/chikyu-earth/catalogue";
45
+ *
46
+ * console.log(fleetOf("STARLINK-1007", "PAY"), fleetOf("IRIDIUM 33 DEB", "DEB"), fleetOf("NAVSTAR 48 (USA 151)"), fleetOf("HST"));
47
+ * ```
48
+ */
49
+ export declare function fleetOf(name: string, kind?: ObjectKind): string | undefined;
50
+ /**
51
+ * How many of each fleet a list of objects holds, and how many objects there are in all: what a filter shows as "N of M".
52
+ *
53
+ * @param objects - The objects' names and kinds.
54
+ * @returns The count in each fleet (every fleet, 0 included) and the total.
55
+ *
56
+ * @example
57
+ * ```ts
58
+ * import { countFleets } from "@johnmorrisdotca/chikyu-earth/catalogue";
59
+ *
60
+ * const { total, fleets } = countFleets([{ name: "STARLINK-1007", kind: "PAY" }, { name: "STARLINK-1008", kind: "PAY" }, { name: "HST", kind: "PAY" }]);
61
+ * console.log(fleets["starlink"], total);
62
+ * ```
63
+ */
64
+ export declare function countFleets(objects: Iterable<{
65
+ name: string;
66
+ kind?: ObjectKind;
67
+ }>): {
68
+ fleets: Record<string, number>;
69
+ total: number;
70
+ };
@@ -0,0 +1,66 @@
1
+ /**
2
+ * The fleets, in the order a filter lists them. Only payloads belong to one: the spent rocket bodies and the debris that carry a fleet's name (`IRIDIUM 33 DEB`, `STARLINK-1234 R/B`) are not part of it. A satellite whose
3
+ * name does not say which fleet it is (many of GLONASS's are named `COSMOS` and a number) is not matched.
4
+ *
5
+ * @example
6
+ * ```ts
7
+ * import { FLEETS } from "@johnmorrisdotca/chikyu-earth/catalogue";
8
+ *
9
+ * console.log(FLEETS.map((fleet) => fleet.id).join(" "));
10
+ * ```
11
+ */
12
+ export const FLEETS = [
13
+ { id: "starlink", label: { en: "Starlink", ja: "スターリンク" }, pattern: /^STARLINK/ },
14
+ { id: "oneweb", label: { en: "OneWeb", ja: "ワンウェブ" }, pattern: /^ONEWEB/ },
15
+ { id: "gps", label: { en: "GPS", ja: "GPS" }, pattern: /^(NAVSTAR|GPS) / },
16
+ { id: "galileo", label: { en: "Galileo", ja: "ガリレオ" }, pattern: /GALILEO/ },
17
+ { id: "glonass", label: { en: "GLONASS", ja: "グロナス" }, pattern: /GLONASS/ },
18
+ { id: "beidou", label: { en: "BeiDou", ja: "北斗" }, pattern: /^(BEIDOU|COMPASS)/ },
19
+ { id: "iridium", label: { en: "Iridium", ja: "イリジウム" }, pattern: /^IRIDIUM/ },
20
+ { id: "stations", label: { en: "Space stations", ja: "宇宙ステーション" }, pattern: /^(ISS|CSS|TIANHE|WENTIAN|MENGTIAN)( |$)/ },
21
+ ];
22
+ /**
23
+ * The fleet an object belongs to, from its name and kind, or `undefined`.
24
+ *
25
+ * @param name - The object's name as the catalogue writes it, in any case.
26
+ * @param kind - Its kind; a rocket body, debris or unknown object is in no fleet. Left out, the name alone decides.
27
+ * @returns The fleet's id, or `undefined` when the object belongs to none.
28
+ *
29
+ * @example
30
+ * ```ts
31
+ * import { fleetOf } from "@johnmorrisdotca/chikyu-earth/catalogue";
32
+ *
33
+ * console.log(fleetOf("STARLINK-1007", "PAY"), fleetOf("IRIDIUM 33 DEB", "DEB"), fleetOf("NAVSTAR 48 (USA 151)"), fleetOf("HST"));
34
+ * ```
35
+ */
36
+ export function fleetOf(name, kind) {
37
+ if (kind !== undefined && kind !== "PAY")
38
+ return undefined;
39
+ const upper = name.trim().toUpperCase();
40
+ return FLEETS.find((fleet) => fleet.pattern.test(upper))?.id;
41
+ }
42
+ /**
43
+ * How many of each fleet a list of objects holds, and how many objects there are in all: what a filter shows as "N of M".
44
+ *
45
+ * @param objects - The objects' names and kinds.
46
+ * @returns The count in each fleet (every fleet, 0 included) and the total.
47
+ *
48
+ * @example
49
+ * ```ts
50
+ * import { countFleets } from "@johnmorrisdotca/chikyu-earth/catalogue";
51
+ *
52
+ * const { total, fleets } = countFleets([{ name: "STARLINK-1007", kind: "PAY" }, { name: "STARLINK-1008", kind: "PAY" }, { name: "HST", kind: "PAY" }]);
53
+ * console.log(fleets["starlink"], total);
54
+ * ```
55
+ */
56
+ export function countFleets(objects) {
57
+ const fleets = Object.fromEntries(FLEETS.map((fleet) => [fleet.id, 0]));
58
+ let total = 0;
59
+ for (const object of objects) {
60
+ total += 1;
61
+ const id = fleetOf(object.name, object.kind);
62
+ if (id)
63
+ fleets[id] = (fleets[id] ?? 0) + 1;
64
+ }
65
+ return { fleets, total };
66
+ }
@@ -0,0 +1,5 @@
1
+ export { OBJECT_KINDS, KIND_LABELS, KIND_COLOURS, CLASS_COLOURS, CLASS_LABELS, ORBIT_CLASSES, legend, readKind, type LegendEntry, type ObjectKind, type OrbitClass } from "./kinds.ts";
2
+ export { CLASS_LIMITS, GEO_ALTITUDE_KM, classOfElements, orbitClass, orbitShape, type OrbitShape } from "./orbit.ts";
3
+ export { FLEETS, countFleets, fleetOf, type Fleet } from "./fleets.ts";
4
+ export { MAX_PACKED, MAX_PACKED_BYTES, PackError, gzipBytes, packCatalogue, unpackAny, unpackCatalogue, type CatalogueRecord, type PackedCatalogue, type RadarSize } from "./pack.ts";
5
+ export { readCatalogueRecords, type CatalogueRead } from "./omm.ts";
@@ -0,0 +1,7 @@
1
+ // The Earth-orbit catalogue's pure parts (`@johnmorrisdotca/chikyu-earth/catalogue`): the class of an orbit from its elements, the kind of an object, a colour and a legend for each, the fleets, and the packed file a refresh script
2
+ // writes and a page reads (up to 200,000 records, six-digit catalogue numbers held). No data is here: the elements come from a source you choose, through the data door (`packedElementsFrom`). No DOM, no dependency.
3
+ export { OBJECT_KINDS, KIND_LABELS, KIND_COLOURS, CLASS_COLOURS, CLASS_LABELS, ORBIT_CLASSES, legend, readKind } from "./kinds.js";
4
+ export { CLASS_LIMITS, GEO_ALTITUDE_KM, classOfElements, orbitClass, orbitShape } from "./orbit.js";
5
+ export { FLEETS, countFleets, fleetOf } from "./fleets.js";
6
+ export { MAX_PACKED, MAX_PACKED_BYTES, PackError, gzipBytes, packCatalogue, unpackAny, unpackCatalogue } from "./pack.js";
7
+ export { readCatalogueRecords } from "./omm.js";
@@ -0,0 +1,143 @@
1
+ /**
2
+ * What a catalogued object is: `PAY` a payload (a satellite or probe), `RB` a rocket body, `DEB` debris, `UNK` unknown.
3
+ *
4
+ * @example
5
+ * ```ts
6
+ * import type { ObjectKind } from "@johnmorrisdotca/chikyu-earth/catalogue";
7
+ *
8
+ * const kind: ObjectKind = "RB";
9
+ * console.log(kind);
10
+ * ```
11
+ */
12
+ export type ObjectKind = "PAY" | "RB" | "DEB" | "UNK";
13
+ /**
14
+ * The four kinds, in the order a legend lists them.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * import { OBJECT_KINDS } from "@johnmorrisdotca/chikyu-earth/catalogue";
19
+ *
20
+ * console.log(OBJECT_KINDS.join(" "));
21
+ * ```
22
+ */
23
+ export declare const OBJECT_KINDS: readonly ObjectKind[];
24
+ /**
25
+ * The kind a source's object type means: Space-Track says `PAYLOAD`, `ROCKET BODY`, `DEBRIS` or `TBA`, other lists say `PAY`, `R/B`, `DEB` or `UNK`; any other word, or none, is `UNK`.
26
+ *
27
+ * @param value - The source's object type, in any case.
28
+ * @returns The kind.
29
+ *
30
+ * @example
31
+ * ```ts
32
+ * import { readKind } from "@johnmorrisdotca/chikyu-earth/catalogue";
33
+ *
34
+ * console.log(readKind("PAYLOAD"), readKind("R/B"), readKind("debris"), readKind("TBA"), readKind(undefined));
35
+ * ```
36
+ */
37
+ export declare function readKind(value: string | null | undefined): ObjectKind;
38
+ /**
39
+ * The words for each kind, in English and Japanese.
40
+ *
41
+ * @example
42
+ * ```ts
43
+ * import { KIND_LABELS } from "@johnmorrisdotca/chikyu-earth/catalogue";
44
+ *
45
+ * console.log(KIND_LABELS.DEB.en, KIND_LABELS.DEB.ja);
46
+ * ```
47
+ */
48
+ export declare const KIND_LABELS: Readonly<Record<ObjectKind, {
49
+ en: string;
50
+ ja: string;
51
+ }>>;
52
+ /**
53
+ * The class of an orbit: low (`leo`), medium (`meo`), geostationary (`geo`), highly elliptical (`heo`), or `other` for what fits none of them.
54
+ *
55
+ * @example
56
+ * ```ts
57
+ * import type { OrbitClass } from "@johnmorrisdotca/chikyu-earth/catalogue";
58
+ *
59
+ * const value: OrbitClass = "geo";
60
+ * console.log(value);
61
+ * ```
62
+ */
63
+ export type OrbitClass = "leo" | "meo" | "geo" | "heo" | "other";
64
+ /**
65
+ * The five classes, in the order a legend lists them.
66
+ *
67
+ * @example
68
+ * ```ts
69
+ * import { ORBIT_CLASSES } from "@johnmorrisdotca/chikyu-earth/catalogue";
70
+ *
71
+ * console.log(ORBIT_CLASSES.join(" "));
72
+ * ```
73
+ */
74
+ export declare const ORBIT_CLASSES: readonly OrbitClass[];
75
+ /**
76
+ * The words for each class, in English and Japanese, with the rule that makes it (heights above the mean Earth radius).
77
+ *
78
+ * @example
79
+ * ```ts
80
+ * import { CLASS_LABELS } from "@johnmorrisdotca/chikyu-earth/catalogue";
81
+ *
82
+ * console.log(CLASS_LABELS.leo.en, "|", CLASS_LABELS.leo.rule);
83
+ * ```
84
+ */
85
+ export declare const CLASS_LABELS: Readonly<Record<OrbitClass, {
86
+ en: string;
87
+ ja: string;
88
+ rule: string;
89
+ }>>;
90
+ /**
91
+ * The colour of each class on a dark background: green, yellow, red, violet and grey.
92
+ *
93
+ * @example
94
+ * ```ts
95
+ * import { CLASS_COLOURS } from "@johnmorrisdotca/chikyu-earth/catalogue";
96
+ *
97
+ * console.log(CLASS_COLOURS.geo);
98
+ * ```
99
+ */
100
+ export declare const CLASS_COLOURS: Readonly<Record<OrbitClass, string>>;
101
+ /**
102
+ * The colour of each kind on a dark background: cyan payloads, orange rocket bodies, grey debris and pale unknowns.
103
+ *
104
+ * @example
105
+ * ```ts
106
+ * import { KIND_COLOURS } from "@johnmorrisdotca/chikyu-earth/catalogue";
107
+ *
108
+ * console.log(KIND_COLOURS.RB);
109
+ * ```
110
+ */
111
+ export declare const KIND_COLOURS: Readonly<Record<ObjectKind, string>>;
112
+ /**
113
+ * One line of a legend: what it is called, in the page's language, and its colour.
114
+ *
115
+ * @example
116
+ * ```ts
117
+ * import type { LegendEntry } from "@johnmorrisdotca/chikyu-earth/catalogue";
118
+ *
119
+ * const entry: LegendEntry = { key: "leo", label: "Low orbit", colour: "#5dd6a2" };
120
+ * console.log(entry.label);
121
+ * ```
122
+ */
123
+ export interface LegendEntry {
124
+ key: string;
125
+ label: string;
126
+ colour: string;
127
+ }
128
+ /**
129
+ * The legend for colouring by class or by kind, in the page's language.
130
+ *
131
+ * @param by - `class` or `kind`.
132
+ * @param lang - `en` or `ja`.
133
+ * @returns One entry for each class or kind, in the legend's order.
134
+ *
135
+ * @example
136
+ * ```ts
137
+ * import { legend } from "@johnmorrisdotca/chikyu-earth/catalogue";
138
+ *
139
+ * console.log(legend("class", "en").map((one) => `${one.label} ${one.colour}`).join(", "));
140
+ * console.log(legend("kind", "ja")[2]?.label);
141
+ * ```
142
+ */
143
+ export declare function legend(by: "class" | "kind", lang: "en" | "ja"): LegendEntry[];
@@ -0,0 +1,121 @@
1
+ // What kind of object a catalogue entry is, the class of its orbit, and how each is coloured and named. Pure: no DOM, no data.
2
+ /**
3
+ * The four kinds, in the order a legend lists them.
4
+ *
5
+ * @example
6
+ * ```ts
7
+ * import { OBJECT_KINDS } from "@johnmorrisdotca/chikyu-earth/catalogue";
8
+ *
9
+ * console.log(OBJECT_KINDS.join(" "));
10
+ * ```
11
+ */
12
+ export const OBJECT_KINDS = ["PAY", "RB", "DEB", "UNK"];
13
+ /**
14
+ * The kind a source's object type means: Space-Track says `PAYLOAD`, `ROCKET BODY`, `DEBRIS` or `TBA`, other lists say `PAY`, `R/B`, `DEB` or `UNK`; any other word, or none, is `UNK`.
15
+ *
16
+ * @param value - The source's object type, in any case.
17
+ * @returns The kind.
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * import { readKind } from "@johnmorrisdotca/chikyu-earth/catalogue";
22
+ *
23
+ * console.log(readKind("PAYLOAD"), readKind("R/B"), readKind("debris"), readKind("TBA"), readKind(undefined));
24
+ * ```
25
+ */
26
+ export function readKind(value) {
27
+ const word = (value ?? "").trim().toUpperCase();
28
+ if (word === "PAYLOAD" || word === "PAY")
29
+ return "PAY";
30
+ if (word === "ROCKET BODY" || word === "R/B" || word === "RB")
31
+ return "RB";
32
+ if (word === "DEBRIS" || word === "DEB")
33
+ return "DEB";
34
+ return "UNK";
35
+ }
36
+ /**
37
+ * The words for each kind, in English and Japanese.
38
+ *
39
+ * @example
40
+ * ```ts
41
+ * import { KIND_LABELS } from "@johnmorrisdotca/chikyu-earth/catalogue";
42
+ *
43
+ * console.log(KIND_LABELS.DEB.en, KIND_LABELS.DEB.ja);
44
+ * ```
45
+ */
46
+ export const KIND_LABELS = {
47
+ PAY: { en: "Payloads", ja: "人工衛星" },
48
+ RB: { en: "Rocket bodies", ja: "ロケット本体" },
49
+ DEB: { en: "Debris", ja: "デブリ" },
50
+ UNK: { en: "Unknown", ja: "種類不明" },
51
+ };
52
+ /**
53
+ * The five classes, in the order a legend lists them.
54
+ *
55
+ * @example
56
+ * ```ts
57
+ * import { ORBIT_CLASSES } from "@johnmorrisdotca/chikyu-earth/catalogue";
58
+ *
59
+ * console.log(ORBIT_CLASSES.join(" "));
60
+ * ```
61
+ */
62
+ export const ORBIT_CLASSES = ["leo", "meo", "geo", "heo", "other"];
63
+ /**
64
+ * The words for each class, in English and Japanese, with the rule that makes it (heights above the mean Earth radius).
65
+ *
66
+ * @example
67
+ * ```ts
68
+ * import { CLASS_LABELS } from "@johnmorrisdotca/chikyu-earth/catalogue";
69
+ *
70
+ * console.log(CLASS_LABELS.leo.en, "|", CLASS_LABELS.leo.rule);
71
+ * ```
72
+ */
73
+ export const CLASS_LABELS = {
74
+ leo: { en: "Low orbit", ja: "低軌道", rule: "highest point under 2,000 km" },
75
+ meo: { en: "Medium orbit", ja: "中軌道", rule: "lowest point 2,000 km or more, highest point under 34,286 km" },
76
+ geo: { en: "Geostationary", ja: "静止軌道", rule: "35,786 km, within 1,500 km, nearly circular" },
77
+ heo: { en: "Highly elliptical", ja: "高楕円軌道", rule: "eccentricity 0.25 or more" },
78
+ other: { en: "Other", ja: "その他", rule: "none of the above (above the geostationary belt, or between the classes)" },
79
+ };
80
+ /**
81
+ * The colour of each class on a dark background: green, yellow, red, violet and grey.
82
+ *
83
+ * @example
84
+ * ```ts
85
+ * import { CLASS_COLOURS } from "@johnmorrisdotca/chikyu-earth/catalogue";
86
+ *
87
+ * console.log(CLASS_COLOURS.geo);
88
+ * ```
89
+ */
90
+ export const CLASS_COLOURS = { leo: "#5dd6a2", meo: "#ffd166", geo: "#ef476f", heo: "#b388eb", other: "#9aa5b1" };
91
+ /**
92
+ * The colour of each kind on a dark background: cyan payloads, orange rocket bodies, grey debris and pale unknowns.
93
+ *
94
+ * @example
95
+ * ```ts
96
+ * import { KIND_COLOURS } from "@johnmorrisdotca/chikyu-earth/catalogue";
97
+ *
98
+ * console.log(KIND_COLOURS.RB);
99
+ * ```
100
+ */
101
+ export const KIND_COLOURS = { PAY: "#4cc9f0", RB: "#ff8c42", DEB: "#9aa5b1", UNK: "#e6e6e6" };
102
+ /**
103
+ * The legend for colouring by class or by kind, in the page's language.
104
+ *
105
+ * @param by - `class` or `kind`.
106
+ * @param lang - `en` or `ja`.
107
+ * @returns One entry for each class or kind, in the legend's order.
108
+ *
109
+ * @example
110
+ * ```ts
111
+ * import { legend } from "@johnmorrisdotca/chikyu-earth/catalogue";
112
+ *
113
+ * console.log(legend("class", "en").map((one) => `${one.label} ${one.colour}`).join(", "));
114
+ * console.log(legend("kind", "ja")[2]?.label);
115
+ * ```
116
+ */
117
+ export function legend(by, lang) {
118
+ if (by === "class")
119
+ return ORBIT_CLASSES.map((key) => ({ key, label: CLASS_LABELS[key][lang], colour: CLASS_COLOURS[key] }));
120
+ return OBJECT_KINDS.map((key) => ({ key, label: KIND_LABELS[key][lang], colour: KIND_COLOURS[key] }));
121
+ }
@@ -0,0 +1,44 @@
1
+ import type { CatalogueRecord } from "./pack.ts";
2
+ /**
3
+ * What `readCatalogueRecords` found: the records that can be used, and how many were left out (a number missing or not a number, or an orbit that is not an ellipse).
4
+ *
5
+ * @example
6
+ * ```ts
7
+ * import type { CatalogueRead } from "@johnmorrisdotca/chikyu-earth/catalogue";
8
+ *
9
+ * const say = (read: CatalogueRead): string => `${read.records.length} kept, ${read.skipped} left out`;
10
+ * console.log(typeof say);
11
+ * ```
12
+ */
13
+ export interface CatalogueRead {
14
+ records: CatalogueRecord[];
15
+ skipped: number;
16
+ }
17
+ /**
18
+ * Read catalogue records from OMM text, as JSON (a list of objects) or CSV (a header row, then a row for each object). Each row's elements are read as `parseElements` reads them, and `OBJECT_TYPE` (`PAYLOAD`, `ROCKET BODY`, `DEBRIS`,
19
+ * `UNKNOWN`, `TBA`), `COUNTRY_CODE`, `LAUNCH_DATE` and `RCS_SIZE` give the kind, owner, launch and radar size where the row has them. Six-digit and longer catalogue numbers are read as they are: OMM carries them where a TLE cannot.
20
+ * It throws if the text is neither JSON nor CSV with a header.
21
+ *
22
+ * @param input - What the source answered.
23
+ * @returns The records, and the count left out.
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * import { readCatalogueRecords } from "@johnmorrisdotca/chikyu-earth/catalogue";
28
+ *
29
+ * const csv = [
30
+ * "OBJECT_NAME,OBJECT_ID,EPOCH,MEAN_MOTION,ECCENTRICITY,INCLINATION,RA_OF_ASC_NODE,ARG_OF_PERICENTER,MEAN_ANOMALY,NORAD_CAT_ID,BSTAR,MEAN_MOTION_DOT,MEAN_MOTION_DDOT,OBJECT_TYPE,COUNTRY_CODE,LAUNCH_DATE,RCS_SIZE",
31
+ * "MADE-UP DEB,2026-002B,2026-11-08T04:12:35,14.9,0.01,82,10,90,20,1000001,0.0001,0.00001,0,DEBRIS,US,2026-02-01,SMALL",
32
+ * ].join("\n");
33
+ * const { records } = readCatalogueRecords(csv);
34
+ * console.log(records[0]?.set.NORAD_CAT_ID, records[0]?.kind, records[0]?.owner, records[0]?.size);
35
+ * ```
36
+ */
37
+ export declare function readCatalogueRecords(input: string): CatalogueRead;
38
+ /**
39
+ * The records in rows already read from JSON: the same as `readCatalogueRecords` without the text step. Not part of the entry point; the refresh script uses it on Space-Track's answer.
40
+ *
41
+ * @param rows - OMM objects with their text or number fields.
42
+ * @returns The records and the count left out.
43
+ */
44
+ export declare function catalogueRecordsFromRows(rows: readonly unknown[]): CatalogueRead;