← All work

One Rock or Two? Letting Physical Shape Models Compete

Model selectionInference
Problem
Decide between competing physical explanations for the same data, and decline to pick a winner when the data cannot support one.
Data
Archival light curves (brightness measured over time) of asteroids (216) Kleopatra, (433) Eros, and 2001 QG298, plus synthetic test cases with known answers.
Built
A tested Python package with three physical models, a ray tracer for two bodies that eclipse and shadow each other, and a graded verdict.
Builds on
A published method (Lacerda & Jewitt 2007), implemented and extended in one day in July 2026.
Performance
Ray tracer within about 0.1% of the exact light curve where one exists; reproduces the published tables of Lacerda & Jewitt (2007).
Comparable client project
About 2 to 3 weeks per object, including data vetting, a written report, and handover.

Client estimates start from my recorded hands-on time, add a margin for meetings and off-computer work, then add time to vet and reconcile the client’s data, background research, a written report, and handover, counted in 40-hour weeks.

Kleopatra light curve with three model fits, the two-body model following the deepest dips; below, rendered images of the single-body and two-body shapes at four points in the rotation
Asteroid (216) Kleopatra’s light curve (dots) with three models fit to the same data. The red contact-binary model reaches the sharp, deep minima that the single-body models (dashed) cannot. Below, the best single-body and two-body shapes, rendered at four points in the rotation.

Telling one elongated asteroid from two touching ones

Asteroid (216) Kleopatra’s brightness more than doubles and falls back twice in every 5.4-hour rotation. A single elongated body could do that. So could two bodies orbiting in contact. The light curve looks ambiguous to the eye; is it?

Fitting three physical models to one light curve

SoloDuet fits three physically motivated models to the same light curve, following Lacerda & Jewitt (2007): a Jacobi ellipsoid (the shape a spinning body settles into if it behaves like a fluid), a free ellipsoid with any proportions, and a Roche contact binary (two bodies orbiting in contact, each stretched by the other’s gravity). Each model returns physical quantities such as density and mass ratio, not just a curve.

Rendering eclipses and grading the evidence

Two touching bodies eclipse and shadow each other as they turn, so their combined brightness has no simple formula. SoloDuet renders them with its own ray tracer, written in NumPy, which agrees with the exact answer to about 0.1% where one exists. SoloDuet then gives a graded verdict (indistinguishable, weak, moderate, strong, or very strong) based on how much better the best model fits, and declines to call a winner when the difference is too small to mean anything.

Testing on synthetic binaries and a known single body

SoloDuet’s physics reproduces the classic transition between spinning fluid shapes (the Maclaurin–Jacobi bifurcation) to one part in 100,000 and matches the published tables of Lacerda & Jewitt (2007). A synthetic two-body test with a mass ratio of 0.80 comes back as 0.80 with a “very strong” verdict, and the tool reproduces Lacerda & Jewitt’s verdict on the known contact binary 2001 QG298.

The most useful test is one where the answer is “one rock.” The NEAR spacecraft orbited asteroid (433) Eros and found a single elongated body. On Eros, SoloDuet leans toward a single body, with a fitted width-to-length ratio (0.39) close to the spacecraft’s 0.33, but only weakly, and one neighboring night of data tips it the other way. That is why a verdict from a single night gets checked against other nights before it counts.

Kleopatra fits best as a two-lobed contact binary

On Kleopatra the contact-binary model fits best, with a reduced chi-squared of 2.8 against 6.9 and 7.5 for the single-body models (lower is better; 1 is as good as the errors allow): a “moderate” verdict from one archival night of 30 measurements. It returns two lobes of nearly equal mass (ratio about 0.9) and a density of 3.8 g/cm³, 12% above the 3.4 g/cm³ measured from the orbits of Kleopatra’s own small moons. Radar and sharpened ground-based telescope images (adaptive optics) independently show Kleopatra as a two-lobed body, as the photometry-only verdict suggested.

Choosing between rival explanations with graded evidence

Choosing between competing explanations for the same data: failure modes in engineering test data, rival growth or demand models, or competing hypotheses in a study. The value is a verdict that says how strong the evidence is, including when the honest answer is “can’t tell yet.”

Tools: Python, NumPy, SciPy, ray tracing, chi-squared model comparison, pytest

Read the code: SoloDuet on GitHub →