Skip to content

Fainter objects by stacking ​

Summary ​

stack_search adds each frame's light along trial motions, to find moving objects too faint to be detected in any one frame. On four Pan-STARRS1 fields with 80 injected asteroids each, it raised the recovered ones from 77 to 94, all of the 17 added between V 21.6 and 23.0, with no false candidate among them. On the 13 local sets without injections it added two catalogued asteroids the frame-by-frame search had missed and three candidates, of which two look like real faint objects and one is a diffuse moving patch it can't tell from one. On a field whose noise is far from Gaussian, it added nothing.

Not run again since the FWHM came to be measured with moments matched to each star (2026-11-28): these numbers are with the FWHM of a 7×7 px box, which held it to about 4.5 px. It sets the synthetic asteroids' width and the frames' limit (How faint).

1. Method ​

The frames' differences from their median (stack_difference) are filtered with a Gaussian of the measured FWHM, a matched filter for a point source, and renormalized to unit noise. Peaks at 3σ in the first and last frame are paired into motions, from twice the FWHM over the sequence (slower objects subtract themselves in the median) to 100″/h, and every frame is read where the motion puts the object. The score is the faintest frame's value times √N, so every frame must show it.

Three things keep false candidates out, all measured on the set itself or taken from the frame-by-frame search, none tuned to these images:

  • The threshold is what noise reaches in the same frames: the search is repeated with the frames out of time order, where nothing real lines up, and the threshold is 1.1 times its best score, at least 7.

  • The artifacts the frame-by-frame search drops: peaks on one detector pixel in several frames (a hot pixel, dithered) are masked, and a track near a masked pixel or over a bright star's light is left out.

  • One track per spot: several tracks through one place are a patch of extended light, not a point source, and all are dropped.

  • Round light: a track whose light within 4 FWHM is drawn out into a line (axis ratio above 1.7 in most frames) is a bright star's diffraction spike. Injected point sources measured 1.0–1.44, three spikes 1.85–2.16: the cut is between them, from those few cases.

analyze_set runs it after the frame-by-frame search and adds the tracklets that search didn't find (stacked in its result; stack=false turns it off).

2. Results ​

Four sets, 80 asteroids injected into each (V 21–24, 5–100″/h, seeds 101, 201, 202, 203), with inject_movers:

FieldFrame by frameWith stackingAdded (V)False addedPositions, median / max
XY54_p10202622.1–23.000.13″ / 0.36″
XY72_p01222721.6–22.300.31″ / 0.98″
XY45_p01101621.9–22.300.13″ / 0.29″
XY26_p012525—0—
Total77940

One more candidate on the XY45_p01 set is not injected: the one found on the same field without injections, below.

These are from a second run, with the dipole test (Real or false) in both searches. The first, with an earlier version, gave 82 and 101: 14 and 22 on XY45_p01, 26 and 26 on XY26_p01. Run again without the dipole test, those two fields gave the same 10 and 16, 25 and 25 as with it: the difference is from changes made in between, and which was not looked into. On XY26_p01 the test took the tracklets found from 38 to 27, none of them an injected asteroid.

The same fields without injections, and XY42_p11, the set with the most detector defects:

SetThresholdTracklets added
XY54_p107.40
XY72_p018.80
XY45_p017.11: 33″/h, faint in all four frames
XY26_p0119.90
XY42_p1111.40

Every local set (IASC, Pan-STARRS1), before and after:

SetKnownUnknownAdded by stacking
XY15_p010 → 20 → 1the 2 known, and a diffuse patch at 5″/h, V 20.3
XY25_p104 → 44 → 40
XY45_p012 → 20 → 11: V 21.8, 33″/h, a faint point in each frame
XY45_p102 → 20 → 11: V 21.7, 34″/h, a faint point in each frame
the other 9unchangedunchanged0

Before the dipole test, XY25_p10 had 48 unknown tracklets and stacking added one more, at V 23.3 and barely visible; with it, 4 and none.

No catalogued asteroid was lost, and the damaged set is still flagged. Before the round-light test, three diffraction spikes on XY72_p11 and XY73_p01 were added too; it removed them and none of the injected asteroids.

A set's analysis took about 10–50 s longer, against runs on other days, so with the catalogue services' own variation in it.

3. Discussion ​

Where it gains. On fields with Gaussian noise: the asteroids it adds are at V 21.6–23.0, around and past the sets' own limits (V 22.4–23.0), where the frame-by-frame search finds few.

What it still lets through. The diffuse patch on XY15_p01 moves with the track, is round and leaves no light behind: it may be an optical ghost, which moves as the telescope does, or a diffuse object. Nothing measured here tells them apart; a person looking at it can.

Where it doesn't. XY26_p01's noise reaches a score of 18 with the frames out of order, so the threshold rises to 19.9 and only bright objects pass, which the frame-by-frame search already finds. That is the intended behaviour, but it means the gain depends on the field.

What it rests on. The threshold is one number from the scrambled search, its single best score: one slow artifact can raise it, and on a set where the scrambled frames happen to miss an artifact, it can be too low. Before the slowest motion searched was matched to the median's limit, XY26_p01's threshold fell to 12.2 and seven false tracks passed.

What wasn't tested. Sequences of other lengths than four frames, and telescopes other than Pan-STARRS1. With more frames, requiring every frame loses objects that cross a gap; it doesn't add false ones.

4. Reproducing ​

examples/stacking_test.jl runs one field, with or without injected asteroids, and prints what each search found:

sh
julia --project=. examples/stacking_test.jl data/real/iasc/XY54_p10 101   # seed 101
julia --project=. examples/stacking_test.jl data/real/iasc/XY54_p10       # no injections