How many bias frames a 1.57-electron sCMOS camera really needs

A 2025 lab study measures the gain, read noise and dark current of a scientific CMOS camera. We rebuild its master frames with fibub's calibration tool and show where stacking more bias frames stops helping.

Scientific CMOS sensors have quietly taken over from CCDs in small telescopes, and the reason is read noise: a good sCMOS reads out in milliseconds with well under two electrons of noise, where a CCD takes seconds and a dozen electrons. A 2025 paper in RAS Techniques and Instruments put one such camera, an Andor Marana 4.2BV-11, on a laboratory bench and measured everything that matters for photometry. This article takes those measurements and rebuilds them with the Calibration frames tool, which does exactly what the authors’ pipeline does: stack bias, dark and flat frames into masters and report their statistics. On the way we answer a question the paper raises but does not ask: how many bias frames are worth taking? Afterwards, work out your own exposure length with the sub-exposure calculator, look inside your frames with the FITS viewer and check your focus with the star FWHM checker.

The paper in brief

The authors characterised the camera in two readout modes, a “full frame rate” mode and a “high dynamic range” mode, with the sensor cooled to −25 °C. In the high dynamic range mode they measure a conversion gain of 1.131 electrons per ADU, a median read noise of 1.571 electrons across the sensor, a bias level of 100.48 ADU, offset fixed-pattern noise (which they call DSNU) of 0.232 electrons from a stack of 100 bias frames, a dark current of 1.617 ± 0.008 electrons per pixel per second with the sensor’s anti-glow correction switched off and 0.672 with it on, a full well of 61 031 ADU, a pixel response non-uniformity of 0.131 % and a linearity error of 0.122 %. They conclude the camera is capable of precise photometry, with the glow-affected dark current as its main limitation.

Three of those numbers are an internal consistency test on their own, and the rest can be recovered from frames with the right properties. That is what we do below.

Checked with the tools

The tool’s maths (combine, calibrate and exactStats) is the same as ccdproc’s, so we can feed it frames and ask it the questions the paper’s pipeline asked. We cannot get the authors’ frames, so we simulate a camera with exactly their published properties: a 240 × 160 pixel sensor with a fixed per-pixel offset pattern of 0.232 electrons about a bias level of 100.48 ADU, 1.571 electrons of random read noise on every frame, 1.617 electrons per pixel per second of dark current, a fixed 0.131 % pixel-to-pixel sensitivity pattern, and Poisson shot noise. Every frame below is ours; none is theirs.

Step 1: the arithmetic in the paper hangs together. Three published pairs should agree if the gain is right. A bias of 100.48 ADU at 1.131 e⁻/ADU is 113.64 electrons against the paper’s 113.65; a full well of 61 031 ADU is 69 026 electrons, exactly what the paper prints; and a dynamic range of 20 log₁₀(69 026 / 1.571) is 92.86 dB, which rounds to the paper’s 93 dB. Nothing is out of place.

Step 2: read noise from two bias frames. The classic trick needs no stacking at all: subtract one bias frame from another and divide the spread by √2, and the fixed pattern cancels. Running the tool’s exact statistics on our simulated pair gives 1.3905 ADU, or 1.573 electrons (the robust MAD σ gives 1.583), against the paper’s 1.571. Two frames are enough to measure read noise; the paper’s 100 frames are for something else.

Step 3: stacking bias frames stops paying off after about fifty. Figure 1 shows what the tool’s three combination methods give as the stack grows. The random part falls as 1/√N, so with 100 frames it is down to 1.389/10 = 0.139 ADU. But the camera’s own offset pattern, 0.232 electrons or 0.205 ADU, does not average away at all: it is the same in every frame. The two are equal at N = (1.389/0.205)² ≈ 46 frames. Past that, more bias frames barely move the master: at 100 frames the measured scatter is 0.2479 ADU (0.280 electrons) against a floor of 0.205 ADU.

Master bias: scatter against frames stackedMaster bias: scatter against frames stacked00.511.5020406080100Bias frames combinedPixel-to-pixel σ of the master (ADU)fixed pattern 0.205 ADUMeanMedian3σ MAD clipExpected √(DSNU² + σ_read²/N)fibub.com
Figure 1. Simulated bias frames with the paper’s read noise and fixed-pattern noise, combined by the Calibration frames tool. Stacking beats the random part down as 1/√N, but the camera’s own offset pattern never averages away, so past about 50 frames there is little left to win. Our simulation, not the authors’ frames.

