Astronomy · measurement technique · Sostrup 2026

The Moon's orbit
from a photograph

Five pictures of the Moon, taken through a 114 mm telescope from a farmyard on Djursland, together contain enough to determine the semi-major axis, the eccentricity, the direction of the line of apsides and the orbital period. No star background, no astrometry, no pointing direction — only the limb of the disc and the shadow boundary across it.

The measurement chain

Photograph 2048×1536 px Radius of the limb R i pixels The terminator semi-axis of the ellipse Distance r km Phase angle i → elongation ψ Longitude λ Position of the Sun The ellipse a, e, ϖ, T

1The object that refuses to be measured

The Moon is at once the easiest and the hardest object in the sky to determine an orbit for. Easy, because it is large, bright and close: its horizontal parallax is about 57 arcminutes, whereas a comet in the outer Solar System does not give us fractions of an arcsecond. Hard, because it is in return the classic example of the two-body problem breaking down.

The Sun's perturbation of the lunar motion is of the order \(m^2=(n'/n)^2\approx 1/179\) — enormous compared with what the planets do to a comet over a short arc. The consequences have names, because they were discovered long before they were explained: the evection of 1.27°, the variation of 0.66°, the annual equation of 0.19°. The line of apsides turns 0.11° per day and goes all the way round in 8.85 years; the line of nodes runs backwards in 18.6 years. In other words, the Moon has no unique orbital elements. This is where Newton said the matter gave him a headache.

The usual route to an orbit goes through directions: three positions in the sky at three known times, and then Gauss' method. But directions require astrometry, and astrometry on the Moon is troublesome — it is far too bright for a telescope to recognise the star field around it. The question in this article is a different one:

The question How much can be obtained from the photographs alone — without knowing where the telescope was pointing?

The answer turns out to be: almost everything. And the method is not Gauss'. It is Kepler's.

2Two yardsticks in one picture

A picture of the Moon contains two completely independent geometric quantities, and both are scale-free in the sense that they depend only on ratios between lengths in the image.

Five photographs of the Moon from 19 to 25 May 2026, from a thin crescent to more than half
Figure 1. The five nights, all taken with the same instrument and the same focal length, here scaled equally by the radius of the limb. From the left the illuminated part grows from a thin crescent to well over half. Two things change systematically: the size of the disc in pixels (the Moon is receding from perigee) and the position of the shadow boundary (the phase is growing). Those are the two yardsticks.

The limb is the outer edge of the disc. It is a circle — the projection of a sphere — and its radius in pixels gives the apparent angular diameter, and thus the distance.

The terminator is the shadow boundary. It is the projection of a great circle on the sphere, i.e. an ellipse with the same centre and the same semi-major axis as the limb. Its semi-minor axis gives the phase angle — the angle Sun–Moon–Earth — and hence, when the Sun's position is known, the direction to the Moon relative to the Sun.

Photograph from 22 May with the fitted limb circle and terminator ellipse drawn in
Figure 2. 22 May 2026, 21:16:08 UTC. Red: the limb circle fitted to 834 sub-pixel edge points (residual rms 0.61 px). Cyan: the terminator ellipse \(u=-R\cos i\sqrt{1-(v/R)^2}\) with the measured \(\cos i\). Green: the phase axis through the centre of the disc towards the middle of the bright limb. Everything the article builds on is the parameters of the two curves — not the orientation of the image or its position in the sky.

3The limb: from pixels to kilometres

The Moon's apparent semi-diameter \(s\) is related to the topocentric distance \(\Delta\) by the simplest relation in the whole article:

\[ \sin s=\frac{R_{\text{moon}}}{\Delta},\qquad R_{\text{moon}}=1737.4\ \text{km} \]

and \(s\) is read directly as \(R_{\text{px}}\) times the plate scale. The plate scale does not need to be calibrated against the sky: it follows from the optics. With 2.9 µm pixels and 450 mm focal length it is

\[ 206265''\times\frac{2.9\cdot10^{-6}\,\text{m}}{0.450\,\text{m}}=1.3293\ \text{arcseconds per pixel.} \]

The limb must be found without guessing

The bright limb forms exactly a semicircle at every phase — from pole to pole it is fully lit, however thin the crescent. That is plenty for a circle fit, but it must be done properly. The procedure, after a couple of dead ends:

  1. Rough centre and radius from a thresholded mask plus RANSAC on the contour.
  2. 2400 radii out from the centre. Along each radius the outermost crossing of 50 % between the sky background and the local peak value is found, with linear interpolation between two neighbouring samples.
  3. Only the sharp edges are kept: the limb drops abruptly, the terminator softly. This automatically sorts out the shadow boundary.
  4. Robust circle fit (Taubin) with trimming at 3 px.
