Skip to content

About

Evidence-first Mars-Earth terrain explorer using NASA data, interactive 3D, transparent validation, and rover field-test planning.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

PARALLAX X

An evidence-first Mars–Earth analog explorer that turns terrain measurements into transparent field-test questions.

NASA Space Apps Challenge 2026 · Ulaanbaatar · Challenge: “Identify Earth Locations that Analog the Permanent Moon Base Locations and Mars”

▶ Open the live application · Explore Expedition Lab · Method · Limitations


PARALLAX X brand film (AI-generated concept): a small rover crosses Mars, arrives on Earth, and the PARALLAX X logo appears with 'Find the right Earth experiment for Mars'
Brand film 05, 22 s, plays inline, no sound. Watch the original with sound · AI-generated concept film by team member Khuslen (V01D-404), used with permission. It is not live app footage or a scientific simulation. More films are listed under Motion & concept films.

What is PARALLAX X?

PARALLAX X asks three questions about one specific Martian landscape, the wind-carved yardangs of the Medusae Fossae Formation.

Question What the app does
Where? Which Earth places resemble it? A pre-registered fingerprint of five terrain-shape features from the CTX yardang study area is compared (Wasserstein-1) with 1,915 declared Earth windows. The result is five exploratory candidate clusters in Mongolia's Gobi, G-1…G-5.
Why? What supports the resemblance, and where does it break down? Matched-scale 3D (same 10 km, same 30 m grid), per-feature distances, the reference sites, and a pre-registered validation that failed.
What next? What would a rover field test have to measure? Expedition Lab turns a candidate's evidence into a deterministic field-test protocol and marks every property that satellite data cannot provide as not measured.
HiRISE Mars terrain in 3D with the expedition rover
Mars, HiRISE scarp scene. Measured stereo elevation in 3D. The rover is an illustrative visualization.
Mars CTX yardang study area beside Gobi candidate G-1 at the same scale
Matched-scale comparison. Mars CTX study area beside Gobi G-1: 10 km, 30 m grid, ×4 on both.
Expedition Lab wheel-mobility protocol for candidate G-1
Expedition Lab. A wheel-mobility protocol for G-1, with evidence classes and the unmeasured properties listed.

The result, stated plainly

The study design, including the pass/fail rule, was pre-registered and committed before any Mars–Earth distance was computed (commit 32b5c48, science/prereg.md).

Pre-registered validation: FAIL.

Test (pre-registered) Outcome
≥ 2 of 3 published Earth yardang fields rank at or above the 90th percentile 0 of 3: Lut Kaluts 64.6, Qaidam 17.4, Puna 85.7 (median window percentile)
The full 5-feature fingerprint beats a slope-only baseline No: 55.9 vs 63.0
Yardang fields rank above process-different look-alikes No: Namib linear dunes 85.1 rank higher; Kalpin thrust ridges 45.4
  • What it means. At the scale where public 30 m Earth elevation can be compared fairly with Mars, this terrain-geometry fingerprint cannot reliably separate yardangs from other terrain.
  • Sensitivity. 6 km windows give the same result (FAIL). An independent-DEM check (Copernicus GLO-30) is reported in the app.
  • The resolution paradox. On the separate 1 m HiRISE crop, 13.9 % of the area is steeper than 15° at a ~4 m baseline, but only 1.6 % at 180 m. A place can look similar at one scale and behave very differently at another.
  • Gobi candidates. G-1…G-5 are exploratory morphometric candidates, not confirmed analogs. They need imagery, geology and field checks.

Our contribution: we built an analog-search method, tested it, showed where it fails, and turned the remaining uncertainty into explicit field-test questions.

Expedition Lab

