# Horizons over the finest terrain: what moves in the Sun and Earth numbers > 2026-11-20. The rule: every site uses the finest terrain data available. The fine patches (C4 `fine`, > `fine.inner`) were visual only; this puts them under the horizon (C3) that the Sun and Earth numbers and the Data > tab use. Three open choices are at the end. No download, no new dependency. > > **Reproduce:** `uv run python scripts/data/build_horizons_finest.py --all-fine` (the horizons, the null tests, the > figure; about 6 min), `node scripts/data/horizons_finest_metrics.mjs` (Sun, Earth, night), > `uv run python scripts/data/validate_horizons_finest.py` (Surveyor 3, the Apollo 17 film), > `uv run pytest tests/test_finest_horizon.py`. Numbers: [horizons_finest.json](horizons_finest.json), > [horizons_finest_metrics.json](horizons_finest_metrics.json), [horizons_finest_checks.json](horizons_finest_checks.json). > Code: `src/moonat/terrain/finest.py` (frames, units, assumptions and the near field's end in its docstring). ![Every site's horizon before and after](../figures/horizons_finest/horizons_before_after.png) ## 1. Summary - **33 horizons recomputed** over their fine patches: 20 sites on an LROC NAC model, 13 polar sites on a finer LOLA grid (5 or 10 m; IM-1 20 m on a 30 m base), 5 of them with a NAC inner patch, StarHab among them. Three polar sites are unchanged: their fine patch is the same LOLA 20 m grid the horizon already used, resampled, so it holds no finer terrain. - **Null test: exact.** The same code on the coarse layers gives back every one of the 36 horizon files as they were (largest difference 0.0000°). - **Away from the poles** the Sun's share of time moves by at most 0.4 points and the longest night by at most 2.3 h, except **Surveyor 3: −2.8 points, night +19.8 h**. It stands in a crater the coarse terrain does not have; the Apollo 12 crew's account of its shadow confirms the new horizon (section 4). - **At the poles the numbers move a lot, and they hang on ground within 100 m of the eye:** **StarHab: Sun 83.7 → 79.0 % of the time, longest night 312 → 390 h (13.0 → 16.3 days), Earth 73.2 → 76.5 %.** Haworth −4.6 points, de Gerlache rim +2.9, Mouton −2.0; de Gerlache 2's longest night 137 → 324 h (two nights that a short sunlit spell used to separate now join). At StarHab the horizon of a 2 m eye is set by ground less than 100 m away over 48 % of the azimuths (13 to 41 % at the other summit and rim sites), where 0.5 m of height is 0.3 to 1°. So the result is as good as the finest model's decimetres there, and the two finer models do not agree: at the Shackleton rim LOLA 5 m alone gives 80.1 % and with the NAC 2 m inner patch 90.4 % (section 3). **This is the main caveat of this note.** - The eye now stands 2 m above the **fine** ground at the site, in the numbers and in the 3D view (it stood on the coarse DEM's ground: 10.9 m under the real surface at Luna 24, 7.3 m above it at Surveyor 3). Section 5. ## 2. Where the near field ends, and why - **The near field is the fine patch's square**, ±500 to ±1500 m around the site point (the table's second column), because that is where the fine data shipped with the app ends. Nothing is extrapolated. - Inside 85 % of the half width the ground is the fine patch alone. Over the outer 15 % it is blended into the next layer (smoothstep in max(|east|, |north|)), exactly as the 3D view draws it. Without the blend the 2 to 5 m by which two models differ would stand as a cliff 500 m from the eye, 0.2 to 0.6° high: a false skyline. An inner patch is laid into the fine patch by the same rule. - **Beyond the square nothing changed:** SLDEM2015 or LOLA to 30 km (17.5 km at ten polar sites), LDEM_64, LDEM_16, one sample per cell of the layer in use, and each ray ends by the same rigorous bound (no terrain below the highest loaded height plus 300 m can rise above the running horizon beyond that distance). The bound now also counts the fine patch's highest ground. The ray's step inside the square is the patch's spacing (2 to 10 m). - **A patch is used only when it is finer** than what lies behind it (spacing under 0.75 of that layer's cell). - **What remains outside:** an error dh of the coarse ground at distance r moves the horizon by about dh / r. SLDEM2015's 3 to 4 m noise is 0.4° at 500 m, 0.15° at 1.5 km, 0.04° at 5 km. A ±500 m patch removes the worst of it only: at Apollo 11 the horizon to the south-west is still +1.3°, set 0.7 km away, just outside the patch, and the shipped data cannot tell whether that rise is real. The NAC models on disk reach further than the patches; using them directly for the horizon is a possible next step (open choice 3). ## 3. The table: what moves Window: the calendar year 2027, a sample every 10 minutes, eye 2 m. **Sun** and **Earth**: share of the time with any part of the disk in view (the Earth's shadow counts as no Sun). **Night**: the longest stretch without any sunlight. **Max change**: the largest change of the horizon at one azimuth (before → after). **Within 100 m**: the share of azimuths whose new horizon is set by ground less than 100 m from the eye. | Site | Finest terrain near the site; near field | Ground under the eye (m) | Max change of the horizon | Mean / RMS change (°) | Sun, % of time | Earth, % of time | Longest night (h) | Within 100 m | |---|---|---|---|---|---|---|---|---| | `apollo11` | NAC APOLLO11; ±500 m at 2 m | +2.04 | 2.03° at az 340° (+1.96 → -0.08) | -0.87 / 1.03 | 48.36 → 48.53 (**+0.17**) | 100.00 → 100.00 (+0.00) | 356.5 → 355.2 (**-1.3**) | 0 % | | `apollo12` | NAC APOLLO12; ±500 m at 2 m | +1.78 | 1.69° at az 65° (+2.07 → +0.39) | -0.36 / 0.61 | 48.84 → 49.08 (**+0.24**) | 100.00 → 100.00 (+0.00) | 355.7 → 354.0 (**-1.7**) | 0 % | | `apollo14` | NAC APOLLO14; ±500 m at 2 m | +0.36 | 0.19° at az 335° (+0.26 → +0.45) | -0.00 / 0.04 | 48.05 → 48.07 (**+0.02**) | 100.00 → 100.00 (+0.00) | 360.3 → 360.3 (**+0.0**) | 1 % | | `apollo15` | NAC APOLLO15; ±500 m at 2 m | +2.64 | 0.79° at az 247° (+1.22 → +2.00) | +0.09 / 0.23 | 46.11 → 46.00 (**-0.11**) | 100.00 → 100.00 (+0.00) | 375.8 → 376.7 (**+0.8**) | 0 % | | `apollo16` | NAC APOLLO16_2; ±500 m at 2 m | -3.46 | 1.56° at az 354° (+4.17 → +2.61) | -0.04 / 0.51 | 48.39 → 48.32 (**-0.07**) | 100.00 → 100.00 (+0.00) | 356.5 → 357.0 (**+0.5**) | 13 % | | `apollo17` | NAC APOLLO17_1; ±1500 m at 10 m, inner ±500 m at 2 m | +0.36 | 0.20° at az 302° (+2.00 → +1.80) | -0.00 / 0.01 | 46.65 → 46.65 (**+0.00**) | 100.00 → 100.00 (+0.00) | 369.8 → 369.8 (**+0.0**) | 0 % | | `beresheet` | NAC BERESHEET1; ±750 m at 3 m | -0.94 | 0.49° at az 281° (+1.12 → +0.63) | -0.04 / 0.11 | 48.53 → 48.57 (**+0.05**) | 100.00 → 100.00 (+0.00) | 358.5 → 358.3 (**-0.2**) | 0 % | | `blueghost1` | NAC CRISHORSE01; ±750 m at 3 m | +1.60 | 2.50° at az 50° (+2.41 → -0.09) | -0.43 / 0.81 | 48.94 → 49.08 (**+0.14**) | 100.00 → 100.00 (+0.00) | 357.2 → 356.3 (**-0.8**) | 0 % | | `chandrayaan3` | NAC VIKRAMSITE1; ±750 m at 3 m | +3.38 | 0.29° at az 176° (+0.53 → +0.82) | -0.01 / 0.04 | 46.83 → 46.89 (**+0.07**) | 100.00 → 100.00 (+0.00) | 381.7 → 381.2 (**-0.5**) | 0 % | | `change3` | NAC CHANGE3; ±1250 m at 5 m | +2.82 | 3.40° at az 352° (+3.50 → +0.10) | -0.38 / 1.10 | 49.00 → 48.74 (**-0.26**) | 100.00 → 100.00 (+0.00) | 359.3 → 360.8 (**+1.5**) | 31 % | | `change4` | NAC CHANGE4; ±1250 m at 5 m | +0.14 | 1.26° at az 2° (+1.58 → +0.31) | -0.14 / 0.32 | 50.85 → 51.04 (**+0.18**) | 0.00 → 0.00 (+0.00) | 364.2 → 363.0 (**-1.2**) | 0 % | | `change5` | NAC CHANGE501; ±750 m at 3 m | +4.76 | 1.10° at az 303° (+1.21 → +0.12) | -0.14 / 0.23 | 49.81 → 49.89 (**+0.09**) | 100.00 → 100.00 (+0.00) | 358.5 → 357.8 (**-0.7**) | 0 % | | `change6` | NAC CHANGE6; ±1000 m at 4 m | +3.16 | 1.99° at az 36° (+2.07 → +0.08) | -0.37 / 0.65 | 51.28 → 51.54 (**+0.26**) | 0.00 → 0.00 (+0.00) | 361.0 → 359.0 (**-2.0**) | 0 % | | `luna16` | NAC LUNA16; ±500 m at 2 m | -3.86 | 1.19° at az 182° (+1.33 → +0.14) | +0.01 / 0.31 | 48.67 → 48.58 (**-0.10**) | 100.00 → 100.00 (+0.00) | 356.2 → 356.8 (**+0.7**) | 0 % | | `luna20` | NAC LUNA20_1; ±500 m at 2 m | +0.06 | 0.76° at az 213° (+2.49 → +1.73) | -0.04 / 0.16 | 46.71 → 46.71 (**+0.00**) | 100.00 → 100.00 (+0.00) | 371.2 → 371.2 (**+0.0**) | 14 % | | `luna21` | NAC LUNOKHOD2_1; ±1250 m at 5 m | +1.80 | 0.77° at az 298° (+0.98 → +0.21) | -0.08 / 0.18 | 47.77 → 47.78 (**+0.01**) | 100.00 → 100.00 (+0.00) | 364.0 → 364.0 (**+0.0**) | 0 % | | `luna24` | NAC LUNA24; ±500 m at 2 m | +10.88 | 1.68° at az 218° (+1.68 → -0.00) | -0.47 / 0.67 | 48.59 → 48.97 (**+0.38**) | 100.00 → 100.00 (+0.00) | 358.8 → 356.5 (**-2.3**) | 0 % | | `slim` | NAC THEOPHILUS3; ±750 m at 3 m | -0.22 | 0.22° at az 301° (+4.53 → +4.76) | +0.01 / 0.03 | 46.55 → 46.55 (**+0.00**) | 100.00 → 100.00 (+0.00) | 370.0 → 370.0 (**+0.0**) | 0 % | | `surveyor3` | NAC APOLLO12; ±500 m at 2 m | -7.26 | 8.18° at az 62° (+0.46 → +8.64) | +4.45 / 4.89 | 49.13 → 46.36 (**-2.77**) | 100.00 → 100.00 (+0.00) | 353.7 → 373.5 (**+19.8**) | 55 % | | `surveyor7` | NAC SURVEYOR7; ±500 m at 2 m | +1.38 | 0.93° at az 204° (+4.51 → +5.44) | +0.16 / 0.30 | 46.21 → 46.09 (**-0.11**) | 100.00 → 100.00 (+0.00) | 376.0 → 376.8 (**+0.8**) | 0 % | | `starhab` | NAC ESALL_MP1; ±1500 m at 10 m, inner ±500 m at 2 m | +0.32 | 1.42° at az 258° (-2.06 → -0.64) | +0.07 / 0.47 | 83.65 → 78.98 (**-4.67**) | 73.16 → 76.55 (+3.38) | 312.0 → 390.3 (**+78.3**) | 48 % | | `art_cabeusb` | LOLA 80S_20M, 20 m: the grid the horizon already used; **unchanged** | 0 | 0 | 0 | 61.53 | 74.27 | 415.3 | | | `art_degerlache2` | LOLA 875S_5M; ±1000 m at 5 m | -0.12 | 0.43° at az 54° (-0.46 → -0.02) | +0.06 / 0.12 | 79.67 → 78.28 (**-1.39**) | 57.61 → 56.30 (-1.31) | 137.0 → 324.0 (**+187.0**) | 29 % | | `art_haworth` | LOLA 85S_10M; ±1500 m at 10 m | -0.58 | 0.70° at az 30° (+2.00 → +2.69) | +0.19 / 0.31 | 63.82 → 59.26 (**-4.55**) | 52.84 → 51.37 (-1.47) | 545.5 → 572.3 (**+26.8**) | 32 % | | `art_malapert` | LOLA 85S_10M; ±1500 m at 10 m | +0.02 | 0.38° at az 336° (+0.95 → +1.33) | +0.05 / 0.10 | 79.23 → 78.86 (**-0.37**) | 62.41 → 62.47 (+0.06) | 350.7 → 354.3 (**+3.7**) | 13 % | | `art_mouton` | LOLA 85S_10M; ±1500 m at 10 m | -0.24 | 0.73° at az 90° (+0.07 → +0.80) | +0.10 / 0.17 | 78.25 → 76.25 (**-2.00**) | 62.42 → 61.70 (-0.72) | 245.3 → 247.2 (**+1.8**) | 13 % | | `art_mouton_plateau` | LOLA 80S_20M, 20 m: the grid the horizon already used; **unchanged** | 0 | 0 | 0 | 52.23 | 100.00 | 357.0 | | | `art_nobile1` | LOLA 85S_10M; ±1500 m at 10 m | -0.10 | 0.43° at az 150° (-4.47 → -4.04) | +0.07 / 0.14 | 63.93 → 62.98 (**-0.94**) | 74.98 → 75.14 (+0.16) | 355.8 → 344.3 (**-11.5**) | 41 % | | `art_nobile2` | LOLA 80S_20M, 20 m: the grid the horizon already used; **unchanged** | 0 | 0 | 0 | 52.98 | 63.41 | 359.2 | | | `art_slater` | LOLA 875S_5M; ±1000 m at 5 m | +0.06 | 0.29° at az 12° (+0.51 → +0.80) | +0.00 / 0.04 | 46.38 → 46.39 (**+0.01**) | 40.29 → 40.29 (+0.00) | 588.2 → 590.5 (**+2.3**) | 2 % | | `degerlache_rim` | LOLA 875S_5M; ±1000 m at 5 m | +0.74 | 0.75° at az 67° (+1.43 → +0.69) | -0.17 / 0.29 | 75.61 → 78.54 (**+2.92**) | 48.21 → 50.17 (+1.96) | 188.0 → 164.7 (**-23.3**) | 24 % | | `im1` | NAC MALAPERTA01; ±1500 m at 20 m, inner ±750 m at 3 m | -2.78 | 1.28° at az 38° (+0.80 → +2.08) | +0.20 / 0.35 | 38.60 → 38.05 (**-0.55**) | 100.00 → 100.00 (+0.00) | 451.0 → 457.2 (**+6.2**) | 16 % | | `im2` | NAC NOBILE03; ±1500 m at 10 m, inner ±1000 m at 4 m | -0.60 | 0.29° at az 141° (+1.82 → +2.11) | +0.02 / 0.04 | 45.58 → 45.49 (**-0.09**) | 93.32 → 93.26 (-0.06) | 411.2 → 411.5 (**+0.3**) | 0 % | | `malapert_massif` | NAC MALAPERT02; ±1500 m at 10 m, inner ±1000 m at 4 m | -0.10 | 0.42° at az 127° (+3.01 → +3.43) | +0.04 / 0.13 | 50.26 → 50.66 (**+0.39**) | 100.00 → 100.00 (+0.00) | 352.3 → 352.7 (**+0.3**) | 34 % | | `shackleton_rim` | NAC ESALL_CR1; ±1000 m at 5 m, inner ±500 m at 2 m | +0.44 | 0.70° at az 343° (-2.05 → -2.75) | -0.03 / 0.18 | 90.89 → 90.40 (**-0.49**) | 55.47 → 55.47 (+0.00) | 195.5 → 195.3 (**-0.2**) | 20 % | | `south_pole` | LOLA 875S_5M; ±1000 m at 5 m | -0.12 | 0.67° at az 273° (+10.23 → +10.90) | +0.10 / 0.17 | 28.94 → 28.76 (**-0.18**) | 28.89 → 28.75 (-0.13) | 651.0 → 651.0 (**+0.0**) | 0 % | How to read it: - **Negative mean changes away from the poles** (Apollo 11 −0.87°, Luna 24 −0.47°, Blue Ghost −0.43°, Chang'e 3 −0.38°, Chang'e 6 −0.37°, Apollo 12 −0.36°) are SLDEM2015's noise leaving: broad humps of 2 to 3.6° that the coarse horizon had 100 to 400 m from the site and the NAC models do not show (the figure). The Sun gains 0.1 to 0.4 points there. - **The five polar sites with an inner NAC patch**, the fine patch alone against both levels: | Site | Sun, % of time: before / LOLA fine patch alone / with the NAC inner patch | Longest night, h: the same three | |---|---|---| | `starhab` | 83.7 / 80.2 / 79.0 | 312 / 380 / 390 | | `im1` | 38.6 / 38.5 / 38.0 | 451 / 451 / 457 | | `im2` | 45.6 / 45.6 / 45.5 | 411 / 411 / 412 | | `malapert_massif` | 50.3 / 49.2 / 50.7 | 352 / 359 / 353 | | `shackleton_rim` | 90.9 / 80.1 / 90.4 | 196 / 218 / 195 | The two finer models pull the same way at StarHab (−3.4, then −4.7 points) and opposite ways at the Shackleton rim (−10.8 with LOLA 5 m alone, −0.5 with the NAC model in it) and the Malapert massif. At the rim the LOLA 5 m grid puts ground between its tracks that the NAC model does not confirm. - **The StarHab study's own 2 m figures** (2030 to 2040, LOLA 20 m: 76.7 % Sun as mean visible flux, 67.4 % Earth) no longer match the catalog horizon: the same measure is now 72 % for 2030, was 77 to 78 %. The study is not changed here. The catalog's words for StarHab ("longest night 7 days", a 10 m mast) are for another eye height and are not touched either. A mast lifts the eye over the nearest ground, so these numbers should move much less at 10 m; not computed here. ## 4. Validation **Null tests (all 36 sites).** "Before", computed now from the usual layers, equals the horizon file shipped before this change at every azimuth: largest difference 0.0000°. And the new code path fed with coarse data (a fine patch sampled from the usual layers on the real patch's grid): | | Largest difference from "before", over the sites | |---|---| | Same step along the ray as before | 0.004 to 0.08° at 25 sites; 0.10 to 0.46° at 8 (Chang'e 5 0.33°, IM-1 0.46°, six polar summits and rims) | | The patch's own, finer step | 0.03 to 0.8°; Chang'e 5 1.65° | The differences sit where the old horizon was set by the first or second sample, 20 to 60 m from the eye: there the second interpolation of a rough coarse grid changes the ground by decimetres (Chang'e 5: one sharp SLDEM2015 cell), and a finer step finds ground between the old samples. They are the size of the method's own noise at that range, not an error of the new path; with real fine data the terrain there is replaced anyway. **A published illumination record: Surveyor 3 in its crater, 19 to 20 November 1969** (Apollo Lunar Surface Journal, Apollo 12, commentary at 114:25:15 and 115:23; on disk). The Journal: the ground around the lander was still in shadow while the Sun stood 7.1°, 7.6° and 9.2° high in the east, its top (10 ft up) was in sunlight, and by the visit late in the second moonwalk "it was no longer in the shadow"; the lander sat "at 11 degrees"; the crater is about 650 ft (198 m) across. | UTC | Sun, Moonat (Journal) | Journal | Before: Sun's visible share at 0.1 / 2 / 3.05 m | After: at 0.1 / 2 / 3.05 m | |---|---|---|---|---| | 19 Nov 10:47 | 7.11° at az 91.1° (7.1° at 91.1°) | ground in shadow, top 3.7 ft lit | 1 / 1 / 1 | **0 / 0 / 1** | | 19 Nov 11:45 | 7.60° (7.6°) | ground in shadow, half the lander lit | 1 / 1 / 1 | **0 / 0.003 / 1** | | 19 Nov 14:52 | 9.17° (9.2°) | ground and the bottom 1.7 ft in shadow | 1 / 1 / 1 | **0 / 1 / 1** | | 20 Nov 06:22 | 17.0° | no longer in the shadow | 1 / 1 / 1 | **1 / 1 / 1** | The coarse terrain has no crater there (horizon to the east +0.2 to +0.6°) and puts the lander in full Sun at all four times. The new horizon to the east is the crater wall: 12.0° from the ground, 7.9° from 2 m, 6.3° from 3.05 m. It gives the Journal's sequence. The one difference is the shadow line at 11:45: about 2.0 m up here, 1.5 m in the Journal's estimate, which assumes a 10° slope and 120 ft to the rim (0.5 m at 37 m is 0.8°). From the patch: slope at the site 12.4°, uphill toward azimuth 71° (the east inner wall); the floor 8.8 m below the site and 73 m from it; the ground levels off 17 m above the floor, 120 to 130 m from its lowest point. **The Apollo 17 film skyline** (the far hills in NASA's TV film, through the camera of [a17_geometry.md](a17_geometry.md)), against the horizon computed here from the rover's eye (LROC's rover place, 1.6 m up; 161 columns): | | Eye's ground (m) | Film minus horizon: median | RMS about the median | Skyline set at | |---|---|---|---|---| | Before (coarse) | −2633.90 | −0.007° | 0.027° | 0.9 to 28.6 km | | After (finest: 5 m patch and 2 m inner patch) | −2628.05 | +0.029° | 0.033° | 12.9 to 28.6 km | Both fit to 2 arcminutes (one film pixel is 1.8). The camera was fitted to the "before" skyline from an eye 5.9 m lower, which is the +0.03° median; this check tests the far field and shows it is intact. The near field at Apollo 17 is tested by the LM's base (a17_geometry.md: 2° wrong before, 0.00 to 0.05° now). **A published illumination value at a polar site:** Bussey et al. 2010 give 74 % for their Malapert point M1 (2.5 km from the catalog's `art_malapert`). Mean visible share of the Sun's flux over 2027: 75.9 % before, **75.2 %** after. **Tests** (`tests/test_finest_horizon.py`, synthetic ground with exact answers, no raw data): the heights a patch was built from come back to 2 mm; the blend (10 m of difference: 10, 5 and 0 m at 85, 92.5 and 100 % of the half width); a smooth sphere's dip (−0.0870°) with and without a patch; a 10 m wall 100 m away (4.57°); a 7 m crater under the eye; the shipped files. `web/tests/sky_patch_prefetch.test.mjs`: the view's zero. **App and suites:** `uv run pytest` 631 passed; `node --test web/tests/` 1205 passed; `uv run ruff check .` clean; `scripts/check_pwa.py` no failure; `check_third_person.py --only desktop-dark` 34 ok, `check_apollo_3d.py --only apollo17` 56 ok, `check_view_terrain.py` 0 failures after one edit: its second StarHab moment was picked for a Sun fully clear of the old skyline, and the new skyline hides 9 % of the disk then (the check now asks for more than half the disk and lit ground). ## 5. What else changed in the app - **The eye stands on the fine ground, in the numbers and in the view.** The numbers: the C3 eye is 2 m above the finest patch's ground at the site (at Luna 24 that is 10.9 m above the coarse DEM's ground, at Surveyor 3 7.3 m below it). The view: the first-person eye is put on the ground as drawn at the site point plus the eye height (`web/js/sky/index.js` `siteEyeY`), which is the same patch value. One rule. `tests/test_finest_horizon.py` holds the numbers' side: each C3 file's ground is the C4 ground point plus the finest patch's value at the site (0.05 m). - **`ground_elev_m` of a recomputed C3 file** is the fine ground at the site; the files have a new key `near_field` (the patch's reach and spacing; docs/CONTRACTS.md C3). - **The photo gallery keeps the SLDEM2015 horizons** for the four photos that used a catalog horizon (Apollo 11, Apollo 15, two Surveyor 3 pictures): their fits were made against those, and the gallery's own terrain is SLDEM2015. The three files as they were are in `web/data/gallery_c3/` (59 KB). The gallery is otherwise untouched, so its Surveyor 3 pictures still show no crater. - Tests that held old values were updated: the eclipse fixture (the eye's height changed by metres at Apollo 11 and Blue Ghost), Malapert's longest night in the AI-mode example (311 → 324 h), the StarHab band (see section 3), and Beresheet's source line. ## 5b. Option (c), prepared: ground nearer than 25 m hides nothing One flag: `uv run python scripts/data/build_horizons_finest.py --all-fine --polar --min-dist 25` (add `--check` for a trial that writes no horizon file). The eye still stands 2 m above the fine ground; terrain within 25 m of it cannot set the horizon, as if the eye looked over it. The files as shipped are option (a). Polar rows, the year 2027: **At 25 m nothing moves: all 16 polar rows equal option (a) to the last digit.** No polar horizon is set by ground nearer than 25 m (StarHab's nearest horizon-setting ground is 26 m from the eye; its near horizons are set 26 to 80 m away). So option (c) needs a larger distance to do anything, 50 or 100 m, and that is a stronger statement about the site ("the ground is level with the site out to there"). The flag takes any distance. A quick trial at 100 m, three sites (Sun % of time before / option (a) / 100 m; longest night h): StarHab 83.7 / 79.0 / 84.9 and 312 / 390 / 283; Shackleton rim 90.9 / 90.4 / 90.4 and 196 / 195 / 195; Haworth 63.8 / 59.3 / 61.6 and 546 / 572 / 561. The other polar sites were not run at 100 m (the metrics file holds the 25 m trial for them). ## 5c. StarHab's new values over the study's window `node scripts/data/horizons_finest_study_window.mjs` ([horizons_finest_study_window.json](horizons_finest_study_window.json)). 2030-01-01 to 2041-01-01 UTC, eye 2 m, a sample every 10 minutes (578 592). **Time**: share of the time with any part of the disk in view. **Disk**: mean visible share of the disk (terrain only). The study's figures are the disk measure: the coarse horizon gives them back, 76.8 % and 67.4 % against the study's **76.7 % Sun and 67.4 % Earth**. The Sun's flux share (limb darkened, the Earth's shadow counted) is 0.04 to 0.06 points under the disk share in every row. | Site | Horizon | Sun, time % | Sun, disk % | Earth, time % | Earth, disk % | Longest night | |---|---|---|---|---|---|---| | StarHab | as it was (coarse) | 82.4 | 76.8 | 73.1 | 67.4 | 313 h (13.0 d) | | StarHab | (a) finest, as built | **77.7** | **73.2** | **76.1** | **70.0** | **392 h (16.3 d)** | | StarHab | (c) ground within 100 m ignored | **83.8** | **78.9** | **76.4** | **70.2** | **284 h (11.8 d)** | | Shackleton rim | as it was (coarse) | 90.2 | 85.3 | 58.3 | 53.4 | 230 h (9.6 d) | | Shackleton rim | (a) finest, as built | 89.7 | 84.8 | 58.3 | 53.4 | 198 h (8.2 d) | | Shackleton rim | (c) ground within 100 m ignored | 89.7 | 84.9 | 58.3 | 53.4 | 198 h (8.2 d) | | Haworth | as it was (coarse) | 62.9 | 56.0 | 55.0 | 50.2 | 548 h (22.8 d) | | Haworth | (a) finest, as built | 58.3 | 50.5 | 52.8 | 48.1 | 575 h (24.0 d) | | Haworth | (c) ground within 100 m ignored | 60.6 | 52.9 | 53.8 | 49.1 | 564 h (23.5 d) | So for StarHab at 2 m, against the study's 76.7 % / 67.4 %: **(a) 73.2 % Sun, 70.0 % Earth, longest night 16.3 days (was 13.1); (c) at 100 m 78.9 % Sun, 70.2 % Earth, 11.8 days.** The Earth gains 2.6 to 2.8 points either way; the Sun and the night turn on whether ground within 100 m of the eye counts. ## 5d. Choice (2026-11-21): option (a) everywhere, and StarHab at 10 m - The finest-terrain horizons go in as built, for all sites. - **StarHab at 10 m:** StarHab's numbers (C3 horizon, Sun and Earth, longest night, the Data tab) are for an eye 10 m above the ground, the base's mast, as its study and catalog text use. The catalog entry has `eye_height_m: 10` (C2); `web/data/horizons/starhab.json` is computed at 10 m on the finest terrain (`build_horizons_finest.py` `EYE_HEIGHT_BY_SITE`); the app uses the site's own height for its numbers (`physics_adapter.js` `siteFor`) and says so in the Data tab ("Eye height: at 10 m, the base's mast"); the 3D view keeps StarHab's viewpoint at a person's height. Every other site stays at 2 m. - StarHab, 2030-01-01 to 2041-01-01, 10-minute samples, eye 10 m: | Measure | Finest terrain, 10 m | The study, 10 m mast (LOLA 20 m) | |---|---|---| | Sun, mean visible flux share | **82.06 %** | 82.05 % | | Sun, mean visible disk share | 82.10 % | 82.09 % | | Sun in view, share of time | 85.15 % | 85.12 % | | Earth, mean visible share | **98.34 %** | 98.34 % | | Earth in view, share of time | 100 % | 100 % | | Longest night | **7.0 days** (168 h, from 2034-12-07) | 7.0 days | | Longest Earth blackout | 0 | 0 | At 10 m the eye looks over the ground within 100 m, so the finest terrain and the study's LOLA 20 m agree to 0.03 points: the 2 m sensitivity of section 3 is gone. The catalog text ("82 %", "98 %", "7 days") stands. - In `horizons_finest.json` StarHab's row now compares the 10 m horizon with the 2 m one of before (max change 4.65°); the table of section 3 shows StarHab at 2 m, as it was computed before this choice. - Not adapted: at StarHab an eye height other than 2 or 10 m (no control for it in the page) would be derived as if the file were at 2 m. ## 6. Open choices 1. **Polar sites, eye 2 m: do the finest horizons go live as they are?** They follow the rule above and are what the view draws, but StarHab loses 4.7 points of Sun and gains 3.3 days of longest night on the strength of 1 to 2 m of relief within 50 m of the eye in a 2 m stereo model whose own precision is of that order, laid on LOLA with a fitted offset. Options: (a) as built (the default; chosen, section 5d); (b) the polar sites on the LOLA fine patch only, without the NAC inner patch, for the numbers; (c) leave out ground nearer than a set distance (`horizon_profile` has `min_dist_m`), which is the same as saying the numbers are for a site "cleared" around the eye; (d) quote the polar numbers at a mast height. 2. **StarHab's published figures** (the study's 76.7 % and 67.4 % at 2 m, the catalog text) against the catalog horizon's new 72 %: which is the reference? 3. **A wider near field from the NAC models themselves** (they reach kilometres beyond the ±500 m patches) for the horizon only. It would settle cases like Apollo 11's remaining +1.3° to the south-west. ## 7. Not done, not verified - The view's change was checked by its unit test and the app checks above, not by looking at each site's first person view. - Gläser et al. 2014's connecting-ridge points are custom points, not catalog sites; not re-run. - Other products computed from horizons were not rebuilt: the suggested dates and any precomputed site facts, the whole-Moon layers (they have their own terrain), the StarHab study. - No site without a fine patch changed. The 14 impact-site pins and the live-terrain pins are as they were.