@johnmorrisdotca/wakusei-planets 0.34.0 → 0.36.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.
Files changed (215) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/NOTICE.md +64 -0
  3. package/README.md +21 -3
  4. package/dist/approaches.d.ts +276 -0
  5. package/dist/approaches.js +255 -0
  6. package/dist/asteroids.d.ts +397 -0
  7. package/dist/asteroids.js +338 -0
  8. package/dist/comets.d.ts +316 -0
  9. package/dist/comets.js +404 -0
  10. package/dist/craft/bepicolombo.d.ts +1 -0
  11. package/dist/craft/bepicolombo.js +923 -0
  12. package/dist/craft/europaclipper.d.ts +1 -0
  13. package/dist/craft/europaclipper.js +342 -0
  14. package/dist/craft/hayabusa2.d.ts +1 -0
  15. package/dist/craft/hayabusa2.js +73 -0
  16. package/dist/craft/juice.d.ts +1 -0
  17. package/dist/craft/juice.js +40 -0
  18. package/dist/craft/lucy.d.ts +1 -0
  19. package/dist/craft/lucy.js +42 -0
  20. package/dist/craft/osirisapex.d.ts +1 -0
  21. package/dist/craft/osirisapex.js +69 -0
  22. package/dist/craft/psyche.d.ts +1 -0
  23. package/dist/craft/psyche.js +30 -0
  24. package/dist/craft/solarorbiter.d.ts +1 -0
  25. package/dist/craft/solarorbiter.js +94 -0
  26. package/dist/data/approaches.d.ts +17 -0
  27. package/dist/data/approaches.js +4192 -0
  28. package/dist/data/asteroids.d.ts +3 -0
  29. package/dist/data/asteroids.js +107 -0
  30. package/dist/data/comets.d.ts +2 -0
  31. package/dist/data/comets.js +36 -0
  32. package/dist/data/orbiters.d.ts +368 -0
  33. package/dist/data/orbiters.js +370 -0
  34. package/dist/data/places-67p.d.ts +27 -0
  35. package/dist/data/places-67p.js +2 -0
  36. package/dist/data/places-ariel.d.ts +602 -0
  37. package/dist/data/places-ariel.js +27 -0
  38. package/dist/data/places-bennu.d.ts +25 -0
  39. package/dist/data/places-bennu.js +2 -0
  40. package/dist/data/places-callisto.d.ts +3547 -0
  41. package/dist/data/places-callisto.js +155 -0
  42. package/dist/data/places-ceres.d.ts +3436 -0
  43. package/dist/data/places-ceres.js +150 -0
  44. package/dist/data/places-charon.d.ts +349 -0
  45. package/dist/data/places-charon.js +16 -0
  46. package/dist/data/places-dimorphos.d.ts +23 -0
  47. package/dist/data/places-dimorphos.js +2 -0
  48. package/dist/data/places-dione.d.ts +2258 -0
  49. package/dist/data/places-dione.js +99 -0
  50. package/dist/data/places-enceladus.d.ts +2009 -0
  51. package/dist/data/places-enceladus.js +88 -0
  52. package/dist/data/places-eros.d.ts +26 -0
  53. package/dist/data/places-eros.js +2 -0
  54. package/dist/data/places-europa.d.ts +2977 -0
  55. package/dist/data/places-europa.js +130 -0
  56. package/dist/data/places-ganymede.d.ts +4518 -0
  57. package/dist/data/places-ganymede.js +197 -0
  58. package/dist/data/places-iapetus.d.ts +1616 -0
  59. package/dist/data/places-iapetus.js +71 -0
  60. package/dist/data/places-io.d.ts +6012 -0
  61. package/dist/data/places-io.js +262 -0
  62. package/dist/data/places-jupiter.d.ts +46 -0
  63. package/dist/data/places-jupiter.js +3 -0
  64. package/dist/data/places-mars.d.ts +20701 -0
  65. package/dist/data/places-mars.js +942 -0
  66. package/dist/data/places-mercury.d.ts +9256 -0
  67. package/dist/data/places-mercury.js +403 -0
  68. package/dist/data/places-mimas.d.ts +968 -0
  69. package/dist/data/places-mimas.js +43 -0
  70. package/dist/data/places-miranda.d.ts +419 -0
  71. package/dist/data/places-miranda.js +19 -0
  72. package/dist/data/places-moon.d.ts +18849 -0
  73. package/dist/data/places-moon.js +861 -0
  74. package/dist/data/places-oberon.d.ts +235 -0
  75. package/dist/data/places-oberon.js +11 -0
  76. package/dist/data/places-pluto.d.ts +1687 -0
  77. package/dist/data/places-pluto.js +74 -0
  78. package/dist/data/places-rhea.d.ts +3317 -0
  79. package/dist/data/places-rhea.js +145 -0
  80. package/dist/data/places-ryugu.d.ts +87 -0
  81. package/dist/data/places-ryugu.js +5 -0
  82. package/dist/data/places-saturn.d.ts +25 -0
  83. package/dist/data/places-saturn.js +2 -0
  84. package/dist/data/places-tempel-1.d.ts +25 -0
  85. package/dist/data/places-tempel-1.js +2 -0
  86. package/dist/data/places-tethys.d.ts +1222 -0
  87. package/dist/data/places-tethys.js +54 -0
  88. package/dist/data/places-titan.d.ts +7031 -0
  89. package/dist/data/places-titan.js +306 -0
  90. package/dist/data/places-titania.d.ts +418 -0
  91. package/dist/data/places-titania.js +19 -0
  92. package/dist/data/places-triton.d.ts +1457 -0
  93. package/dist/data/places-triton.js +64 -0
  94. package/dist/data/places-umbriel.d.ts +303 -0
  95. package/dist/data/places-umbriel.js +14 -0
  96. package/dist/data/places-venus.d.ts +9290 -0
  97. package/dist/data/places-venus.js +405 -0
  98. package/dist/data/places-vesta.d.ts +2444 -0
  99. package/dist/data/places-vesta.js +107 -0
  100. package/dist/data/roadster.d.ts +8 -0
  101. package/dist/data/roadster.js +686 -0
  102. package/dist/element.js +17 -3
  103. package/dist/orbiter-facts.d.ts +480 -0
  104. package/dist/orbiter-facts.js +189 -0
  105. package/dist/orbiters.d.ts +256 -0
  106. package/dist/orbiters.js +275 -0
  107. package/dist/places/67p.d.ts +13 -0
  108. package/dist/places/67p.js +14 -0
  109. package/dist/places/ariel.d.ts +13 -0
  110. package/dist/places/ariel.js +14 -0
  111. package/dist/places/bennu.d.ts +13 -0
  112. package/dist/places/bennu.js +14 -0
  113. package/dist/places/callisto.d.ts +13 -0
  114. package/dist/places/callisto.js +14 -0
  115. package/dist/places/ceres.d.ts +13 -0
  116. package/dist/places/ceres.js +14 -0
  117. package/dist/places/charon.d.ts +13 -0
  118. package/dist/places/charon.js +14 -0
  119. package/dist/places/dimorphos.d.ts +13 -0
  120. package/dist/places/dimorphos.js +14 -0
  121. package/dist/places/dione.d.ts +13 -0
  122. package/dist/places/dione.js +14 -0
  123. package/dist/places/enceladus.d.ts +13 -0
  124. package/dist/places/enceladus.js +14 -0
  125. package/dist/places/eros.d.ts +13 -0
  126. package/dist/places/eros.js +14 -0
  127. package/dist/places/europa.d.ts +13 -0
  128. package/dist/places/europa.js +14 -0
  129. package/dist/places/ganymede.d.ts +13 -0
  130. package/dist/places/ganymede.js +14 -0
  131. package/dist/places/iapetus.d.ts +13 -0
  132. package/dist/places/iapetus.js +14 -0
  133. package/dist/places/io.d.ts +13 -0
  134. package/dist/places/io.js +14 -0
  135. package/dist/places/jupiter.d.ts +13 -0
  136. package/dist/places/jupiter.js +14 -0
  137. package/dist/places/mars.d.ts +12 -0
  138. package/dist/places/mars.js +13 -0
  139. package/dist/places/mercury.d.ts +13 -0
  140. package/dist/places/mercury.js +14 -0
  141. package/dist/places/mimas.d.ts +13 -0
  142. package/dist/places/mimas.js +14 -0
  143. package/dist/places/miranda.d.ts +13 -0
  144. package/dist/places/miranda.js +14 -0
  145. package/dist/places/moon.d.ts +12 -0
  146. package/dist/places/moon.js +13 -0
  147. package/dist/places/oberon.d.ts +13 -0
  148. package/dist/places/oberon.js +14 -0
  149. package/dist/places/pluto.d.ts +13 -0
  150. package/dist/places/pluto.js +14 -0
  151. package/dist/places/rhea.d.ts +13 -0
  152. package/dist/places/rhea.js +14 -0
  153. package/dist/places/ryugu.d.ts +13 -0
  154. package/dist/places/ryugu.js +14 -0
  155. package/dist/places/saturn.d.ts +13 -0
  156. package/dist/places/saturn.js +14 -0
  157. package/dist/places/tempel-1.d.ts +13 -0
  158. package/dist/places/tempel-1.js +14 -0
  159. package/dist/places/tethys.d.ts +13 -0
  160. package/dist/places/tethys.js +14 -0
  161. package/dist/places/titan.d.ts +13 -0
  162. package/dist/places/titan.js +14 -0
  163. package/dist/places/titania.d.ts +13 -0
  164. package/dist/places/titania.js +14 -0
  165. package/dist/places/triton.d.ts +13 -0
  166. package/dist/places/triton.js +14 -0
  167. package/dist/places/umbriel.d.ts +13 -0
  168. package/dist/places/umbriel.js +14 -0
  169. package/dist/places/venus.d.ts +13 -0
  170. package/dist/places/venus.js +14 -0
  171. package/dist/places/vesta.d.ts +13 -0
  172. package/dist/places/vesta.js +14 -0
  173. package/dist/places.d.ts +354 -0
  174. package/dist/places.js +357 -0
  175. package/dist/plan/element.d.ts +52 -0
  176. package/dist/plan/element.js +258 -0
  177. package/dist/plan/index.d.ts +2 -0
  178. package/dist/plan/index.js +2 -0
  179. package/dist/plan/layout.d.ts +230 -0
  180. package/dist/plan/layout.js +229 -0
  181. package/dist/plan/svg.d.ts +125 -0
  182. package/dist/plan/svg.js +185 -0
  183. package/dist/roadster.d.ts +415 -0
  184. package/dist/roadster.js +496 -0
  185. package/dist/scene/body.js +10 -9
  186. package/dist/scene/painter.d.ts +1 -1
  187. package/dist/scene/painter.js +23 -7
  188. package/dist/scene/textures.d.ts +2 -2
  189. package/dist/space/beside.d.ts +4 -1
  190. package/dist/space/beside.js +47 -6
  191. package/dist/space/covered.d.ts +102 -0
  192. package/dist/space/covered.js +98 -0
  193. package/dist/space/element.d.ts +101 -5
  194. package/dist/space/element.js +474 -30
  195. package/dist/space/frame.d.ts +14 -0
  196. package/dist/space/frame.js +16 -0
  197. package/dist/space/index.d.ts +4 -1
  198. package/dist/space/index.js +4 -1
  199. package/dist/space/regions.d.ts +111 -0
  200. package/dist/space/regions.js +84 -0
  201. package/dist/space/scale.d.ts +2 -1
  202. package/dist/space/scale.js +13 -2
  203. package/dist/space/scene.d.ts +109 -8
  204. package/dist/space/scene.js +313 -37
  205. package/dist/space/travel.d.ts +256 -0
  206. package/dist/space/travel.js +597 -0
  207. package/dist/spacecraft-facts.d.ts +4 -4
  208. package/dist/spacecraft-facts.js +158 -3
  209. package/dist/spacecraft.d.ts +69 -2
  210. package/dist/spacecraft.js +45 -2
  211. package/dist/textures/mimas-1024.webp +0 -0
  212. package/dist/textures/mimas-512.webp +0 -0
  213. package/dist/version.d.ts +1 -1
  214. package/dist/version.js +1 -1
  215. package/package.json +208 -1