In Compare, select a Gobi candidate, then press Plan a field experiment. In Evidence → 3 · Where on Earth?, press Design a field test.

  • The layout.
    • Left: the candidate and an experiment selector.
    • Centre: the matched-scale 3D comparison stays on screen.
    • Right: the protocol.
  • The three experiments.
    • Wheel mobility (primary). It shows the candidate's measured slope, relief, roughness and land cover. It lists what is not measured: traction, soil bearing and shear strength, sinkage, wheel-scale rocks and mobility safety. It also gives the slip ratio s = 1 − v/(r·ω), energy per metre and sinkage, instruments, a controlled procedure, repeated trials, data-quality checks and Earth→Mars limitations. Acceptance thresholds are TO BE DEFINED from real mission requirements.
    • Rock sampling & drilling, and Thermal & energy. These are concise protocols. They do not infer drillability from topography and do not predict battery endurance.
  • Evidence classes. Every value is labelled one of:
    • Measured
    • Derived
    • Contextual
    • Not measured
    • Field verification required
  • Export. Any plan can be copied or downloaded as Markdown. The protocols are proposals: no field test has been performed.
  • The rover. The traverse button shows the rover on the separate HiRISE Mars scene, labelled "Illustrative terrain-following visualization · not a validated mobility simulation". It never drives on a Gobi candidate.
  • How plans are built. Protocols come from lib/expedition.ts (deterministic, unit-tested) using public/data/results.json and public/data/fieldtest.json.

Science and data

  • Search region. The CTX stereo DTM of the Medusae Fossae yardangs is the only Mars input to the ranking.

  • Separate HiRISE scene. The 1 m HiRISE scarp scene, about 10 km away, is a separate fine-scale demonstration: 3D exploration, the rover visualization and the resolution paradox. It did not produce the Earth matches.

  • Pipeline. Offline Python (rasterio, NumPy, SciPy):

    1. NoData masking;
    2. reprojection to a local 30 m metric grid;
    3. identical smoothing on both planets;
    4. five features: relief, slope at 180 m and 600 m, TPI, ridge elongation;
    5. ECDF normalisation against the declared null;
    6. 1-D Wasserstein distances;
    7. percentiles among the 1,915 null windows.

    No machine-learning model was trained.

  • Post-hoc, descriptive only. These two layers are logged in science/DEVIATIONS.md. Neither enters F1–F5, the ranking or the verdict.

    • Local detrended RMS roughness: 330 m and 990 m cells on the same 30 m grid.
    • ESA WorldCover 2021 v200 land-cover fractions inside the exact candidate footprints.
  • Data sources.

    • NASA PDS HiRISE DTM DTEEC_009609_1675_010453_1675_A01
    • USGS CTX DTM P16_007460_…_13S182W
    • NASA NASADEM (LP DAAC)
    • Copernicus GLO-30
    • ESA WorldCover 2021 v200
    • MGS MOLA
    • Natural Earth

    Full list and licences: docs/DATA_SOURCES.md.

Details: docs/METHOD.md · docs/DATA_CONTRACT.md · science/prereg.md.

Under the hood: the math, the code, the log

Everything below runs in this repository. The formulas are the ones implemented, and the numbers come from public/data/results.json.

PARALLAX-X // PIPELINE SUMMARY            (values from results.json, laid out as a log)
[grid]      common analysis grid ............... 30 m · Gaussian σ = 1 px on both planets
[mars]      CTX DTM P16_007460 · MFF yardangs .. fingerprint = 5 features × 199 quantiles
[earth]     NASADEM · 43 tiles ................. 1,915 declared null windows (Gobi 1,073 · Lut 842)
[metric]    ECDF-normalised Wasserstein-1 ...... D = mean(W1_F1..F5) · baseline B0 = W1_F2
[rank]      percentile vs null ................. G-1 99.97 · G-2 99.92 · G-3 99.87 · G-4 99.82 · G-5 99.77
[test]      known yardangs ≥ 90th pct (need 2/3)  Lut 64.6 · Qaidam 17.4 · Puna 85.7  -> 0/3
[test]      full fingerprint > slope-only ...... 55.9 vs 63.0                          -> NO
[test]      yardangs > look-alikes ............. Namib dunes 85.1 above two yardang fields -> NO
[robust]    6 km windows ....................... FAIL
[robust]    Copernicus GLO-30 rerun ............ FAIL · Spearman ρ = 0.968 over 2,125 windows
[why]       180 m slope keeps of a 250 m ridge .. 26 % of its gradient
[scale]     HiRISE steep area (>15°) ........... 13.9 % at 4 m  ->  1.6 % at 180 m
[verdict]   PRE-REGISTERED VALIDATION .......... FAIL
[next]      Expedition Lab ..................... traction · sinkage · soil strength = NOT MEASURED

