Block
Selection
- What it does
- It gives every frame a weight from its clarity, its noise and the sharpness of its stars, so that the good frames count more in the stack; only very poor frames are left out.
- What it shows
- The Selection chart, with the weight of every frame over the night, and the list of the frames left out, each with its reason; the stack records them.
- What can be set
- Frame selection: Automatic (the default) keeps almost every frame and lets the weights work; Thresholds sets a Minimum transparency and a Maximum star size.
The Selection block decides which frames go into the stack and how much each weighs. Each frame is given a weight from its transparency, its noise and the size of its stars. By default almost every frame is kept and the weights handle the poor ones; only a frame under 5 % of the best weight is left out. Three other modes filter the frames further. Every frame left out is listed with the reason.
- Calibration
- Registration
- Selection
- Stacking
- Astrometry
1What goes in, what comes out
The block has no computation of its own. It reads the measures that Registration took on every frame (transparency, star size, roundness, noise), the frames that were not aligned, those without usable pixels, and the frames the user excluded by hand. Its rules are applied when the stack is made, with the settings of section 6, which are kept with the stack’s.
It gives, for every frame, a weight, or the reason the frame is left out. The Stacking block reads them and records them with the stack. A workflow without a Selection block stacks the frames as they are, with the same weight.
2What is measured
| Measure | What it says | Where it acts |
|---|---|---|
| Transparency | The star flux of the frame relative to the reference frame, in a fixed aperture. Clouds, haze and dew lower it. | The weight; the transparency filters. |
| Star size | The FWHM of the stars. Wind, focus drift and seeing raise it. The filters read the Moffat fit; for a registration made without it, the coarse size measured on 2 × 2 super-pixels. | The weight (coarse size); the star-size filters. |
| Roundness | Minor axis over major axis of the stars, 1 for round stars. Wind and tracking errors lower it. | The roundness filter of the k × σ mode. |
| Noise | The noise of the frame, measured from the difference of adjacent super-pixels. If the registration did not measure it, the spread of the frame’s pixels, which the nebulae and stars of the field inflate. | The weight. |
The way each is measured is described on the Registration page.
3The weight of a frame
The weight of an aligned frame is
weight = (transparency / noise)² × (FWHM5 / FWHM)²,
where FWHM is the star size of the frame and FWHM5 the 5th percentile of the star sizes of the night. The weights are divided by the largest, so that the best frame weighs 1. A frame that is not aligned, or whose noise is not measured, has no weight.
The first factor is the signal-to-noise ratio, squared: a hazy or noisy frame weighs less. The second is the sharpness: a frame with larger stars weighs less. The Stacking block uses the weight in the mean of the drops.
Figure 1 shows these weights over one night, in the default mode: the first frames, with a low transparency and larger stars, weigh little but stay in, and only three fall under the minimum.
4The four modes
The setting Frame selection chooses the mode. The statistics of a filter, the median and the sigma, are measured on all the aligned frames, those excluded by hand included, so that excluding a frame by hand never changes the fate of another.
| Mode | Frames left out | Weights |
|---|---|---|
| Automatic (default) | Those under 5 % of the best weight, besides the frames of section 5. | The formula of section 3. |
| k × σ | Those whose star size is above the night’s median by more than 2.5 robust sigmas, whose roundness is below it by more, or whose transparency is below it by more. Then those under 5 % of the best weight among the frames still in. | The formula of section 3. |
| Thresholds | Those whose transparency is under Minimum transparency times the 90th percentile of the aligned frames, then those whose star size is above Maximum star size times the median. No minimum weight. | The formula of section 3. |
| All | Only the frames of section 5. No filter, no minimum weight. | Equal for every frame. |
In the k × σ mode, only the bad tail of each criterion counts: large stars, low roundness, low transparency. The filter on the sky level exists in the selection code, but the stack does not give it a measure and it does not apply. A frame without a value for a criterion is never left out for it.
In Thresholds mode, the order of the tests decides the reason shown: not aligned, no usable pixel, excluded by hand, low transparency, large stars. In the other modes: not aligned, no usable pixel, excluded by hand, the filters, no measure of the weight, then the minimum weight.
5Frames left out in every mode
- Frames not aligned. Registration could not match them with enough stars.
- Frames with no usable pixel. Calibration could not measure them: a white frame, for example.
- Frames excluded by hand. The user excludes a frame, one by one or by thresholds from the Selection chart, and it stays out whatever its quality. If a file named as excluded is not among the lights, the log says so.
The frames left out, with the weight and the reason of each, are recorded with the stack. A stack needs at least two frames; with fewer, it stops and says which cause removed them: too few lights, too few aligned, too many excluded by hand, or thresholds too strict.
6Settings
| Setting | Value | Range | What it does |
|---|---|---|---|
| Frame selection | Automatic | Automatic, k × σ, Thresholds, All | Which frames are left out (section 4). Frames excluded by hand are left out in every case. |
| Transparency filter | on | on, off | With k × σ: whether frames are also left out for a low transparency. Off keeps them, with the lower weight their transparency gives them. |
| Minimum transparency | 0.6 | 0 – 1 | With Thresholds: frames whose star flux falls below this fraction of the best frames are left out. 0 keeps everything, low-transparency frames still getting a low weight. |
| Maximum star size | 2 × median | 1 – 5 × median | With Thresholds: frames whose stars are larger than this multiple of the median size are left out (wind, focus drift, tracking error). |
The value of Minimum transparency is proposed from the night: 0.3 when more than half of the frames are under 60 % of the 90th percentile of the transparency (only the worst are then left out), otherwise 0.6 (no frame then falls under it when the transparency is stable). The 2.5 sigmas of the k × σ mode and the 5 % minimum weight are fixed.
7Limits, and what was tried
- No sorting is the default. Only 5 % of the best weight is a cut. A frame with poor transparency or large stars stays in the stack with a low weight.
- The filters are an option. The k × σ mode takes 2.5 as its constant on star size, roundness and transparency; the sky level is not filtered, since a brighter sky only adds noise, which the weights already count.
- A filter needs a spread. If every frame has the same value, a k × σ filter excludes none and says so.
- Thresholds do not use the minimum weight. In that mode a frame with a very low weight but above the thresholds stays in.
- The coarse star size in the weight. The sharpness of the weight uses the coarse size of Registration, not the Moffat one.
References
- Zackay, B. & Ofek, E. O. 2017, How to coadd images? I. Optimal source detection and photometry using ensembles of images, ApJ 836, 187. arXiv:1512.06872
- Hampel, F. R. 1974, The Influence Curve and its Role in Robust Estimation, JASA 69, 383. doi:10.1080/01621459.1974.10482962