@johnmorrisdotca/wakusei-planets 0.35.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 +18 -0
- package/NOTICE.md +31 -1
- package/README.md +5 -4
- package/dist/data/moon-catalogue.d.ts +31 -0
- package/dist/data/moon-catalogue.js +471 -0
- package/dist/data/orbiters.d.ts +368 -0
- package/dist/data/orbiters.js +370 -0
- package/dist/data/places-planned.d.ts +3 -0
- package/dist/data/places-planned.js +51 -0
- package/dist/element.d.ts +28 -0
- package/dist/element.js +172 -1
- package/dist/moon-catalogue.d.ts +296 -0
- package/dist/moon-catalogue.js +234 -0
- package/dist/orbiter-facts.d.ts +480 -0
- package/dist/orbiter-facts.js +189 -0
- package/dist/orbiters.d.ts +256 -0
- package/dist/orbiters.js +275 -0
- package/dist/place-marks.d.ts +182 -0
- package/dist/place-marks.js +194 -0
- package/dist/places/mars.d.ts +1 -1
- package/dist/places/mars.js +4 -2
- package/dist/places/moon.d.ts +1 -1
- package/dist/places/moon.js +4 -2
- package/dist/places.d.ts +4 -2
- package/dist/places.js +2 -0
- package/dist/scene/place-layer.d.ts +68 -0
- package/dist/scene/place-layer.js +213 -0
- package/dist/scene/textures.d.ts +2 -2
- package/dist/space/all-moons.d.ts +30 -0
- package/dist/space/all-moons.js +61 -0
- package/dist/space/bodies.d.ts +18 -0
- package/dist/space/bodies.js +18 -0
- package/dist/space/element.d.ts +182 -6
- package/dist/space/element.js +763 -26
- package/dist/space/frame.d.ts +14 -0
- package/dist/space/frame.js +16 -0
- package/dist/space/index.d.ts +5 -2
- package/dist/space/index.js +5 -2
- package/dist/space/regions.d.ts +111 -0
- package/dist/space/regions.js +84 -0
- package/dist/space/scene.d.ts +131 -8
- package/dist/space/scene.js +312 -15
- package/dist/space/sight.d.ts +106 -0
- package/dist/space/sight.js +84 -0
- package/dist/space/travel.d.ts +256 -0
- package/dist/space/travel.js +597 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +13 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
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
|
+
|
|
14
|
+
## [0.36.0] - 2026-11-11
|
|
15
|
+
|
|
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.
|
|
17
|
+
- **The orbiters drawn in the space view** (MODULES-929, the drawing). `<wakusei-space orbiters>` (and `space.orbiters`) draws each craft with a path as a small dot where `/orbiters` puts it on the date shown, scaled with its body in both scales, on its orbit line (from the elements, worked out again each day of the clock), with its name beside it in the page's language, once the Moon or Mars is at least 24 CSS pixels in radius on the screen; a modelled or predicted path is drawn dim, a craft with no path is not drawn, and from afar none is. Off by default; the paths' module (9 kB) is loaded with a dynamic import the first time they are shown. `stats.orbiters` says what was drawn and each craft's status; `orbiterRidePoint(id)` from `/orbiters` is the craft as a point the view can ride (`space.ride(orbiterRidePoint("lro"), { around: "moon" })`). The demo's Show row has an Orbiters switch kept in the address. The ground track, the next pass over a place and the craft's own numbers on the view are left for a later ticket.
|
|
18
|
+
- **`/orbiters`: the spacecraft in orbit round the Moon and Mars** (MODULES-929, the pure part). `ORBITER_IDS` names thirteen craft: Lunar Reconnaissance Orbiter, Chandrayaan-2, Danuri, ARTEMIS P1 and P2 and CAPSTONE round the Moon; Mars Reconnaissance Orbiter, 2001 Mars Odyssey, MAVEN, Mars Express, ExoMars Trace Gas Orbiter, Hope and Tianwen-1 round Mars. `orbiterPosition(id, when)` and `orbiterSpeed` are from mean orbital elements with drifting node and periapsis, fitted by `scripts/make-orbiter-data.py` (run by hand from the Mac, never on a timer) to JPL Horizons' track over the last days before the read date (2026-11-11), each with the window it is good for and its error against Horizons (`orbiterElements`: 33 to 54 km at worst for the low circular orbits, 9 to 17 km for Hope and Mars Express, inside the fit's window; 144 to 251 km at worst for LRO, Chandrayaan-2, Danuri, MRO and Odyssey, 27 to 33 km for Mars Express and Hope, in the days after it). `orbiterStatus(id, when)` says `tracked` (inside the window the ellipse was fitted over), `predicted` (the days after it, as many as the window is long: the error there is measured against Horizons too and stated as `predictedErrorKm`, the larger), `modelled` or `none`: ARTEMIS P1 and P2 and TGO are mean ellipses only (`modelled`, their errors stated), MAVEN's is its last orbit before contact was lost in December 2025 (ended, shown as modelled), CAPSTONE's halo orbit is no ellipse and Tianwen-1 has no public orbit track (`none`: no path). `orbiterNumbers` gives height, speed, period and inclination; `orbiterPath` the orbit's points for a line; `orbiterFacts` the operator, launch, instruments, a line about each in English and Japanese and the mission's state, every fact typed from the craft's Horizons object page (NOTICE.md). Positions are kilometres from the body's centre, ecliptic J2000, like `/roadster`. Tests against Horizons points held in `test/data/orbiters-horizons.json`, asked for as UTC calendar dates. The fits are in TDB and a `Date` is UTC: the package adds 69.184 s (37 s TAI - UTC and 32.184 s TT - TAI; TDB - TT is under 2 ms) before it uses them, which would otherwise put every craft about 69 s of its motion behind (110 km for LRO, 235 km for MRO). `orbiterElements` also gives `fitUntil`, `retrieved` (the age of the elements) and `predictedErrorKm`; `orbiterNumbers` gives `errorKm`, the worst error that goes with the status. The orbiters section of NOTICE.md names the agency that supplies each trajectory to Horizons and no longer calls it all NASA's.
|
|
19
|
+
- **Starman in the space view** (MODULES-974, the drawing). `<wakusei-space roadster>` (and `space.roadster`) draws the Tesla Roadster as a small marked body (a shaded red dot a few pixels across) where `/roadster`'s table puts it on the date shown, in the same mapping as the planets in both scales, on its orbit line (about one trip round the Sun, from the table, worked out again every month of the clock), with its name beside it in the page's language (`Starman`, `スターマン`; `eclipticToScene` from `/space` is the axes change). Off by default: the path's 20 kB table is loaded with a dynamic import the first time the car is shown, never before; outside the record nothing is drawn; nothing is drawn at rest. `stats.roadster` says what was drawn; the demo's Show row has a Starman switch kept in the address. A picture test and a freeze case.
|
|
20
|
+
- **The camera travels from one body to the next along a path of its own** (MODULES-912). Before, pressing a body glided the camera in a straight line from where it was, so the move could swing sideways through empty space or lose both bodies from the picture. `goTo` and `ride` now move the camera along `travelPose` (from `/space`, a pure function of time, with no clock and no DOM; `travelPlan` gives its stages, a suggested length and its easing). The default move, `turn-travel`, turns (or backs up) beside the body being left until the destination is in the picture, goes straight at it with it in view and growing, and settles into the framed view. The look direction turns one way only, and one of the two bodies is in the picture at every moment. For two bodies of one planet's family (two of its moons, or the planet and a moon) the camera circles the planet, which stays in the picture, and a turn that would carry the camera away from a near moon at once begins as a turn about that moon. The path keeps `TRAVEL_CLEARANCE` radii above the surface of the Sun, the Earth and the Moon, the planets, the dwarf planets and the other small bodies of the view; the moons of the other planets are not looked for. Every body is taken where the clock puts it as the move starts and as it ends (a clock at an hour a second moves the Moon about three Earth radii in a five-second move), and the last view is framed for the destination where it will be. `transition` (an attribute, a property and an option of each call) takes `turn-travel` (the default), `direct`, `look-back`, `auto` and `cut`; `auto` is `direct` when the destination is on the screen as the move starts. `pace` (an attribute and property) multiplies the plan's length and `duration` (an option, in milliseconds) sets one move's length. A move arrives from the side it comes from, moved round towards the Sun where that side would show the body mostly dark (`travelArrival`): `goTo` sets the controls' yaw and tilt to that side, and when a `<kazoku-view-controls>` bar is bound to the element, which holds the view's state, `wakusei-hop` carries `yaw` and `tilt` with the zoom for the page to apply (the demo does). Beside a moon the yaw is the one nearest the side the camera comes from. Under reduced motion every move is a cut. `stats.travelling` reports the move at each draw (its kind and path, its stage, how far along it is, and whether the body left and the one gone to are in the picture) and is null when the camera is still. The old glide is gone. Tests: unit tests walk the moves of fifteen pairs of bodies, one move after another, and moves of five and nine game hours, in both scales and three picture shapes, at 240 moments; the demo's picture tests read each draw of a move in one call.
|
|
21
|
+
- **Backing out from the Sun goes by stages** (MODULES-1006). Before, backing out from the Sun jumped straight to the whole solar system. `space.stepOut()` and `space.stepIn()` go a stage at a time through the inner planets, the asteroid belt, the outer planets, the Kuiper belt and the whole system (`SUN_REGIONS`, named in English and Japanese; `goTo` takes a stage's id too). Each stage is framed by `regionView`, which fits the stage's orbits (`regionOrbits`) in the picture looking the way the view already looks, in both scales. A move to or from a stage is a straight pull back or push in with the same travel path as `goTo`, and a cut under reduced motion. At a stage a zoom gesture is a step, out or in: zoom events less than 300 milliseconds apart belong to one gesture, so a pinch that goes on is one step, and the next gesture after a pause is another. This works with a bound view-controls bar too. The stage's name is shown in the corner of the view (`part="region"`), `space.region` and `stats.region` report it, and `wakusei-region` is sent. The demo has Step out and Step in, and a Travel row with the five moves and a pace. Tests: from the Sun five steps out land on the five stages in order with their farthest bodies on the screen and the name shown; a step in comes back; a zoom gesture at a stage steps once; and under reduced motion a step is a cut.
|
|
22
|
+
|
|
5
23
|
## [0.35.0] - 2026-11-11
|
|
6
24
|
|
|
7
25
|
- **`/places` on 31 more bodies, a `famous` mark, and places that were lost in an atmosphere** (MODULES-1042, the pure part; stacked on the Moon and Mars tables). Each body is its own entry point, `/places/<body>`, loaded by `loadPlaces(body)` on request and carried by no other entry point: Mercury (402 places, 26 kB gzipped), Venus (404, 21 kB), Io, Europa, Ganymede, Callisto, Titan, Enceladus, Mimas, Tethys, Dione, Rhea, Iapetus, Miranda, Ariel, Umbriel, Titania, Oberon, Triton, Pluto, Charon, Ceres and Vesta (their named features from the IAU Gazetteer of Planetary Nomenclature: all of a body's up to 400, Mercury's 400 largest, Venus's 25 largest of each type, and the famous ones always; each feature carries `origin`, where its name comes from), and the sites on Venus (Venera 4 to 14, the two Vega landers, the four Pioneer Venus probes and the bus), Mercury (MESSENGER), Titan (Huygens), Eros (NEAR Shoemaker), Ryugu (Hayabusa2's two touchdowns, the impactor, MASCOT), Bennu (OSIRIS-REx), Dimorphos (DART), comet Tempel 1 (Deep Impact's impactor), comet 67P (Philae at Abydos), Jupiter (Galileo's probe and orbiter) and Saturn (Cassini): 33 bodies in `PLACE_BODIES`, 174 kB gzipped for the 31 new tables. New: `famous: true` on a modest list of places on every body, the Moon and Mars included (30 and 28); the kind `entry` and the outcome `entry` for a probe lost in an atmosphere; `origin`; `source.url` and `source.frame`; the source ids `agency`, `nasa-ntrs`, `pds-atmospheres` and `paper` with credits in `PLACES_CREDITS`. Venus's landers use Basilevsky and Weitz's Magellan-updated positions (GCAT's kept in `gcatPosition`: Venera 9 is a degree off, the Pioneer Venus north probe has latitude and longitude the wrong way round in the catalogue). `placeDistanceKm` refuses the bodies with no radius (Eros, Ryugu, Bennu, Dimorphos, the comets). Fixed in the Moon's and Mars's tables: 35 catalogue dates with a single-digit day had lost the day (Mars 3 read `1971-12`, now `1971-12-02T13:47Z`). Guide and Japanese twin updated; `scripts/make-places-more-data.py`; sources and terms in `NOTICE.md`. The positions that could not be checked against a page are listed in the guide (Eros, Philae, Tempel 1, the Galileo orbiter, six GCAT-only Venus rows).
|
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
|
|
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
|
|
|
@@ -174,6 +175,22 @@ A body's name written on its globe (`body-label`) is drawn in Michroma, by Verno
|
|
|
174
175
|
- **NASA pages** (facts typed, credit NASA): MESSENGER's impact, https://science.nasa.gov/photojournal/best-determination-of-messengers-impact-location/ (54.4398 N, 210.1205 E, 19:26:01 UTC); Huygens, Photojournal PIA06437 (10.3 S, 192.3 W), https://photojournal.jpl.nasa.gov/catalog/PIA06437; NEAR Shoemaker's touchdown time, NSSDCA record 1996-008A, https://nssdc.gsfc.nasa.gov/nmc/spacecraft/display.action?id=1996-008A (20:01:52 UT); Galileo's probe, https://solarsystem.nasa.gov/missions/galileo-probe/in-depth (6.5 N, 4.4 W, 22:04:44 UT 1995-12-07); Cassini's entry, Photojournal PIA21896, https://science.nasa.gov/photojournal/impact-site-infrared-image/ (9.4 N, 53 W). NASA's terms, read at https://www.nasa.gov/nasa-brand-center/images-and-media/: "NASA content ... generally are not subject to copyright in the United States", "NASA content used in a factual manner that does not imply endorsement may be used without needing explicit permission. NASA should be acknowledged as the source of the material." Not endorsed by NASA.
|
|
175
176
|
- **Papers** (coordinates typed, none of the text): DART's impact point, Daly et al. 2023, "Successful kinetic impact into an asteroid for planetary defence", Nature (https://pmc.ncbi.nlm.nih.gov/articles/PMC10115643/, Table 1: 8.84 S, 264.30 E; the article says "licensed under a Creative Commons Attribution 4.0 International License"); Tempel 1's impact point, Nagdimunov et al. 2014, arXiv 1406.3308 (16 E, 28 S in the Farnham and Thomas 2013 shape-model frame); Philae's Abydos, Hoang et al. 2020, arXiv 2008.03180, quoting Ulamec et al. 2017 (-1.60 longitude, -8.04 latitude). Hayabusa2's touchdowns, the impactor's crater and MASCOT, Bennu's Nightingale and the Galileo orbiter's longitude are GCAT's; JAXA's Hayabusa2 pages (https://www.hayabusa2.jaxa.jp/en/topics/20190220e_TDPoint/ and the July 2019 one) were read and give no coordinates.
|
|
176
177
|
- **Not read, and not worked round**: the PDS Small Bodies Node's NEAR coordinate file (https://sbn.psi.edu/pds/resource/near/NEAR_Coordinate_Systems.txt) answered HTTP 403 to a program, so Eros's 37.2 S, 81.6 E (278.4 W) is as a search extract quoted that file, not checked against it; JPL's news page for Cassini's end answered 403 (NASA's own copy of the release gives the time and the entry point, from which the figures are taken); the OSIRIS-REx mission's own site (asteroidmission.org) has a certificate that does not match its name, so Nightingale's 56 N, 43 E rests on GCAT and a search extract of that page. No text from Wikipedia or any encyclopedia is used.
|
|
178
|
+
## The orbiters of the Moon and Mars
|
|
179
|
+
|
|
180
|
+
`/orbiters` places thirteen spacecraft round the Moon and Mars from mean orbital elements with secular rates, fitted by `scripts/make-orbiter-data.py` to the positions and velocities that JPL Horizons (https://ssd.jpl.nasa.gov/api/horizons.api) gives for each craft, fetched 2026-11-11, one request at a time, the answers kept outside the repository. **What this package ships is orbital elements we fitted to those positions** (`src/data/orbiters.ts`): our own figures, worked out from facts, with their measured errors. No table of Horizons' positions, and none of its page text, is shipped (the few Horizons points the tests compare with, `test/data/orbiters-horizons.json`, are in the repository only and not in the published package).
|
|
181
|
+
|
|
182
|
+
Horizons' API page states no terms of use, rate limits or citation rule (read 2026-11-11). **Not all of what Horizons carries is NASA's.** Each craft's Horizons object page (read 2026-11-11) says where its trajectory comes from, and this package does not claim that the trajectories supplied by other agencies are in the public domain; Horizons gives no licence for them, and this package uses them only to fit its own elements. By craft, as each page words it:
|
|
183
|
+
|
|
184
|
+
- **Lunar Reconnaissance Orbiter**: final reconstructed trajectory from PDS (NASA's Planetary Data System), then the mission's "tag-up" solutions and predictions; NASA.
|
|
185
|
+
- **Chandrayaan-2**: trajectory solutions fit to tracking data, files named `ISRO_CH2*-OD*`; the page does not name who supplied them; ISRO runs the mission.
|
|
186
|
+
- **Danuri**: "post-launch trajectory segments from KARI", merged with a longer-term prediction; KARI (Korea Aerospace Research Institute).
|
|
187
|
+
- **ARTEMIS P1 and P2**: THEMIS definitive trajectories, then short-term solutions and predictions; the page names no supplier; NASA's mission, run by the University of California, Berkeley.
|
|
188
|
+
- **Mars Reconnaissance Orbiter**: "from MRO Nav., JPL"; **2001 Mars Odyssey**: "Odyssey Nav. Team, JPL"; **MAVEN**: "JPL navigation" (NASA/JPL).
|
|
189
|
+
- **Mars Express** ("SPACECRAFT TRAJECTORY (from ESA)") and **ExoMars Trace Gas Orbiter** ("From ESA"): ESA.
|
|
190
|
+
- **Hope**: the page names no supplier of the trajectory file; it names the Mohammed Bin Rashid Space Centre (MBRSC) as the mission operations centre and KinetX (Tempe, Arizona) for navigation.
|
|
191
|
+
- **CAPSTONE and Tianwen-1**: no position of either is used (CAPSTONE's halo orbit is no ellipse and its elements are not kept; Tianwen-1's only Horizons record is a volunteers' cruise track).
|
|
192
|
+
|
|
193
|
+
Credit: Horizons is NASA/JPL-Caltech's service; the trajectories above are credited to NASA/JPL, ESA, KARI, ISRO and MBRSC as listed. This package is not endorsed by any of them and uses none of their insignia. The facts about each craft (operator, launch, instruments, mission state) are typed from the same craft's Horizons object page, read 2026-11-11, in our own words; the Japanese names and lines are ours. Nothing is taken from any other site. Craft whose track Horizons no longer carries (MAVEN, CAPSTONE) and Tianwen-1 are marked modelled or without a path, never shown as live.
|
|
177
194
|
|
|
178
195
|
## The data door
|
|
179
196
|
|
|
@@ -212,3 +229,16 @@ BepiColombo, Psyche, Europa Clipper, Lucy, JUICE, Hayabusa2, OSIRIS-APEX (OSIRIS
|
|
|
212
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.
|
|
213
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.
|
|
214
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.
|
|
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.
|
|
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.
|
|
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:
|
|
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[];
|