1 · Five terrain features on a 30 m grid

  • Slope at a fixed baseline. Central differences with half-offset $h$ cells, so the baseline is $L = 2h\Delta$. $F_2$ uses $L = 180$ m and $F_3$ uses $L = 600$ m:

$$ \theta_L = \arctan\sqrt{\left(\frac{z_{x+h}-z_{x-h}}{2h\Delta}\right)^2+\left(\frac{z_{y+h}-z_{y-h}}{2h\Delta}\right)^2} $$

  • Local relief. $F_1 = P_{95}-P_{5}$ of plane-detrended elevation in 1.98 km cells.
  • Topographic position. $F_4 = z - \bar z_{\text{disk}}$, with a disk of radius ≈ 500 m (17 cells). This follows Weiss (2001).
  • Ridge elongation. $F_5$ is the structure-tensor coherence. $J$ is smoothed by a Gaussian with σ = 300 m, and the method follows Bigün & Granlund:

$$ F_5=\frac{\sqrt{(J_{xx}-J_{yy})^2+4J_{xy}^2}}{J_{xx}+J_{yy}}=\frac{\lambda_1-\lambda_2}{\lambda_1+\lambda_2}\in[0,1] $$

2 · Make the units comparable: the empirical CDF

Each feature value is mapped through the mid-rank ECDF of the pooled null samples, so metres, degrees and 0–1 scores live on the same scale:

