@johnmorrisdotca/wakusei-planets 0.36.0 → 0.37.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 CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.37.0] - 2026-11-12
6
+
7
+ - The ports are this package's block in John's port table, 8225 to 8249 (MODULES-1034): the demo and dev on 8225, the tests on 8226, the picture scripts on 8227, the serve example on 8235. They were 8300 to 8310, the Space Program X website's, so a gate run without TEST_PORT met the website's tests.
8
+ - **`/moon-catalogue`: every known moon, 468 as JPL lists them on 2026-11-11** (MODULES-661). `@johnmorrisdotca/wakusei-planets/moon-catalogue` (new; no DOM, no three.js, no loading step; about 35 kB gzipped, carried by no other entry point) lists every moon of the planets and dwarf planets: Jupiter 115, Saturn 293, Uranus 29, Neptune 16, Pluto 5, Mars 2, the Moon, and the seven moons of Orcus, Haumea, Quaoar, Makemake, Gonggong and Eris. Each has its name or designation, the IAU number, who found it and when and where it was announced, the mean orbit (JPL's shape, plane and precession; the place along it and its rate set from JPL Horizons on 2026-01-01), its dynamical group (Jupiter's Himalia, Carme, Ananke and Pasiphae groups, Saturn's Inuit, Gallic and Norse groups and the rest), the size where JPL measured it or its sheet gives it or, flagged `derived`, worked out from its magnitude, and how far `catalogueMoonPosition` was measured to be from Horizons on three other dates (`accuracy`, `grade`: 37 within a degree, 140 within ten, 282 further; the regular moons do well, the irregular ones swing too far under the Sun's pull for a mean orbit to follow). `moonCounts`, `catalogueMoonsOf`, `findCatalogueMoon` (name, designation in any spacing, or JPL code). The Japanese names stay those of the package's own 29 moons. `scripts/make-moon-catalogue.py --refresh` reads JPL again and prints what changed (new moons, names given, orbits, sizes, groups); `--dry` writes nothing.
9
+ - **`<wakusei-space all-moons>`: every other known moon as a dot round its planet** (MODULES-661). One draw, the catalogue fetched as a chunk of its own the first time the dots are turned on, nothing drawn at rest; `stats.allMoons`. A page's own subset of three.js needs `Points` and `PointsMaterial` for them. The demo's space page has an "All moons" switch (`moons=all` in the address) that draws them and lists the moons of the planet in view by group, with their discovery, size and grade.
10
+ - **Far names are quieter; point at a body to light up its system** (MODULES-911). In `<wakusei-space>` the names, dots, rings and covered-body arrows of bodies outside the system in the middle of the view (the body looked at, the body it goes round, and that body's moons) are drawn at half strength; with the Sun in the middle, the Sun and the eight planets are at full strength. `far-opacity` (0 to 1, and `space.farOpacity`, or the CSS property `--wakusei-far-opacity`) sets the strength, `1` for all alike. A body under the mouse (on its disc or its name), under a finger while it is down, or whose name has the keyboard's focus lights its own system and leaves the rest at the far strength. `wakusei-body-hover` fires with the body's info and `system: { host, moons }`, and `wakusei-body-hover-end` when no body is pointed at, the finger lifts or the element leaves the page. `space.hovered` reads it; `systemOf(id)` from `/space` gives any body's system. Only the names change: nothing is drawn again (a freeze case moves the mouse over a dozen bodies at rest and counts no draw).
11
+ - **Where each body out of view is, for a page's edge tabs** (MODULES-913; the data only, the view draws no tabs). `space.sight()` lists, for the Sun, the planets, the dwarf planets and minor bodies, the moons of the body looked at and any moon drawn, whether each is in view and, if not, the edge of the picture it lies beyond (`top`, `right`, `bottom`, `left`), the point on that edge on the line from the middle of the view, the position `along` the edge, the `angle` to it clockwise from the top, and whether it is `behind` the camera; it holds while riding and with names off. `wakusei-sight` fires with the list when a body comes into view or leaves it, goes behind the camera, changes edge, or moves 8 CSS pixels along its edge, at most four times a second while the view moves and once more when it settles, and never at rest. The list is worked out only once a page calls `sight()` or listens for `wakusei-sight`. `sightOf` and `sightChanged` from `/space` are the maths.
12
+ - **Places marked on the body, planned landings, and the places in the data files** (MODULES-928, the drawing). `places` on `<wakusei-body>` and `<wakusei-space>` (the body it looks at) lays small quiet marks of the places in the shaded looks, one layer at a time: `landing` (crewed landings, landers and rovers), `crash` (crash, impact and atmospheric-entry sites), `planned` and `feature`. They turn with the body, hide on the far side and near the edge of the disc, never crowd (12 pixels apart, at most one for every 4 pixels of the body's radius and 60 in all, a feature only once it is 14 pixels across unless it is famous), show the name and a short line on hover, focus or touch in the element's `lang`, and are buttons for the keyboard and screen readers; a click or Enter sends `wakusei-place` with the place's record, and `goToPlace(name)` turns the body (or, on `<wakusei-space>`, `goToPlace(name, { body })` moves the camera) until the place is in the middle. The elements hold no table: `setPlacesLoader(loadPlaces)` lets them load a body's list as its own chunk. The marks are laid after the draws the view makes anyway, and pointing at them draws nothing. `/places` adds the pure part, `placeMarks`, `surfacePoint`, `turnToPlace` and `readPlaceLayers`, for a view you draw yourself. Planned landings: 8 on the Moon and 1 on Mars, typed by hand on 2026-11-11 from the agencies' and operators' own pages, each at the IAU Gazetteer's centre of the site it names and marked approximate, with `planned.dateOf` (`launch` or `landing`, a new field) and the new source `announcement`; `pnpm places:planned` lists the ones whose date has passed, for the monthly look. The release's data files gain a `places` table (every place on all 33 bodies, CSV and Parquet). The demo's body and space pages have a Places row.
13
+
5
14
  ## [0.36.0] - 2026-11-11
6
15
 
7
16
  - **The space demo opens at the Go to view its address names.** `?goto=moon` (or `inner`, `solar-system`, `sun`, `jupiter-moons`) was read, kept in the address and shown as the pressed button, but only a click went there, so a link or a reload showed the Earth. It goes there at load now.
package/NOTICE.md CHANGED
@@ -162,7 +162,8 @@ A body's name written on its globe (`body-label`) is drawn in Michroma, by Verno
162
162
  - **Mars landers' positions (planetocentric latitude, east longitude)**: NSSDCA's Viking 1 and Viking 2 lander pages (https://nssdc.gsfc.nasa.gov/nmc/spacecraft/display.action?id=1975-075C and 1975-083C); the PDS Mars Orbital Data Explorer's "Existing Landing Sites" page (https://ode.rsl.wustl.edu/mars/pagehelp/Content/Missions_Instruments/Landing_Sites.htm, read 2026-11-11; a NASA-funded PDS node at Washington University, the page states no terms) for Spirit, Opportunity, Mars Pathfinder and Phoenix, citing Arvidson et al. 2004, Folkner et al. 1997 and Smith et al. 2009; NASA GISS's Mars24 list for InSight. Phoenix's printed 68.22 N is taken as planetographic and converted (tan phi_c = 0.98826 tan phi_g, IAU 2000 radii); each record's `source.latitude` says which of `planetocentric`, `converted` and `not stated` it is.
163
163
  - **The sites' dates, operators, countries, names and the other Mars sites' positions**: GCAT, the General Catalog of Artificial Space Objects, J. McDowell, lander catalogue updated 2026-11-09 (https://planet4589.org/space/gcat/). Its page states "GCAT is released under the Creative Commons CC-BY licence. You are free to use the data in GCAT as long as you include a citation to it" and "Licence: CC-BY-4.0" (read 2026-11-11); the credit line is "data from GCAT (J. McDowell, planet4589.org/space/gcat)" (John Morris agreed to GCAT on those terms on 2026-11-11). Where GCAT's and NASA's positions differ the table keeps both (`gcatPosition`); three of GCAT's lunar positions had the wrong sign or were a placeholder (Surveyor 1, IM-2 Athena, the Apollo 16 subsatellite) and are NASA's.
164
164
  - **The named features**: the IAU Gazetteer of Planetary Nomenclature, kept by the USGS Astrogeology Science Center (https://planetarynames.wr.usgs.gov/), from its nightly centre-point shapefiles (https://planetarynames.wr.usgs.gov/shapefiles/MOON_nomenclature_center_pts.zip and MARS_nomenclature_center_pts.zip, files of 2026-11-11). USGS states "USGS-authored or produced data and information are considered to be in the U.S. Public Domain" (https://www.usgs.gov/information-policies-and-instructions/copyrights-and-credits, read 2026-11-11), and asks for credit: U.S. Geological Survey. The names are the IAU's.
165
- - The names a page shows for GCAT's technical object names, the plain words for feature types, and the Japanese names are ours. No text is taken from any encyclopedia, and no planned landing is held (their dates need an agency's own announcement typed in by hand).
165
+ - **The planned landings** (`src/data/places-planned.ts`): facts typed by hand on 2026-11-11 from each agency's or operator's own page, never a news site, with no text copied: a mission's name, its operator, the year the page gives and the site it names. NASA's pages (https://www.nasa.gov/event/clps-flight-astrobotics-griffin-mission-one/, .../clps-flight-intuitive-machines-im-3/, .../clps-flight-intuitive-machines-im-4-2/, .../clps-flight-blue-origins-blue-moon-mark-1/, https://www.nasa.gov/moonbase-phases/) are US government works ("generally are not subject to copyright in the United States", https://www.nasa.gov/nasa-brand-center/images-and-media/); Firefly Aerospace's mission pages (https://fireflyspace.com/missions/blue-ghost-mission-2/, -3/, -4/) and ESA's two ExoMars pages (https://www.esa.int/Science_Exploration/Human_and_Robotic_Exploration/Exploration/ExoMars/FAQ_The_rebirth_of_ESA_s_ExoMars_Rosalind_Franklin_mission for the 2030 landing, and .../ExoMars_rover_targets_vast_bed_of_clay_in_search_for_life for Oxia Planum) give only dates and names, which are facts; ESA's text and pictures are not used (its media are mostly CC BY-SA 3.0 IGO). No page gives a landing point: each position is the IAU Gazetteer's centre of the named site (the Moon's centre-point file of 2026-11-11, public domain as above), marked approximate. `node scripts/check-planned.ts` lists the ones whose date has passed, for a monthly look.
166
+ - The names a page shows for GCAT's technical object names, the plain words for feature types, and the Japanese names are ours. No text is taken from any encyclopedia.
166
167
 
167
168
  ## Places on the other 31 bodies
168
169
 
@@ -228,3 +229,16 @@ BepiColombo, Psyche, Europa Clipper, Lucy, JUICE, Hayabusa2, OSIRIS-APEX (OSIRIS
228
229
  - **Close approaches**: the Close-Approach Data API (https://ssd-api.jpl.nasa.gov/cad.api, version 1.5, two list requests on 2026-11-11), by `scripts/make-approaches-data.py` (`src/data/approaches.ts`). They are predictions that change as orbits are refined.
229
230
  - **Terms**: the Solar System Dynamics services need no key. Their terms ("SSD API Service - Fair Use Policy", https://ssd-api.jpl.nasa.gov/, read 2026-11-11) ask for requests reasonably necessary and cached, one at a time, with an application-specific User-Agent naming the product, its version and a contact, and for automated processes to back off on errors; the scripts do all of these (they stop on an error instead of retrying, and keep the answers outside the repository), and nothing calls the services at run time.
230
231
  - **Facts and events** of the eight craft (launch time, site, vehicle, agency, the flybys) are plain facts, not copied text; the page of each mission is its `url` (NASA's, ESA's or JAXA's). The day of every flyby of the eight craft is the closest-approach day on JPL Horizons' path, which the tests check against Horizons, and may differ from an agency's announced date by a day or more (checked 2026-11-11: JUICE's second Earth flyby, ESA, 28 September 2026 11:45 UTC (https://www.esa.int/Science_Exploration/Space_Science/Juice/Juice_to_fly_past_Earth_for_third_gravity_assist), and Lucy at Eurybates, NASA, 11 August 2027 ET (https://science.nasa.gov/mission/lucy/), agree with the path; Lucy at Patroclus does not: path 2033-02-27, NASA 2033-03-03 ET). The exception is Hayabusa2's flyby of Torifune, JAXA's own time, 2026-07-05 18:30 JST (https://global.jaxa.jp/press/2026/07/20260730-1_e.html, read 2026-11-11). The distances are what the agencies state. The Japanese names are the usual Japanese spellings of the missions' names.
232
+
233
+ ## Every known moon
234
+
235
+ The rows of `/moon-catalogue` (`src/data/moon-catalogue.ts`, made by `scripts/make-moon-catalogue.py`) are from NASA/JPL's Solar System Dynamics group, read on 2026-11-11. NASA/JPL content is not subject to copyright in the United States; credit: NASA/JPL-Caltech. Neither ssd.jpl.nasa.gov nor ssd-api.jpl.nasa.gov has a robots.txt (checked 2026-11-11), and the script keeps to the Solar System Dynamics API terms ("SSD API Service - Fair Use Policy", https://ssd-api.jpl.nasa.gov/, read 2026-11-11): one request at a time with a pause, every answer cached outside the repository, and a stop on an error instead of a retry.
236
+
237
+ - **Mean orbits**: "Planetary Satellite Mean Elements" (https://ssd.jpl.nasa.gov/sats/elem/, read 2026-11-11); each row names the satellite ephemeris it was taken from, and the page lists the papers behind each (R. A. Jacobson, M. Brozović and colleagues). Where the page lists a moon twice (Puck, from URA182 and URA184), the later epoch is kept. The shape, plane and turning of each orbit are the page's; where the moon is along it, and its rate, are this package's fit to JPL Horizons (its place on 2026-01-01, and 1, 31 and 90 days later), because the printed elements put many moons tens of degrees from Horizons even at their own epoch.
238
+ - **Names, designations, years, discoverers and announcements**: "Planetary Satellite Discovery Circumstances" (https://ssd.jpl.nasa.gov/sats/discovery.html, read 2026-11-11). Where the element page spells a name differently (it has "Magaclite" and "Philophrosyn"), the discovery page's spelling is used.
239
+ - **Measured radii**: "Planetary Satellite Physical Parameters" (https://ssd.jpl.nasa.gov/sats/phys_par/, read 2026-11-11), with their uncertainties.
240
+ - **The moons of the dwarf planets besides Pluto** (Dysnomia, Hiʻiaka, Namaka, Weywot, Vanth, Xiangliu and Makemake's S/2015 (136472) 1): the Small-Body Satellites API (https://ssd-api.jpl.nasa.gov/sb_sat.api, version 1.0, read 2026-11-11), which gives each one's name, year and reference but no mean orbit and no discoverers.
241
+ - **Data sheets and the positions measured against**: JPL Horizons (https://ssd.jpl.nasa.gov/api/horizons.api, read 2026-11-11), one request a moon: its data sheet (a radius, an albedo or a V(1,0) magnitude where the sheet gives one) and its geometric position from its planet's centre (ecliptic and equinox J2000, km) on the days the orbit is set from (2026-01-01, 01-02, 02-01 and 04-01 TDB) and the days it is measured on (2025-07-02, 2026-07-02 and 2027-07-02, and 1990-01-01, 2000-01-01.5 and 2040-01-01), the measured ones kept in `test/data/moon-catalogue-horizons.json`.
242
+ - **Sizes worked out from the brightness**: D = 10^(3.1236 − 0.5 log10(albedo) − 0.2 V), the formula of NASA/JPL CNEOS's asteroid size estimator (https://cneos.jpl.nasa.gov/tools/ast_size_est.html and its script, read 2026-11-11), with the sheet's albedo where it gives one and 0.04 (the sheet's albedo for Himalia, the largest irregular moon) where it does not. These radii are flagged `derived` and are this package's own estimate, not a measurement.
243
+ - **Groups** are this package's own sorting of the mean orbits by a stated rule (the guide "Every known moon"); the group names are the usual ones, each named after its largest member.
244
+ - **Japanese names** are given only for the 29 moons the package draws in full, whose katakana was checked; the other moons keep their English names and designations.
package/README.md CHANGED
@@ -19,7 +19,7 @@ Wakusei Planets runs in the browser of a phone, a tablet or a computer: nothing
19
19
 
20
20
  <p align="center"><img alt="The demo on a desk: Saturn in the painted look, turning in the big view, with the page's links to the portrait builder, the colouring sheets, the space view, the star page and the size line-up above it, and the choice of body and its moons below" src="https://raw.githubusercontent.com/johnmorrisdotca/wakusei-planets/main/docs/images/home-desk.webp" width="620"> <img alt="The same page on a phone: the same links in rows, and Saturn in the painted look below them" src="https://raw.githubusercontent.com/johnmorrisdotca/wakusei-planets/main/docs/images/home-phone.webp" width="200"></p>
21
21
 
22
- <p align="center"><img alt="Every body at one scale, the Earth among them: each small body has a magnified picture joined by a line, and the Sun shows only its edge" src="https://raw.githubusercontent.com/johnmorrisdotca/wakusei-planets/v0.36.0/docs/images/lineup-desk.png" width="640"></p>
22
+ <p align="center"><img alt="Every body at one scale, the Earth among them: each small body has a magnified picture joined by a line, and the Sun shows only its edge" src="https://raw.githubusercontent.com/johnmorrisdotca/wakusei-planets/v0.37.0/docs/images/lineup-desk.png" width="640"></p>
23
23
 
24
24
  ## Who it is for
25
25
 
@@ -387,7 +387,7 @@ The tiles of every body share one 48 MB budget, six loads at a time for a source
387
387
 
388
388
  ## The portrait builder
389
389
 
390
- <p align="center"><img alt="The Sun and the planets in an arc, painted, with their names, in the portrait builder" src="https://raw.githubusercontent.com/johnmorrisdotca/wakusei-planets/v0.36.0/docs/images/portrait-family.png" width="640"></p>
390
+ <p align="center"><img alt="The Sun and the planets in an arc, painted, with their names, in the portrait builder" src="https://raw.githubusercontent.com/johnmorrisdotca/wakusei-planets/v0.37.0/docs/images/portrait-family.png" width="640"></p>
391
391
 
392
392
  [The portrait builder](https://johnmorrisdotca.github.io/wakusei-planets/portrait.html) puts any bodies in one picture: drag them, size them, turn them, order them front to back, arrange them in a row, an arc, a grid or at true orbit distance (true or readable sizes, a planet's moons round it in orbit order), light them from one direction, and take the code, a PNG or an SVG. The scene is kept in the address, and every body is drawn in one WebGL scene, so the page holds one WebGL context. [The portrait builder](docs/guides/portrait-builder.md) is its guide.
393
393
 
@@ -499,6 +499,7 @@ Each guide has a Japanese twin in [docs/guides/ja](docs/guides/ja/getting-starte
499
499
  | [TypeScript and Node](docs/guides/typescript-and-node.md) | Types and the pure side |
500
500
  | [How it works](docs/guides/how-it-works.md) | Where the numbers come from |
501
501
  | [Asteroids and distant small bodies](docs/guides/asteroids.md) | 104 asteroids, trojans, centaurs and trans-Neptunian objects: orbits, sizes, the spacecraft that visited them, and where each is on any date |
502
+ | [Every known moon](docs/guides/moon-catalogue.md) | every known moon of the planets and dwarf planets as JPL lists them: names, discovery, mean orbit, size, group, and where each is, with its measured accuracy; dots round the planets in the space view (each moon's orbit and rough place: many small outer moons are tens of degrees off within a year) |
502
503
  | [Close approaches to the Earth](docs/guides/approaches.md) | 4,183 approaches of near-Earth objects: every one within 0.05 au from 2026 to 2036 and the close ones since 1900, with dates, distances, speeds and sizes |
503
504
  | [Architecture](docs/guides/architecture.md) | How the layers fit |
504
505
  | [Troubleshooting](docs/guides/troubleshooting.md) | Something does not appear |
@@ -531,7 +532,7 @@ BODIES.pluto.kind; // "dwarf-planet"
531
532
 
532
533
  If this package helps a paper, a talk or a class, please cite it as software. GitHub's "Cite this repository" button reads [CITATION.cff](CITATION.cff) and gives BibTeX and APA; in plain text:
533
534
 
534
- > Morris, J. (2026). *Wakusei Planets* (version 0.36.0) [Computer software]. https://github.com/johnmorrisdotca/wakusei-planets
535
+ > Morris, J. (2026). *Wakusei Planets* (version 0.37.0) [Computer software]. https://github.com/johnmorrisdotca/wakusei-planets
535
536
 
536
537
  Cite the version you used (`npm ls @johnmorrisdotca/wakusei-planets`), and cite the sources of the numbers you use as well: [NOTICE.md](NOTICE.md) names each one, with the paper or the page it was read from (the IAU working group's report for sizes and poles, VSOP87B, ELP2000-82B, L1.2 and TASS1.7 for positions, and NASA's JPL Horizons for the fits and the spacecraft).
537
538
 
@@ -584,7 +585,7 @@ pnpm test:readme # every ts block of the README, type-checked and run against
584
585
  pnpm test:usage # every way of using it in the README and the guides, built and opened
585
586
  pnpm docs:check # the reference site's checks
586
587
  pnpm test:demo # the demo and the docs site in a real browser
587
- pnpm dev # the demo on http://127.0.0.1:8300/wakusei-planets/
588
+ pnpm dev # the demo on http://127.0.0.1:8225/wakusei-planets/
588
589
  ```
589
590
 
590
591
  The pictures in `docs/images` are made by the package's own script:
@@ -0,0 +1,31 @@
1
+ import type { HostId } from "../facts.ts";
2
+ import type { MoonGroup } from "../moon-catalogue.ts";
3
+ /** frame (0 ecliptic, 1 equatorial, 2 laplace), epoch (JD TDB), a (km), e, w, M, i, node (degrees), period (days), apsis and node periods (years), ephemeris, and the plane's pole (RA, Dec) for 1 and 2. */
4
+ export type MoonOrbitRow = [number, number, number, number, number, number, number, number, number, number | null, number | null, string, number?, number?];
5
+ /** id, name, designation, IAU number, host, JPL code, year found, discoverers, announcement, orbit, radius (km), its sigma, its source (0 JPL's physical parameters, 1 the Horizons sheet), albedo, V(1,0),
6
+ * worst error against Horizons near the phase day (km, degrees) and at the far dates (degrees), group, Japanese name (the package's own moons only), confirmed (0 or 1). */
7
+ export type MoonRow = [
8
+ string,
9
+ string | null,
10
+ string | null,
11
+ string | null,
12
+ HostId,
13
+ number | null,
14
+ number | null,
15
+ string | null,
16
+ string | null,
17
+ MoonOrbitRow | null,
18
+ number | null,
19
+ number | null,
20
+ 0 | 1 | null,
21
+ number | null,
22
+ number | null,
23
+ number | null,
24
+ number | null,
25
+ number | null,
26
+ MoonGroup,
27
+ string | null,
28
+ 0 | 1
29
+ ];
30
+ export declare const MOON_CATALOGUE_READ = "2026-11-11";
31
+ export declare const MOON_CATALOGUE_ROWS: readonly MoonRow[];