@@ -0,0 +1,275 @@
1
+ // The spacecraft in orbit round the Moon and Mars: where each is at a moment, from mean orbital elements with secular rates fitted to JPL Horizons' track (src/data/orbiters.ts, made by
2
+ // scripts/make-orbiter-data.py), and what is known about each (src/orbiter-facts.ts). Pure: no DOM, no clock reads. Positions are from the centre of the body, in kilometres, ecliptic and
3
+ // equinox J2000, the same axes as `/roadster` and the ten deep-space craft; `eclipticToScene` from `/space` turns them into the space view's axes.
4
+ import { ORBITER_FITS } from "./data/orbiters.js";
5
+ import { ORBITER_FACTS } from "./orbiter-facts.js";
6
+ export { ORBITER_FACTS } from "./orbiter-facts.js";
7
+ /**
8
+ * The orbiters the package knows: six round the Moon and seven round Mars.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * import { ORBITER_IDS } from "@johnmorrisdotca/wakusei-planets/orbiters";
13
+ *
14
+ * console.log(ORBITER_IDS.join(", "));
15
+ * ```
16
+ */
17
+ export const ORBITER_IDS = Object.keys(ORBITER_FITS);
18
+ /** GM of the Moon and Mars in km^3/s^2 (JPL DE440). */
19
+ const GM = { moon: 4902.800118, mars: 42828.375816 };
20
+ const UNIX_EPOCH_JD = 2440587.5;
21
+ /**
22
+ * TDB minus UTC in seconds. The fitted epochs and Horizons' vectors are in TDB; a `Date` is UTC. TAI - UTC is 37 s (since 2017-01-01; a later leap second would add one) and TT - TAI is 32.184 s; TDB differs
23
+ * from TT by under 2 ms, which this package ignores. Left out, the craft would lag its true place by about 69 s of its motion: 110 km for LRO, 235 km for MRO.
24
+ */
25
+ const TDB_MINUS_UTC_S = 37 + 32.184;
26
+ const RAD = Math.PI / 180;
27
+ const hasElements = (fit) => "a" in fit && typeof fit.a === "number";
28
+ function idOf(id) {
29
+ if (!(id in ORBITER_FITS))
30
+ throw new Error(`wakusei-planets: no orbiter called ${id}`);
31
+ return id;
32
+ }
33
+ /**
34
+ * The body an orbiter goes round.
35
+ *
36
+ * @param id - The orbiter.
37
+ * @returns `moon` or `mars`.
38
+ *
39
+ * @example
40
+ * ```ts
41
+ * import { orbiterCentre } from "@johnmorrisdotca/wakusei-planets/orbiters";
42
+ *
43
+ * console.log(orbiterCentre("hope"));
44
+ * ```
45
+ */
46
+ export function orbiterCentre(id) {
47
+ return ORBITER_FITS[idOf(id)].center;
48
+ }
49
+ /**
50
+ * The fitted elements of an orbiter, or `undefined` for one with no path (`orbiterStatus` says `none`).
51
+ *
52
+ * @param id - The orbiter.
53
+ * @returns The elements, or `undefined`.
54
+ *
55
+ * @example
56
+ * ```ts
57
+ * import { orbiterElements } from "@johnmorrisdotca/wakusei-planets/orbiters";
58
+ *
59
+ * console.log(orbiterElements("capstone"), orbiterElements("mro")?.e.toFixed(4));
60
+ * ```
61
+ */
62
+ export function orbiterElements(id) {
63
+ const fit = ORBITER_FITS[idOf(id)];
64
+ if (!hasElements(fit))
65
+ return undefined;
66
+ const f = fit;
67
+ return { a: f.a, e: f.e, i: f.i, raan: f.raan, argp: f.argp, m0: f.m0, raanRate: f.raanRate, argpRate: f.argpRate, meanMotionCorrection: f.meanMotionCorrection, periodDays: f.periodDays, epochJd: f.epochJd, validFrom: f.validFrom, fitUntil: f.fitUntil, validUntil: f.validUntil, retrieved: f.retrieved, trackedUntil: f.trackedUntil, fitErrorKm: { ...f.fitErrorKm }, predictedErrorKm: f.predictedErrorKm === null ? null : { ...f.predictedErrorKm }, basis: f.basis };
68
+ }
69
+ const msOf = (when) => (when instanceof Date ? when.getTime() : when);
70
+ /** The Julian date in TDB of a moment given in UTC (see `TDB_MINUS_UTC_S`). */
71
+ const tdbJdOf = (when) => (msOf(when) / 1000 + TDB_MINUS_UTC_S) / 86_400 + UNIX_EPOCH_JD;
72
+ /**
73
+ * Where an orbiter's path comes from at a moment: see `OrbiterStatus`. `tracked` ends with the fit's window (`fitUntil`); after it, up to `validUntil`, a path is `predicted`. A moment before the window or after
74
+ * `validUntil` is `modelled` (the ellipse is extended, not measured there). `trackedUntil`, how far Horizons' own tracking data reached, is not used: where Horizons' track is itself an agency's prediction, "tracked" says the
75
+ * ellipse follows that track.
76
+ *
77
+ * @param id - The orbiter.
78
+ * @param when - A `Date` or milliseconds since 1970 (UTC).
79
+ * @returns The status.
80
+ *
81
+ * @example
82
+ * ```ts
83
+ * import { orbiterStatus } from "@johnmorrisdotca/wakusei-planets/orbiters";
84
+ *
85
+ * console.log(orbiterStatus("mro", Date.UTC(2026, 10, 1)), orbiterStatus("mro", Date.UTC(2030, 0, 1)));
86
+ * ```
87
+ */
88
+ export function orbiterStatus(id, when) {
89
+ const fit = ORBITER_FITS[idOf(id)];
90
+ if (!hasElements(fit))
91
+ return "none";
92
+ const f = fit;
93
+ if (f.basis === "modelled")
94
+ return "modelled";
95
+ const ms = msOf(when);
96
+ if (ms < Date.parse(f.validFrom) || ms > Date.parse(f.validUntil))
97
+ return "modelled";
98
+ return ms > Date.parse(f.fitUntil) ? "predicted" : "tracked";
99
+ }
100
+ /**
101
+ * Where an orbiter is at a moment, in kilometres from the centre of the body it goes round, ecliptic and equinox J2000. The mean ellipse is propagated with its drifting node and periapsis: good to the
102
+ * `fitErrorKm` of its elements within the fit's window and the larger `predictedErrorKm` in the days after it, rougher beyond (`orbiterStatus`). `when` is UTC; the elements' TDB epoch is allowed for (69.184 s). Throws for a craft with no path.
103
+ *
104
+ * @param id - The orbiter.
105
+ * @param when - A `Date` or milliseconds since 1970 (UTC).
106
+ * @returns x, y, z in kilometres.
107
+ *
108
+ * @example
109
+ * ```ts
110
+ * import { orbiterPosition } from "@johnmorrisdotca/wakusei-planets/orbiters";
111
+ *
112
+ * const [x, y, z] = orbiterPosition("lro", Date.UTC(2026, 10, 11));
113
+ * console.log(Math.hypot(x, y, z).toFixed(0), "km from the Moon's centre");
114
+ * ```
115
+ */
116
+ export function orbiterPosition(id, when) {
117
+ return stateOf(id, when).position;
118
+ }
119
+ /**
120
+ * How fast an orbiter moves at a moment, in kilometres a second relative to the body it goes round (from the ellipse).
121
+ *
122
+ * @param id - The orbiter.
123
+ * @param when - A `Date` or milliseconds since 1970 (UTC).
124
+ * @returns The speed in km/s.
125
+ *
126
+ * @example
127
+ * ```ts
128
+ * import { orbiterSpeed } from "@johnmorrisdotca/wakusei-planets/orbiters";
129
+ *
130
+ * console.log(orbiterSpeed("lro", Date.UTC(2026, 10, 11)).toFixed(2), "km/s");
131
+ * ```
132
+ */
133
+ export function orbiterSpeed(id, when) {
134
+ const { velocity } = stateOf(id, when);
135
+ return Math.hypot(velocity[0], velocity[1], velocity[2]);
136
+ }
137
+ /**
138
+ * The numbers a page shows for an orbiter at a moment: its height above the body's mean surface, its speed, its period and inclination, where its path comes from, and how far wrong it may be (`errorKm`: the worst error
139
+ * measured against Horizons for that status, `fitErrorKm.max` when `tracked`, `predictedErrorKm.max` when `predicted`; `null` when `modelled`).
140
+ *
141
+ * @param id - The orbiter.
142
+ * @param when - A `Date` or milliseconds since 1970 (UTC).
143
+ * @returns The numbers, or `undefined` for a craft with no path.
144
+ *
145
+ * @example
146
+ * ```ts
147
+ * import { orbiterNumbers } from "@johnmorrisdotca/wakusei-planets/orbiters";
148
+ *
149
+ * const mro = orbiterNumbers("mro", Date.UTC(2026, 10, 11))!;
150
+ * console.log(mro.altitudeKm.toFixed(0), "km up,", mro.speedKmS.toFixed(2), "km/s,", (mro.periodDays * 24 * 60).toFixed(0), "minutes round,", mro.status, "within", mro.errorKm, "km");
151
+ * ```
152
+ */
153
+ export function orbiterNumbers(id, when) {
154
+ const elements = orbiterElements(id);
155
+ if (elements === undefined)
156
+ return undefined;
157
+ const { position, velocity } = stateOf(id, when);
158
+ const status = orbiterStatus(id, when);
159
+ const errorKm = status === "tracked" ? elements.fitErrorKm.max : status === "predicted" ? (elements.predictedErrorKm?.max ?? null) : null;
160
+ return { altitudeKm: Math.hypot(position[0], position[1], position[2]) - MEAN_RADIUS_KM[orbiterCentre(id)], speedKmS: Math.hypot(velocity[0], velocity[1], velocity[2]), periodDays: elements.periodDays, inclinationDeg: elements.i, status, errorKm };
161
+ }
162
+ /** The mean radius of the Moon and Mars in kilometres (IAU), for heights above the surface. */
163
+ const MEAN_RADIUS_KM = { moon: 1737.4, mars: 3389.5 };
164
+ /**
165
+ * The orbit as points round one trip, in kilometres from the body's centre, ecliptic J2000, at the moment's node and periapsis: for an orbit line.
166
+ *
167
+ * @param id - The orbiter.
168
+ * @param when - A `Date` or milliseconds since 1970 (UTC): the ellipse's orientation then.
169
+ * @param points - How many points round the trip (the first is repeated at the end).
170
+ * @returns The points, or an empty list for a craft with no path.
171
+ *
172
+ * @example
173
+ * ```ts
174
+ * import { orbiterPath } from "@johnmorrisdotca/wakusei-planets/orbiters";
175
+ *
176
+ * console.log(orbiterPath("hope", Date.UTC(2026, 10, 11), 8).length);
177
+ * ```
178
+ */
179
+ export function orbiterPath(id, when, points = 96) {
180
+ const elements = orbiterElements(id);
181
+ if (elements === undefined)
182
+ return [];
183
+ const dt = tdbJdOf(when) - elements.epochJd;
184
+ const out = [];
185
+ // evenly spaced in eccentric anomaly, not mean: a lopsided orbit (ARTEMIS P1, e about 0.8) is then sampled fastest where it bends least, and has no sharp corner at periapsis
186
+ for (let k = 0; k <= points; k += 1)
187
+ out.push(placeAt(elements, dt, (2 * Math.PI * k) / points));
188
+ return out;
189
+ }
190
+ function stateOf(id, when) {
191
+ const elements = orbiterElements(id);
192
+ if (elements === undefined)
193
+ throw new RangeError(`wakusei-planets: ${id} has no path to follow (${orbiterStatus(id, when)})`);
194
+ const centre = orbiterCentre(id);
195
+ const dt = tdbJdOf(when) - elements.epochJd;
196
+ const n = meanMotion(elements, centre);
197
+ const m = (elements.m0 + n * dt) % 360;
198
+ const position = placeOf(elements, centre, dt, undefined, m);
199
+ // the velocity from the ellipse: a small step along it in time
200
+ const later = placeOf(elements, centre, dt + 1 / 86_400, undefined, (elements.m0 + n * (dt + 1 / 86_400)) % 360);
201
+ return { position, velocity: [later[0] - position[0], later[1] - position[1], later[2] - position[2]] };
202
+ }
203
+ /** The mean motion in degrees a day: Kepler's for `a`, corrected by the fit. */
204
+ const meanMotion = (elements, centre) => (Math.sqrt(GM[centre] / elements.a ** 3) * 86_400) / RAD + elements.meanMotionCorrection;
205
+ /** A point of the ellipse `dt` days after the epoch: at the true anomaly of mean anomaly `meanAnomaly` (degrees), or at the given mean anomaly. */
206
+ function placeOf(elements, centre, dt, meanAnomalyDeg, mDeg) {
207
+ void centre;
208
+ const e = elements.e;
209
+ const m = ((meanAnomalyDeg ?? mDeg ?? 0) * RAD) % (2 * Math.PI);
210
+ let ea = m;
211
+ for (let k = 0; k < 30; k += 1)
212
+ ea -= (ea - e * Math.sin(ea) - m) / (1 - e * Math.cos(ea));
213
+ return placeAt(elements, dt, ea);
214
+ }
215
+ /** A point of the ellipse `dt` days after the epoch at the eccentric anomaly `ea` (radians). */
216
+ function placeAt(elements, dt, ea) {
217
+ const e = elements.e;
218
+ const nu = 2 * Math.atan2(Math.sqrt(1 + e) * Math.sin(ea / 2), Math.sqrt(1 - e) * Math.cos(ea / 2));
219
+ const r = elements.a * (1 - e * Math.cos(ea));
220
+ const raan = (elements.raan + elements.raanRate * dt) * RAD;
221
+ const argp = (elements.argp + elements.argpRate * dt) * RAD;
222
+ const inc = elements.i * RAD;
223
+ const u = argp + nu;
224
+ return [
225
+ r * (Math.cos(raan) * Math.cos(u) - Math.sin(raan) * Math.sin(u) * Math.cos(inc)),
226
+ r * (Math.sin(raan) * Math.cos(u) + Math.cos(raan) * Math.sin(u) * Math.cos(inc)),
227
+ r * Math.sin(u) * Math.sin(inc),
228
+ ];
229
+ }
230
+ /**
231
+ * What is known about an orbiter: names, operator, launch, instruments, a line about it, and the state of its path.
232
+ *
233
+ * @param id - The orbiter.
234
+ * @returns The facts.
235
+ *
236
+ * @example
237
+ * ```ts
238
+ * import { orbiterFacts } from "@johnmorrisdotca/wakusei-planets/orbiters";
239
+ *
240
+ * const lro = orbiterFacts("lro");
241
+ * console.log(lro.name.en, lro.operator, lro.launch.date, lro.launch.vehicle);
242
+ * ```
243
+ */
244
+ export function orbiterFacts(id) {
245
+ return ORBITER_FACTS[idOf(id)];
246
+ }
247
+ /** An ecliptic J2000 vector in the space view's axes (equatorial J2000, y north): the same turn `eclipticToScene` from `/space` makes, kept here so `/orbiters` imports nothing of the view. */
248
+ const OBLIQUITY = 23.4392911 * RAD;
249
+ const toScene = (v) => [v[0], v[1] * Math.sin(OBLIQUITY) + v[2] * Math.cos(OBLIQUITY), -(v[1] * Math.cos(OBLIQUITY) - v[2] * Math.sin(OBLIQUITY))];
250
+ /**
251
+ * An orbiter as a point the space view can ride along with (`space.ride(orbiterRidePoint("lro"), { around: "moon" })`): where it is and which way it goes at a moment, in kilometres and kilometres a
252
+ * second from the centre of the body it goes round, in the view's axes (equatorial J2000, y north). It answers `null` for a craft with no path.
253
+ *
254
+ * @param id - The orbiter.
255
+ * @returns The point: its `at` gives the place and velocity, or `null` for a craft with no path (`orbiterStatus` says `none`), which the view then does not ride.
256
+ *
257
+ * @example
258
+ * ```ts
259
+ * import { orbiterRidePoint } from "@johnmorrisdotca/wakusei-planets/orbiters";
260
+ *
261
+ * const point = orbiterRidePoint("mro").at(Date.UTC(2026, 10, 11));
262
+ * console.log(point === null ? "no path" : Math.hypot(...point.velocity).toFixed(2) + " km/s");
263
+ * ```
264
+ */
265
+ export function orbiterRidePoint(id) {
266
+ idOf(id);
267
+ return {
268
+ at(ms) {
269
+ if (orbiterElements(id) === undefined)
270
+ return null;
271
+ const { position, velocity } = stateOf(id, ms);
272
+ return { position: toScene(position), velocity: toScene(velocity) };
273
+ },
274
+ };
275
+ }
@@ -0,0 +1,13 @@
1
+ import type { Place } from "../places.ts";
2
+ /**
3
+ * Every place on 67P/Churyumov-Gerasimenko the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
4
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import { PLACES_67P } from "@johnmorrisdotca/wakusei-planets/places/67p";
9
+ *
10
+ * console.log(PLACES_67P.length, "places;", PLACES_67P.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
11
+ * ```
12
+ */
13
+ export declare const PLACES_67P: readonly Place[];
@@ -0,0 +1,14 @@
1
+ // The places on 67P/Churyumov-Gerasimenko: a single list. See `/places` for the record's shape and the lookups.
2
+ import { PLACES_67P as DATA } from "../data/places-67p.js";
3
+ /**
4
+ * Every place on 67P/Churyumov-Gerasimenko the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
5
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACES_67P } from "@johnmorrisdotca/wakusei-planets/places/67p";
10
+ *
11
+ * console.log(PLACES_67P.length, "places;", PLACES_67P.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
12
+ * ```
13
+ */
14
+ export const PLACES_67P = DATA;
@@ -0,0 +1,13 @@
1
+ import type { Place } from "../places.ts";
2
+ /**
3
+ * Every place on Ariel the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
4
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import { PLACES_ARIEL } from "@johnmorrisdotca/wakusei-planets/places/ariel";
9
+ *
10
+ * console.log(PLACES_ARIEL.length, "places;", PLACES_ARIEL.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
11
+ * ```
12
+ */
13
+ export declare const PLACES_ARIEL: readonly Place[];
@@ -0,0 +1,14 @@
1
+ // The places on Ariel: a single list. See `/places` for the record's shape and the lookups.
2
+ import { PLACES_ARIEL as DATA } from "../data/places-ariel.js";
3
+ /**
4
+ * Every place on Ariel the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
5
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACES_ARIEL } from "@johnmorrisdotca/wakusei-planets/places/ariel";
10
+ *
11
+ * console.log(PLACES_ARIEL.length, "places;", PLACES_ARIEL.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
12
+ * ```
13
+ */
14
+ export const PLACES_ARIEL = DATA;
@@ -0,0 +1,13 @@
1
+ import type { Place } from "../places.ts";
2
+ /**
3
+ * Every place on Bennu the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
4
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import { PLACES_BENNU } from "@johnmorrisdotca/wakusei-planets/places/bennu";
9
+ *
10
+ * console.log(PLACES_BENNU.length, "places;", PLACES_BENNU.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
11
+ * ```
12
+ */
13
+ export declare const PLACES_BENNU: readonly Place[];
@@ -0,0 +1,14 @@
1
+ // The places on Bennu: a single list. See `/places` for the record's shape and the lookups.
2
+ import { PLACES_BENNU as DATA } from "../data/places-bennu.js";
3
+ /**
4
+ * Every place on Bennu the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
5
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACES_BENNU } from "@johnmorrisdotca/wakusei-planets/places/bennu";
10
+ *
11
+ * console.log(PLACES_BENNU.length, "places;", PLACES_BENNU.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
12
+ * ```
13
+ */
14
+ export const PLACES_BENNU = DATA;
@@ -0,0 +1,13 @@
1
+ import type { Place } from "../places.ts";
2
+ /**
3
+ * Every place on Callisto the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
4
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import { PLACES_CALLISTO } from "@johnmorrisdotca/wakusei-planets/places/callisto";
9
+ *
10
+ * console.log(PLACES_CALLISTO.length, "places;", PLACES_CALLISTO.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
11
+ * ```
12
+ */
13
+ export declare const PLACES_CALLISTO: readonly Place[];
@@ -0,0 +1,14 @@
1
+ // The places on Callisto: a single list. See `/places` for the record's shape and the lookups.
2
+ import { PLACES_CALLISTO as DATA } from "../data/places-callisto.js";
3
+ /**
4
+ * Every place on Callisto the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
5
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACES_CALLISTO } from "@johnmorrisdotca/wakusei-planets/places/callisto";
10
+ *
11
+ * console.log(PLACES_CALLISTO.length, "places;", PLACES_CALLISTO.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
12
+ * ```
13
+ */
14
+ export const PLACES_CALLISTO = DATA;
@@ -0,0 +1,13 @@
1
+ import type { Place } from "../places.ts";
2
+ /**
3
+ * Every place on Ceres the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
4
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import { PLACES_CERES } from "@johnmorrisdotca/wakusei-planets/places/ceres";
9
+ *
10
+ * console.log(PLACES_CERES.length, "places;", PLACES_CERES.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
11
+ * ```
12
+ */
13
+ export declare const PLACES_CERES: readonly Place[];
@@ -0,0 +1,14 @@
1
+ // The places on Ceres: a single list. See `/places` for the record's shape and the lookups.
2
+ import { PLACES_CERES as DATA } from "../data/places-ceres.js";
3
+ /**
4
+ * Every place on Ceres the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
5
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACES_CERES } from "@johnmorrisdotca/wakusei-planets/places/ceres";
10
+ *
11
+ * console.log(PLACES_CERES.length, "places;", PLACES_CERES.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
12
+ * ```
13
+ */
14
+ export const PLACES_CERES = DATA;
@@ -0,0 +1,13 @@
1
+ import type { Place } from "../places.ts";
2
+ /**
3
+ * Every place on Charon the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
4
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import { PLACES_CHARON } from "@johnmorrisdotca/wakusei-planets/places/charon";
9
+ *
10
+ * console.log(PLACES_CHARON.length, "places;", PLACES_CHARON.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
11
+ * ```
12
+ */
13
+ export declare const PLACES_CHARON: readonly Place[];
@@ -0,0 +1,14 @@
1
+ // The places on Charon: a single list. See `/places` for the record's shape and the lookups.
2
+ import { PLACES_CHARON as DATA } from "../data/places-charon.js";
3
+ /**
4
+ * Every place on Charon the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
5
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACES_CHARON } from "@johnmorrisdotca/wakusei-planets/places/charon";
10
+ *
11
+ * console.log(PLACES_CHARON.length, "places;", PLACES_CHARON.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
12
+ * ```
13
+ */
14
+ export const PLACES_CHARON = DATA;
@@ -0,0 +1,13 @@
1
+ import type { Place } from "../places.ts";
2
+ /**
3
+ * Every place on Dimorphos the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
4
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import { PLACES_DIMORPHOS } from "@johnmorrisdotca/wakusei-planets/places/dimorphos";
9
+ *
10
+ * console.log(PLACES_DIMORPHOS.length, "places;", PLACES_DIMORPHOS.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
11
+ * ```
12
+ */
13
+ export declare const PLACES_DIMORPHOS: readonly Place[];
@@ -0,0 +1,14 @@
1
+ // The places on Dimorphos: a single list. See `/places` for the record's shape and the lookups.
2
+ import { PLACES_DIMORPHOS as DATA } from "../data/places-dimorphos.js";
3
+ /**
4
+ * Every place on Dimorphos the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
5
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACES_DIMORPHOS } from "@johnmorrisdotca/wakusei-planets/places/dimorphos";
10
+ *
11
+ * console.log(PLACES_DIMORPHOS.length, "places;", PLACES_DIMORPHOS.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
12
+ * ```
13
+ */
14
+ export const PLACES_DIMORPHOS = DATA;
@@ -0,0 +1,13 @@
1
+ import type { Place } from "../places.ts";
2
+ /**
3
+ * Every place on Dione the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
4
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import { PLACES_DIONE } from "@johnmorrisdotca/wakusei-planets/places/dione";
9
+ *
10
+ * console.log(PLACES_DIONE.length, "places;", PLACES_DIONE.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
11
+ * ```
12
+ */
13
+ export declare const PLACES_DIONE: readonly Place[];
@@ -0,0 +1,14 @@
1
+ // The places on Dione: a single list. See `/places` for the record's shape and the lookups.
2
+ import { PLACES_DIONE as DATA } from "../data/places-dione.js";
3
+ /**
4
+ * Every place on Dione the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
5
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACES_DIONE } from "@johnmorrisdotca/wakusei-planets/places/dione";
10
+ *
11
+ * console.log(PLACES_DIONE.length, "places;", PLACES_DIONE.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
12
+ * ```
13
+ */
14
+ export const PLACES_DIONE = DATA;
@@ -0,0 +1,13 @@
1
+ import type { Place } from "../places.ts";
2
+ /**
3
+ * Every place on Enceladus the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
4
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import { PLACES_ENCELADUS } from "@johnmorrisdotca/wakusei-planets/places/enceladus";
9
+ *
10
+ * console.log(PLACES_ENCELADUS.length, "places;", PLACES_ENCELADUS.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
11
+ * ```
12
+ */
13
+ export declare const PLACES_ENCELADUS: readonly Place[];
@@ -0,0 +1,14 @@
1
+ // The places on Enceladus: a single list. See `/places` for the record's shape and the lookups.
2
+ import { PLACES_ENCELADUS as DATA } from "../data/places-enceladus.js";
3
+ /**
4
+ * Every place on Enceladus the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
5
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACES_ENCELADUS } from "@johnmorrisdotca/wakusei-planets/places/enceladus";
10
+ *
11
+ * console.log(PLACES_ENCELADUS.length, "places;", PLACES_ENCELADUS.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
12
+ * ```
13
+ */
14
+ export const PLACES_ENCELADUS = DATA;
@@ -0,0 +1,13 @@
1
+ import type { Place } from "../places.ts";
2
+ /**
3
+ * Every place on Eros the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
4
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import { PLACES_EROS } from "@johnmorrisdotca/wakusei-planets/places/eros";
9
+ *
10
+ * console.log(PLACES_EROS.length, "places;", PLACES_EROS.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
11
+ * ```
12
+ */
13
+ export declare const PLACES_EROS: readonly Place[];
@@ -0,0 +1,14 @@
1
+ // The places on Eros: a single list. See `/places` for the record's shape and the lookups.
2
+ import { PLACES_EROS as DATA } from "../data/places-eros.js";
3
+ /**
4
+ * Every place on Eros the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
5
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACES_EROS } from "@johnmorrisdotca/wakusei-planets/places/eros";
10
+ *
11
+ * console.log(PLACES_EROS.length, "places;", PLACES_EROS.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
12
+ * ```
13
+ */
14
+ export const PLACES_EROS = DATA;
@@ -0,0 +1,13 @@
1
+ import type { Place } from "../places.ts";
2
+ /**
3
+ * Every place on Europa the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
4
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import { PLACES_EUROPA } from "@johnmorrisdotca/wakusei-planets/places/europa";
9
+ *
10
+ * console.log(PLACES_EUROPA.length, "places;", PLACES_EUROPA.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
11
+ * ```
12
+ */
13
+ export declare const PLACES_EUROPA: readonly Place[];
@@ -0,0 +1,14 @@
1
+ // The places on Europa: a single list. See `/places` for the record's shape and the lookups.
2
+ import { PLACES_EUROPA as DATA } from "../data/places-europa.js";
3
+ /**
4
+ * Every place on Europa the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
5
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACES_EUROPA } from "@johnmorrisdotca/wakusei-planets/places/europa";
10
+ *
11
+ * console.log(PLACES_EUROPA.length, "places;", PLACES_EUROPA.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
12
+ * ```
13
+ */
14
+ export const PLACES_EUROPA = DATA;
@@ -0,0 +1,13 @@
1
+ import type { Place } from "../places.ts";
2
+ /**
3
+ * Every place on Ganymede the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
4
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import { PLACES_GANYMEDE } from "@johnmorrisdotca/wakusei-planets/places/ganymede";
9
+ *
10
+ * console.log(PLACES_GANYMEDE.length, "places;", PLACES_GANYMEDE.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
11
+ * ```
12
+ */
13
+ export declare const PLACES_GANYMEDE: readonly Place[];
@@ -0,0 +1,14 @@
1
+ // The places on Ganymede: a single list. See `/places` for the record's shape and the lookups.
2
+ import { PLACES_GANYMEDE as DATA } from "../data/places-ganymede.js";
3
+ /**
4
+ * Every place on Ganymede the package knows: the sites first, by date, then the named features by size (a feature's `diameterKm` is 0 where the Gazetteer gives no size). A place's `kind` says what it is
5
+ * (`placesOfKind` from `/places` picks by it); `famous` marks the ones a page can suggest.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { PLACES_GANYMEDE } from "@johnmorrisdotca/wakusei-planets/places/ganymede";
10
+ *
11
+ * console.log(PLACES_GANYMEDE.length, "places;", PLACES_GANYMEDE.filter((place) => place.famous).map((place) => place.name.en).slice(0, 3).join(", "));
12
+ * ```
13
+ */
14
+ export const PLACES_GANYMEDE = DATA;