The methods differ in a way worth knowing. At 100 frames the plain mean gives 0.2479 ADU, the 3σ MAD-clipped mean 0.2499 (within a per cent of the mean, so clipping costs almost nothing when there are no outliers to clip), and the median 0.2687, about 8 % worse. That is the usual penalty: the median of a Gaussian sample is about 25 % noisier than the mean, and stacking only recovers part of it. Use the clipped mean, which is the tool’s default.

Step 4: the conversion gain, from flat pairs. Variance against signal is the oldest detector measurement there is: for a pair of flats, half the variance of their difference equals the mean signal divided by the gain, plus the read noise squared. Feeding the tool eleven levels from 200 to 55 000 ADU, four independent pairs each, and fitting with the read noise already fixed from step 2, we recover a gain of 1.130 ± 0.001 electrons per ADU (Figure 2), against the paper’s 1.131.

Photon transfer curve: the gain from flat pairsPhoton transfer curve: the gain from flat pairs02e+44e+401e+42e+43e+44e+45e+4Mean signal above bias (ADU)Half the variance of a flat pair (ADU²)Simulated flat pairsFit: gain 1.130 e⁻/ADUfibub.com
Figure 2. The classic photon transfer curve, built from pairs of simulated flat frames and the tool’s exact frame statistics. The slope returns the conversion gain and the intercept the read noise.

Step 5: dark current, from masters at ten exposures. We built a master dark from ten frames at each exposure from 1 to 10 seconds, subtracted the 100-frame master bias with the tool’s calibrate step, and fitted the mean level against time. The slope is 1.6167 ± 0.0005 electrons per pixel per second, with an intercept of 0.002 electrons (there should be none, and there is none). The paper gives 1.617 ± 0.008.

Check Paper Our tool result (simulated frames)
Bias level in electrons 113.65 e⁻ 113.64 e⁻ (arithmetic from 100.48 ADU)
Full well in electrons 69 026 e⁻ 69 026 e⁻ (arithmetic from 61 031 ADU)
Dynamic range 93 dB 92.86 dB
Read noise 1.571 e⁻ 1.573 e⁻ from one pair of bias frames
Conversion gain 1.131 e⁻/ADU 1.130 ± 0.001 e⁻/ADU from flat pairs
Dark current at −25 °C, anti-glow off 1.617 ± 0.008 e⁻/pix/s 1.6167 ± 0.0005 e⁻/pix/s
Master bias from 100 frames not stated σ 0.280 e⁻, of which 0.232 e⁻ is fixed pattern

Step 6: one thing that does not add up. The paper gives dark current at two temperatures. With the anti-glow correction off, 1.617 at −25 °C and 0.80 at −30 °C means the dark current doubles every 4.9 °C, which is textbook silicon. With the correction on, 0.736 and 0.50 over the same 5 °C means doubling every 9.0 °C. The two cannot both describe the same sensor, so the anti-glow correction must be removing a temperature-dependent amount of signal rather than a fixed one. If you plan to cool this camera further, the “off” numbers are the ones to scale.

How we made the graphs

Both charts and every number above come from scripts/blog-figures/marana-scmos-camera-master-frames-read-noise-dark-current.mjs in fibub’s public code. It calls combine (mean, median and κσ-clipped mean), calibrate, exactStats, flatness and demoSet from src/lib/sci/calframes.ts, the maths behind the Calibration frames tool. The straight-line fits for the gain and the dark current are ordinary least squares written out in the script.

The gain, read noise, bias level, fixed-pattern noise, dark current, full well, pixel response non-uniformity and the two temperatures all come from the paper’s text and tables. The sensor size of 240 × 160 pixels, the eleven flat levels, the four pairs per level, the ten frames per dark exposure and the random seed are our choices; a real Marana has 2048 × 2048 pixels, which would take all day in a browser and change nothing but the error bars. Every frame is simulated: the paper’s own frames are not published.

How we test the maths

On every change to fibub, tests/sci.mjs runs tests/sci-tools/calibration-frames.mjs, which pins this maths against the standard astronomy libraries on a fixed set of made-up frames:

  • Masters built by mean, median, 3σ MAD clip, 2.5σ over five passes and 2σ standard-deviation clip must match ccdproc 2.5.1 and astropy 8.0 sigma_clip pixel by pixel, including the exact number of values clipped (756, 1798 and 1208 for three of those settings).
  • The calibrated light (L − D) divided by the mean-normalised (F − B) must match ccdproc’s subtract_dark plus flat_correct, and with dark scaling by 120/300 s must match subtract_bias plus subtract_dark(scale=True).
  • The frame statistics must match NumPy’s mean, median and standard deviation (ddof 0) and astropy’s mad_std to nine decimal places, and the κσ clip must remove a 3000 ADU cosmic ray that the plain mean keeps.
  • New with this article: the 100-frame master bias of our simulated Marana must come out at σ 0.2479 ADU, its read noise from a single pair at 1.3905 ADU, and the flat-pair gain fit at 1.1302 e⁻/ADU.