Dead end 1 An earlier version normalised against an illuminated «plateau» inside the disc. That does not exist on a thin crescent, and 19 May failed completely. Worse: on 21 May, when the Moon overfills the field of view so that only ~70° of the limb is inside the image, two exports of the same exposure gave radii that differed by 1.3 %. A circle on a short arc is ill-conditioned — centre and radius trade off freely. The local normalisation solved both problems: raw file and app export of the same frame now agree to 0.02–0.2 %.

Topocentric becomes geocentric

The angular diameter measures the distance from the observer, not from the Earth's centre, and the difference cannot be ignored: up to 6378 km, i.e. 1.7 %. With the Moon's altitude \(h\) above the horizon,

\[ r^2=\Delta^2+R_\oplus^2+2\,\Delta\,R_\oplus\sin h \]

The altitude only needs to be known to a degree or two — it enters a correction of half a per cent — so the telescope's own display is ample.

The Earth observer The Moon 2s Δ (topocentric) r (geocentric) R☾ R⊕ = 6378 km sin s = R☾/Δ r² = Δ² + R⊕² + 2ΔR⊕ sin h horizon h
Figure 3. The radius of the limb measures the semi-angular diameter \(s\), and thus the distance from the observer. The route to the geocentric distance goes via the Earth's radius and the Moon's altitude above the horizon. At 20° altitude the difference is about 2200 km — more than half a per cent, and thus far larger than the precision of the measurement itself.
Night (UTC)R (px)hr measured (km)r ephemerisdeviation
19/5 21:03:40744.1715.6°364 047362 754+0.36 %
21/5 21:15:08728.4023.4°372 702372 316+0.10 %
22/5 21:16:08718.6925.6°377 926377 838+0.02 %
24/5 22:31:28695.1817.2°389 742388 709+0.27 %
25/5 22:02:05688.3120.1°393 912393 185+0.18 %

It is worth pausing here. The lunar distance to within a couple of hundred kilometres — from a photograph of an edge. And the plate scale has not been tuned against anything; it comes from the pixel size and the focal length.

4The terminator: from shadow boundary to phase angle

Let \(i\) be the phase angle, i.e. the angle Sun–Moon–Earth. Consider the great circle on the Moon's surface where the Sun stands exactly on the horizon. Seen from the Earth it projects onto the disc as an ellipse with the same semi-major axis \(R\) as the limb — across the phase axis — and with the semi-minor axis \(R\lvert\cos i\rvert\) along it:

\[ u(v)=-R\cos i\,\sqrt{1-(v/R)^2} \]

where \(u\) is measured along the phase axis, positive towards the bright limb, and \(v\) across it. The sign tells the whole story: for \(i<90^\circ\), \(\cos i>0\), the ellipse bulges over to the dark side of the centre, and the Moon is more than half lit. For \(i>90^\circ\) it curves back towards the bright limb, and we have a crescent. The illuminated fraction is

\[ k=\tfrac12\,(1+\cos i) \]
SEEN FROM THE SIDE — section through Sun, Moon and Earth towards the Earth towards the Sun i terminator u = −R cos i SEEN FACE ON — the disc as it is photographed phase axis u v R cos i bright dark
Figure 4. On the left the section through Sun, Moon and Earth: the terminator is the great circle whose plane is perpendicular to the direction to the Sun, and it cuts the line of sight at a distance \(R\cos i\) from the centre. On the right the same circle as it is photographed: an ellipse with the semi-major axis \(R\) across and \(R\lvert\cos i\rvert\) along the phase axis. It is the semi-minor axis that is the measurement.

Why finding the shadow boundary is not trivial

The limb is a sharp edge between light and sky. The terminator is something quite different: a zone where the Sun is low, and where mountains and crater rims catch light while crater floors lie in darkness. The signal varies by a factor of two over a few pixels. Two obvious approaches do not work:

Dead end 2 The 50 % isophote lies far inside the illuminated side, because the surface brightness falls off gradually towards the terminator — and how far inside depends on the phase, so a constant correction does not help. Linear extrapolation to zero from the 10–45 % band sounds more principled (Lambert gives \(I\propto\cos\) of the angle of incidence, i.e. approximately linear near the boundary), but the topography makes the fit unstable: errors of up to 11° in the phase angle.

What works is the onset. Follow each chord in from the dark side and take the first sustained crossing of 8 % of the chord's peak value — «sustained» meaning that at least 85 % of the next 40 samples also lie above the threshold, which weeds out isolated crater rims out in the darkness. Repeat over ~300 chords and fit the ellipse robustly. Only \(\cos i\) is free; the centre and semi-major axis come from the limb.

Intensity profile along the phase axis with threshold and measured terminator marked
Figure 5. The light profile along the phase axis, 22 May. The blue curve is the raw profile — note the fluctuations on the illuminated side: that is Mare Crisium, crater rims and shadows, not noise. The surface does not fall off neatly towards the boundary. But the onset is sharp: the signal lies at zero until \(u/R\approx0.12\), and the ephemeris terminator (red) lies at 0.127. The green threshold at 8 % hits it.
Nighti measuredi truedeviationk measured
19 May136,874°137,193°−0.32°0.135
21 May113,038°110,148°+2.89°0.304
22 May99,343°97,278°+2.07°0.419
24 May74,024°72,231°+1.79°0.638
25 May64,561°60,723°+3.84°0.715

Bias +2.0°, scatter 1.5°. That is an order of magnitude worse than the limb measurement — and it is exactly what one should expect when the yardstick is a zone and not an edge.

5From phase angle to direction in the sky

The phase angle is an angle at the Moon. What we need is the elongation \(\psi\) — the angle Sun–Earth–Moon, i.e. how far the Moon stands from the Sun as seen from us. The two are related through the triangle Sun–Earth–Moon:

\[ \tan i=\frac{R_\odot\sin\psi}{\;\Delta-R_\odot\cos\psi\;} \]

Because \(R_\odot\approx 1.5\cdot10^8\) km is almost 400 times \(\Delta\), \(\psi\approx180^\circ-i\) to within a quarter of a degree — but we solve the equation exactly, and we already know \(\Delta\) from the limb. As soon as \(\psi\) is known, and the Sun's ecliptic longitude \(\lambda_\odot\) is looked up, the Moon's longitude follows from

\[ \cos\psi=\cos\beta\,\cos(\lambda-\lambda_\odot)\;\xrightarrow{\ \beta=0\ }\;\lambda=\lambda_\odot+\psi \]

The sign — east or west of the Sun — is decided by which side of the disc is bright. In May 2026 the Moon was waxing, i.e. east of the Sun.

The Sun The Earth The Moon ψ i R☉ ≈ 1.5·10⁸ km Δ ≈ 3.8·10⁵ km tan i = R☉ sin ψ / (Δ − R☉ cos ψ) λ = λ☉ + ψ
Figure 6. The phase angle \(i\) is measured at the Moon, the elongation \(\psi\) at the Earth. Because the Sun is so far away, the two are almost supplementary angles — but the difference is a quarter of a degree, i.e. at the level of the measurement accuracy, so the equation is solved exactly with \(\Delta\) from the limb measurement.
The price of β = 0 The lunar orbit is inclined 5.1° to the ecliptic, so \(\beta\) is not zero. The assumption costs a systematic error in \(\lambda\) of the order \(\tfrac12\beta^2\cot(\lambda-\lambda_\odot)\) — a few tenths of a degree. We return to it in section 8: it turns out to be the real bottleneck of the method.

6The ellipse: four unknowns, ten conditions

Each night has now delivered a pair of polar coordinates \((r,\lambda)\) in the plane of the ecliptic. That is exactly the type of data Kepler worked with, and a planar orbit has only four free parameters when the mass of the central body is known:

The mean motion is not free: Kepler's third law ties it to \(a\) through

\[ n=\sqrt{\mu/a^3},\qquad \mu=G(M_\oplus+M_{\text{moon}})=403\,503\ \text{km}^3\text{s}^{-2} \]

and the model is the classic chain

\[ M=n(t-t_p),\qquad M=E-e\sin E,\qquad r=a(1-e\cos E), \]
\[ \tan\frac{\nu}{2}=\sqrt{\frac{1+e}{1-e}}\tan\frac{E}{2},\qquad \lambda=\varpi+\nu \]

Five nights give ten conditions on four unknowns. The fit is done by least squares, weighted with 1200 km on the distances and 1.5° on the longitudes — roughly the scatter the measurements actually show — and with a grid of starting guesses over \(\varpi\) and \(t_p\), because Kepler's equation makes the landscape multimodal.

Why the period can now be determined The distances alone could not do it. A six-day, monotonically rising distance curve simply does not contain the orbital period — a fit with \(T\) free lands on 18.9 days, and does exactly the same on the ephemeris's own distances. It is the angular motion that delivers the period: the elongation advances 79° over the six days, and that is a tight constraint.

7The result