$$ u(v)=\frac{#{p<v}+#{p\le v}}{2N} $$

# science/pipeline/search.py
def to_norm(vals, pooled):
    lo = np.searchsorted(pooled, vals, side="left")
    hi = np.searchsorted(pooled, vals, side="right")
    return (lo + hi) / (2.0 * pooled.size)

3 · Compare whole distributions: Wasserstein-1

In one dimension, optimal transport reduces to the area between the two quantile functions. It is evaluated at 199 quantile levels $p_i=(i+\tfrac12)/199$:

$$ W_1^{(k)}=\frac{1}{199}\sum_{i=0}^{198}\bigl|u_E!\left(Q_E^{(k)}(p_i)\right)-u_M!\left(Q_M^{(k)}(p_i)\right)\bigr|, \qquad D=\frac15\sum_{k=1}^{5}W_1^{(k)} $$

# science/pipeline/search.py
w1 = {k: float(np.mean(np.abs(to_norm(w.q[k], maps[k]) - mars_n[k]))) for k in FEATS}
w.D  = float(np.mean([w1[k] for k in FEATS]))   # full fingerprint
w.B0 = w1["F2"]                                  # slope-only baseline

The Watch the math chart in the app shades exactly this area for real windows. The exported curves are re-checked against the stored run, and the maximum difference is 0.0.

4 · Rank, then try to break it

  • Ranking. Every window gets a percentile among the 1,915 null windows. This is an empirical rank, not a probability.
  • The test. The pass rule was frozen in science/prereg.md before any distance existed. It then failed. Sampling explains part of why: the yardang ridges repeat every ~250–480 m, and a 180 m slope operator keeps only 26 % of a 250 m ridge's gradient. A 30 m grid acts as a low-pass filter on exactly the relief that makes yardangs distinctive.

5 · Post-hoc texture: detrended RMS roughness

Fit a plane in each 330 m (11×11) or 990 m (33×33) cell, then take the RMS of the residuals. Only complete cells with ≥ 90 % valid data count:

$$ R_{\text{rms}}=\sqrt{\frac1n\sum_{i=1}^{n}\bigl(z_i-(a+bx_i+cy_i)\bigr)^2} $$

# science/pipeline/fieldtest_posthoc.py
coef, *_ = np.linalg.lstsq(A, blk[v], rcond=None)   # A = [x, y, 1]
res = blk[v] - A @ coef
out.append(float(np.sqrt(np.mean(res ** 2))))       # metres

Results: Mars CTX median 2.63 m; Gobi clusters 1.54–3.35 m. This layer is descriptive only and never enters the ranking.

6 · What a rover field test must measure (proposed, not computed)

Expedition Lab writes these into each protocol as not measured. They are evaluated only once real field data exist:

$$ s = 1-\frac{v_{\text{ground}}}{r,\omega}\qquad \frac{E}{d}=\frac{\int V,I,dt}{d_{\text{measured}}}\qquad z_{\text{sink}}=h_{\text{ref}}-h_{\text{rut}} $$

// lib/expedition.ts: unknowns stay unknown, they are never zero
{ label: "Traction",       value: "Not measured",              cls: "not-measured" },
{ label: "Wheel sinkage",  value: "Not measured",              cls: "not-measured" },
{ label: "Rover mobility", value: "Requires physical testing", cls: "field-required" },

Similarity is not proof. Evidence comes first.

In the app

  • Welcome intro. Skippable, once per session, reduced-motion safe. It offers an optional Watch the brand film button.
  • Select. The real MOLA locator, true-size data footprints and coverage legend, with two real scenes.
  • Explore and Simulate. HiRISE terrain in 3D, the illustrative rover on a hand-drawn loop with a linked terrain profile, and the Resolution Paradox.
  • Compare. Mars and Earth at matched scale, with live transects, the ranking and Plan a field experiment.
  • Evidence. The animated W1 math, the falsification reveal (FAIL), and a candidate dossier.
  • Research analyst. Rule-based templates over results.json. It is not an AI model.
  • Judge demo. Press the Demo button or J. It runs five acts in about 30 s, and Esc skips it.
  • Films & concepts. The team's AI-generated concept films. Nothing autoplays, and video is streamed only when you press play.

Screenshots of the production site at 1920×1080, 1440×900, 1366×768 and 390×844 are in docs/screenshots/.

Motion & concept films

These are five AI-generated concept films by Khuslen (V01D-404). The originals are in V01D-404/All-demo-and-loading. They are creative media, not product footage and not scientific simulation. Full credits and rights status: docs/VISUAL_ASSETS.md.

Film Role Length Where it is used
05 · Brand film Brand identity 22 s Inline GIF at the top of this README; Watch the brand film in the intro, the Select header and the About dialog
01 · Mission concept AI storyboard (video and voice) 29 s Films & concepts gallery
02 · Boot sequence concept Motion reference 17 s Films & concepts gallery. It is not used as a loading screen.
04 · Expedition Lab interface concept Early interface concept 28 s Films & concepts gallery. It is labelled as not the implemented workflow (it shows Jezero, C1–C3 and rover slope limits).
03 · Character study Early motion exploration 12.5 s Films & concepts gallery

Run locally

npm install
npm run dev            # http://localhost:3000
npm run typecheck && npm run lint && npm test
npm run build          # static export to out/
science/.venv/Scripts/python -m pytest science/tests -q   # needs the downloaded science data

Reproducing the science: docs/METHOD.md.

Verification

These checks were run for the current release:

  • the TypeScript typecheck;
  • ESLint;
  • the Vitest suite. It covers the brand-file integrity, the Expedition Lab dossiers (no fabricated values, exact source values) and the pre-registered invariants: 1,915 windows and FAIL with 64.6 / 17.4 / 85.7 / 85.1 / 45.4 and 55.9 vs 63.0;
  • the Python science tests, including numerical tests of the roughness calculation;
  • the production build.

Browser checks were done on the deployed site. Known limitations are listed in docs/LIMITATIONS.md.

Credits, AI use and licences

  • Team. PARALLAX X, NASA Space Apps 2026, Ulaanbaatar.
    • Repository owner: BeBecpp.
    • Concept films: Khuslen (V01D-404).
  • AI assistance (docs/AI_USAGE.md):
    • Claude Code (Anthropic) generated most of the code, the pipeline, tests and documentation under the team's direction.
    • ChatGPT (OpenAI) was used to a smaller extent for research discussion and concept refinement.
    • The concept films are AI-generated.
    • The deployed site makes no AI or LLM API calls.
  • Rover model. NASA/JPL-Caltech Mars 2020 Perseverance (NASA 3D Resources), with the insignia removed. See docs/ROVER_MODEL.md.
  • Third-party data, assets and dependencies. See THIRD_PARTY_NOTICES.md. Audio credits: docs/AUDIO_CREDITS.md. Prior art: docs/PRIOR_ART.md.
  • Licence. The team's original code and documentation are released under the MIT License, with the team's approval. Data, the rover model, the concept films, fonts and dependencies keep their own terms; see THIRD_PARTY_NOTICES.md.

Not affiliated with or endorsed by NASA.

About

Evidence-first Mars-Earth terrain explorer using NASA data, interactive 3D, transparent validation, and rover field-test planning.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages