Scientific version · PiNox

Plate solving in PiNox: method and results

Two real images allow a comparison between a blind search and a search guided by an estimate of right ascension.

PiNoxPlate solvingPolarScopeM31 and M45

PiNox’s plate solver estimates an image’s celestial centre, orientation and scale from the detected stars. The calculation runs locally. This article covers my first solver, developed for the fixed 25 mm lens. I present two examples using fields containing M31 and M45, with the same solver and two starting conditions: first with no prior celestial position, then with an estimate of right ascension.

Images and computing conditions

The two images, taken on 21 September 2026, measure 4056 × 3040 pixels. The solver uses the stellar centres detected in the image.

The timings from 22 October 2026 were measured on a Raspberry Pi 4 Model B with 2 GB of memory. The solver distributes the work across three threads using OpenMP (Open Multi-Processing). The central processing unit (CPU) runs at a variable frequency of up to 2 GHz. An MJPEG (Motion JPEG) video stream, made up of successive JPEG images, is being viewed during the calculations.

The approximate angular sampling supplied to the solver is 12.602 arcseconds per pixel. The solver uses at most 24 sources. The correction of stellar positions to the observation date, known as JNow, and the horizon filter are enabled.

From catalogue to geometric solution

After measuring stellar centres in the image, PiNox looks for matches in a star catalogue. Catalogue positions are projected onto a plane. The solver then fits a similarity transformation: translation, rotation and a scale factor. Several matches must support the same transformation; fit quality and ambiguity between candidates determine whether a solution is accepted.

The stars retained in the solution, or inliers, are the matches consistent with this fit. Their number differs from both the total number of detected stars and the source limit used to start the search.

The solution gives the right ascension and declination of the image centre, along with its orientation and scale.

Three possible starting points

Blind search

Blind mode has no prior celestial position for the field. It still uses an approximate scale supplied at the start. When location and time are available, the horizon filter restricts the search to visible regions. The search compares possible matches within this part of the sky.

Blind search assisted by right ascension

PolarScope estimates right ascension from the rotation angle of the mount’s right ascension axis, its calibration and sidereal time. The estimate has an uncertainty; declination remains unknown. The solver starts in a right ascension band and requires the same stellar confirmation as in a blind search.

A stale, invalid or uncalibrated hint is ignored. If a usable hint does not lead to a solution, PiNox falls back to the full search within the solver’s limits. The search width is not simply the stated uncertainty: it must also allow the regions corresponding to the image’s field of view to be found.

My PolarScope prototype in its white enclosure, fitted to an equatorial mount at night.
My PolarScope prototype in action on the equatorial mount.

Regional search

Regional mode starts from a position obtained in a previous solve. It therefore has a reference celestial position, whereas PolarScope assistance provides only an estimate of right ascension here. Regional mode is excluded from the timing comparison.

Timings and number of regions examined

Medians of three solves per image and mode on Raspberry Pi 4.
FieldBlindAssistedBlind / assisted ratio
Containing M31762.004 ms257.158 ms2.96×
Containing M45812.509 ms258.689 ms3.14×
Rounded median solver times on Raspberry Pi 4: M31, 762 and 257 ms; M45, 813 and 259 ms, for blind and assisted searches respectively.
Median times on Raspberry Pi 4, after star detection. Three solves per image and mode.

The ratio between the medians is 2.96 for M31 and 3.14 for M45. The number of regions examined drops from 211 to 45 for M31 and from 213 to 42 for M45. Here, the usable hint reduces the area of sky searched before identification, without requiring a fallback to the full search.

Agreement between solutions and what the residual means

For each image, blind and assisted modes produce the same solution at the precision reported by the software: centre, orientation, scale, retained matches and residual.

Internal fit indicators, identical between the two modes for each image.
FieldRetained starsResidual (pixels)Regions: blind / assisted
Containing M31231.60664211 / 45
Containing M45221.24351213 / 42

The astrometric residual describes the internal difference between measured positions and those predicted by the fitted model. A smaller residual indicates closer agreement between the model and the measured stars. Absolute accuracy on the sky is checked against an independent reference.

PiNox’s interface with the field containing M45 identified, the Pleiades labelled and 22 stars retained in the solution.
The Pleiades field (M45) annotated in PiNox.

Reducing the computational work

PiNox loads the relevant catalogue once per solve and shares it between the worker threads. If PolarScope’s hint leads to a dead end, regions already examined are reused during the wider search.

Both modes use the same program and acceptance criteria. The comparison therefore measures the effect of PolarScope’s hint on these two images.

Ephemeris: planets in the solved field

Planets move against the background stars. Their positions require an ephemeris calculation for a given time, separate from finding matches in the star catalogue. Ephemeris provides this calculation; the annotation layer then reuses the solver’s projection and geometric transformation to map celestial coordinates to image pixels.

The date and time used are the solve’s reference date and time. The planetary positions used here are apparent geocentric positions: they are expressed for that instant as seen from the centre of the Earth. They are already in the coordinate frame for that date and are projected directly, without applying a second JNow stellar correction. The observing location, obtained from GPS among other sources, is used to relate the field to the local sky and apply the horizon filter.

The layer covers Mercury, Venus, Mars, Jupiter, Saturn, Uranus and Neptune.

PiNox’s interface showing the Pleiades M45 at the upper left and an orange marker for Uranus lower in the field, with its magnitude, apparent diameter and distance.
The Pleiades at the upper left, with Uranus annotated further down thanks to Ephemeris.

In this screenshot, Uranus has an estimated visual magnitude of 5.7, an apparent diameter of about 3.8 arcseconds and a distance of about 18.76 astronomical units. An astronomical unit is approximately the mean distance between the Earth and the Sun. These values come from the ephemeris calculation; the magnitude indicates the expected brightness, independently of the image’s gain and exposure.

I wrote Ephemeris a long time ago. Connecting it to this annotation pipeline worked on the first attempt: the solved field supplies the geometry, and the ephemerides supply the moving objects to place in it.

Uses and limitations of these two examples

The solution is used to place catalogue annotations, locate an object and indicate framing. Neither solving the field nor selecting a target moves the mount.

Too few usable stars, severe blur or a scale incompatible with the initial estimate can prevent a reliable solution. The fitted similarity transformation does not model all optical distortion; a good internal residual does not remove that limitation.

A right ascension hint allows the search to start in a restricted area while retaining verification against the stars. Its usefulness depends on PolarScope’s calibration, the validity of its estimate and its uncertainty.

Towards solving at different focal lengths

I want to extend the solver to work across different focal lengths. The new 5–50 mm lens, at f/2.8, should replace the fixed 25 mm lens. With the same sensor, this range changes the angular sampling by a factor of about ten.

The new 5–50 mm lens fitted to PiNox on the left, with the fixed 25 mm lens beside it on the right.
The new 5–50 mm f/2.8 lens on PiNox, beside the fixed 25 mm lens.

The challenge will be to widen the scale search and handle focal length changes without reusing a calibration that is no longer appropriate. The wide field at 5 mm will also provide an opportunity to examine the effect of optical distortion on the fit.

Further reading

The other reading approach

How PiNox identifies its patch of sky · Discovery version: recognising a field and framing a target.