ElementFrom the photosEphemeris (osculating, 22 May)Deviation
semi-major axis a381 311 km380 411 km+0.24 %
eccentricity e0.06140.0624−0.0010
longitude of perigee ϖ55.85°56.83°−0.98°
orbital period T26,956 d26,861 d+0.35 %
perigee distance357 910 km356 676 km+1 234 km
apogee distance404 713 km——
Polar diagram of the fitted lunar orbit with the five measured points
Figure 7. The orbit in the plane of the ecliptic. The Earth at the focus (blue), the fitted ellipse in gold, the five measured \((r,\lambda)\) in green and the corresponding ephemeris values in red. With \(e=0.061\) the ellipse looks almost circular — the difference between perigee and apogee is ~47,000 km, i.e. 12 %, and that is what the five points capture.
The distance as a function of time with the fitted curve over a whole month
Figure 8. The same solution as a distance curve. The shaded field is the six days that were actually photographed; the rest is extrapolation. That the curve hits perigee and apogee in the right places is a prediction, not a fit — the period came from the angular motion inside the green field.
Nightr-residualλ-residual
19 May−242 km−2,108°
21 May+356 km+0.870°
22 May+497 km−0.037°
24 May−376 km−0.343°
25 May+98 km+1,618°

8What limits the precision

The interesting question is not how good the result is, but what is holding it back. This control settles the matter: run exactly the same planar fit on the ephemeris's own \(r\) and \(\lambda\) — i.e. with all measurement noise removed.

aeϖT
From the photos381 3110.061455.85°26,956 d
Same model, ephemeris data379 3490.061654.79°26,749 d
True (osculating)380 4110.062456.83°26,861 d

The perfect measurement gives 0.28 % error in \(a\). The real one gives 0.24 %. So the measurement already lies at the floor of the model. It is not the blurred terminator that is the brake — it is the assumption \(\beta=0\).

Residuals in distance and the longitude error as a function of the Moon's ecliptic latitude
Figure 9. On the left the residuals in distance: a couple of hundred kilometres, with no systematic trend. On the right the error in the derived longitude plotted against the Moon's true ecliptic latitude. The points lie on a curve. The latitude runs from +4.0° to −2.5° over the six days, and the longitude error follows it — exactly as \(\cos\psi=\cos\beta\cos(\lambda-\lambda_\odot)\) predicts when \(\beta\) is set to zero.

So there is a clear way forward, and it requires no new measurements: extend the model from a planar orbit to a spatial orbit with inclination \(I\) and node \(\Omega\), compute \(\beta(t)\) from the orbit itself and use the full relation between \(\psi\), \(\lambda\) and \(\beta\). That costs two extra parameters — six against four, still with ten conditions. But the degeneracy is serious: the elongation is invariant under rotation about the Earth–Sun axis, and that axis moves only 6° in six days. A longer series would solve it.

What is not the problem

9The recipe

If anyone wants to repeat it, this is what is needed — and what is not.

  1. Five to ten nights spread over at least two weeks. Six days are enough for the shape, but the period is far better determined when the series spans both perigee and apogee.
  2. The Moon must be entirely inside the image field, preferably with a good margin. A limb arc of less than 100° makes the circle fit ill-conditioned: centre and radius trade off freely, and two exposures 78 seconds apart can differ by 1.3 %.
  3. Altitude above 15°, preferably above 25°. Otherwise differential refraction eats the result.
  4. Phases between crescent and gibbous. At full moon the terminator is gone, and at new moon there is no disc.
  5. Accurate time. The Moon moves 33 arcminutes per hour. Check whether the camera's time stamps are UTC or local time — it is a classic trap, and it is easily exposed: a wrong time zone moves the Moon below the horizon in at least one of the exposures.
  6. Not needed: plate solving, a star field, the mount's pointing direction, or any ephemeris whatsoever for the Moon. Only the Sun's position — which any almanac gives — and the instrument's pixel size and focal length.

10Postscript: Kepler rather than Gauss

The starting point for the whole exercise was Gauss' method — three directions, the eighth-degree equation for \(r_2\), the sector/triangle ratio. That route was tried thoroughly, and it turned out to be poorly suited to the Moon in particular: because the apparent path over a few days lies almost exactly on a great circle, the triple product \(D_0=\hat\rho_1\cdot(\hat\rho_2\times\hat\rho_3)\) becomes vanishingly small, and the topocentric distances emerge as small differences between large numbers. The classic iteration diverged; only with Gauss as a starting guess and least-squares differential correction for the rest did it become usable — which, incidentally, is exactly Gauss' own workflow for Ceres in 1801.

But Gauss' method requires directions, and directions require astrometry. Kepler's method requires distances and longitudes — and those can be read off the disc itself. It is a reminder that the choice of method is not just a question of which is «best», but of which type of data the instrument actually produces.

And then there are the residuals. Five exact positions and six free parameters cannot be pressed below a couple of arcseconds in a Keplerian orbit. That number — about 2.4″ over six days — is not measurement uncertainty. It is the evection and the variation, measured directly. A three-point determination would have fitted perfectly and been seven per cent wrong, without giving the slightest hint of it. Overdetermination is not a luxury. It is the only way a model error can show itself at all.