Check it yourself

You do not need a camera. On the Calibration frames tool:

  1. In the Frames card, press Load the made-up demo set. It loads 9 bias, 7 dark, 7 flat and 2 light frames of 240 × 160 pixels from a pretend camera, with 120-second lights and darks.
  2. In Options, leave Combine frames by on Sigma-clipped mean, κ = 3, Spread measured by on MAD σ (robust) and Clipping passes on 5.
  3. The headline reads Centre / corner brightness 1.483 before the flat, 1.005 after; background 1268.61 → 260.48 ADU. The flat has taken the vignetting out almost exactly.
  4. In the Statistics table, the Master bias row shows mean 1000.32, median 1000.20, σ 4.1672 and MAD σ 4.0371. The Master dark row shows σ 43.97 but MAD σ only 4.3967: the gap is the hot pixels, which move the standard deviation and not the robust one. That gap is how you spot them.
  5. Switch Combine frames by to Mean and look at the Master dark row again: its mean rises from 1007.42 to 1007.54 ADU, because the mean keeps the cosmic-ray hit in one of the darks that the clip threw away.
  6. Set Show to Master flat (normalised) to see the vignetting and the dust donut on their own, then back to Light after calibration.

What researchers can use it for

  • Decide how many calibration frames to take, from your own camera’s read noise and fixed-pattern noise, instead of copying someone’s rule of thumb. Two bias frames measure the read noise; about fifty build a master worth having.
  • Reproduce a published detector table before you rely on it, as we did here: the gain, bias and full well should be consistent in both ADU and electrons, and often are not.
  • Measure your own gain from a ladder of flat pairs with nothing but the browser, and check it against the manufacturer’s figure.
  • Separate hot pixels from read noise by comparing σ with MAD σ in the statistics table, which needs no thresholds or masks.
  • Audit a pipeline’s combination method. If a paper used a median where a clipped mean would do, you can say by how much that cost, in electrons.

The fine print

  • Every frame here is simulated from the paper’s published properties. Nothing is the authors’ data, and the agreement in the table shows that the methods match, not that the camera does.
  • We used only the high dynamic range mode. The paper’s full-frame-rate mode has a different gain, read noise and full well, and a far smaller full well of 2351 electrons.
  • Our simulated sensor has no amp glow structure, no row or column pattern beyond a flat offset pattern, and no non-linearity, so the paper’s 0.122 % linearity error and its glow discussion are outside what we checked.
  • The paper’s own notation is ambiguous in places: it calls the conversion gain 1/G in the text while tabulating it in electrons per ADU. We read the tabulated values as electrons per ADU, which is what makes the bias and full-well pairs agree.
  • Dark current depends strongly on temperature and on the sensor’s correction settings. Do not carry these numbers to another camera.

Sources

  • Apergis, I., Bayliss, D., Asimakoulas, L., Chote, P., McCormac, J., Mitchell, M. A., Gill, S., Steen, P. G. and Wheatley, P. J. (2025), High-precision photometry with a scientific CMOS camera: I lab testing of the Marana camera, RAS Techniques and Instruments 4: rzaf049, doi:10.1093/rasti/rzaf049. Licence CC BY 4.0, taken from the Crossref record for the version of record (creativecommons.org/licenses/by/4.0/, from 2025-10-22), checked 2026-11-24; the record shows no correction or retraction. Values used here, all for the camera's high dynamic range mode with the sensor at −25 °C: conversion gain 1.131 e⁻/ADU, median read noise 1.571 e⁻, bias level 100.48 ADU (113.65 e⁻), offset fixed-pattern noise (DSNU) 0.232 e⁻ from 100 bias frames, dark current 1.617 ± 0.008 e⁻/pixel/s with the anti-glow correction off and 0.672 e⁻/pixel/s with it on, 0.80 and 0.50 e⁻/pixel/s respectively at −30 °C, full well 61 031 ADU (69 026 e⁻), dynamic range 93 dB, pixel response non-uniformity 0.131 %, linearity error 0.122 %.
  • Sigma clipping, the MAD σ (1.4826 × median absolute deviation) and the photon transfer method for conversion gain are standard; fibub's implementations are pinned in the tests against ccdproc 2.5.1 and astropy 8.0.

If you are an author or publisher and want a credit or a passage changed or removed, tell us and we will act quickly.

Tools in this article

Read next