What relationship can be established between RAW signal, measured charge and this camera's limitations? This version presents the protocol, estimators and results of the initial characterisation. It separates the final synthesis from complementary experiments that tested interpretations of the dark background.
Summary report — IMX477 characterisationMeasurements, figures and conclusions from the EIP campaign. Read the PDF report1. Scientific question and scope
The Raspberry Pi HQ uses a 12.3-megapixel Sony IMX477 with a C/CS mount. This study characterises this module, in the EIP acquisition chain and under the stated conditions: conversion, read noise, saturation, dynamic range and dark signatures. It is not a universal specification for every IMX477.
These measurements, made for astronomy, characterise the sensor within EIP, a general-purpose embedded imaging platform. They concern raw values; display settings are not analysis parameters.
2. RAW12 signal and usable range
The raw data (RAW) are acquired full field at 4056 × 3040, 12 bits, with a colour filter array (CFA) BGGR layout (blue-green / green-red). The four phases R, G1, G2 and B are kept separate before aggregation; colour demosaicing is not used for the statistics.
An ADU is a digital unit produced by the analogue-to-digital converter. The reference black level is 256 ADU in RAW12: the source level of 64 on a 10-bit scale is mapped to this scale. The digital white code is 4095.
Twelve bits describe quantisation, not physical dynamic range or noise. The pedestal measured in an image may also vary around this reference; it should not be confused with photoelectric charge.
3. Experimental protocol
The camera is deliberately used at ordinary ambient temperature, around 23 to 24 °C, without active Peltier cooling. Forced ventilation, with two additional fans directed at the back of the circuit board, limits self-heating during sustained acquisition.
| Dataset | Acquisition | Purpose |
|---|---|---|
| Multi-gain PTC | 8 gains; 12 levels per gain; 20 images per level, giving 10 pairs. | Conversion and saturation: 960 pairs in total. |
| Read noise | 50 short dark frames per gain, giving 25 pairs. | 200 pairs in total; conversion using K at the same gain. |
| Final long-exposure dark frames | Gain 1; 0.1, 1, 5, 10, 30, 60, 120 and 300 s; 10 images per level. | 80 images; 16,060 tracked positions covering all four CFA phases. |
| Historical complementary study | Gain 1; 60, 120, 150, 180, 240 and 300 s; 20 images per level. | 120 RAW frames; variance and structure checks, separate from the final 10-image product. |
Final long-exposure levels alternate durations and include 60 s pauses between levels to limit heating. The 72 available temperatures across 80 images cover 25–27 °C; the first image at each level lacks thermal telemetry and is retained. No missing value is interpolated. Readings are quantised to degrees; decimal averages do not improve that resolution.
These temperatures do not describe all acquisitions: the gain-1 PTC covers 24–27 °C, and gain-1 read-noise pairs cover 23–26 °C. Temperature variation may be confounded with the effect studied in the gain-1 PTC. Alternating durations and rests limit this bias without constituting randomisation or independent thermal trials.
In the historical twenty-image study, all 114 available temperatures across 120 RAW frames are 27 °C; analogue gain is 1 and digital gain is constant, close to 1. Defect pixel correction (DPC) is disabled in this controlled study. This state is not extended without evidence to every acquisition.
The 6 October summary report documents the final campaign. The complementary spatial-structure report (text) documents the historical twenty-image dataset. Their sample sizes and results remain separate below.
4. Conversion gain and PTC
The photon transfer curve (PTC) relates temporal variance estimated from pair differences to mean signal under stable illumination. For comparable images A and B, and each CFA phase:
S is the mean RAW level in ADU, including black; V is variance in ADU². Moments are calculated over positions in the relevant phase, then averaged over the level's ten pairs. Differences remove fixed structure identical in both images, provided they are comparable.
The slope a is expressed in ADU/e⁻; its inverse is the conversion gain K in e⁻/ADU. The intercept b is free: with a RAW axis that includes black, it should not be interpreted directly as read-noise variance.
Selection excludes levels whose global fraction of white-code pixels reaches 0.0001, then retains the longest initial sequence, ordered by signal, compatible with a positive slope and R² ≥ 0.99, using at least four levels. At gain 1, nine of twelve levels are retained; three are rejected near saturation. The retained mean green range extends from 463.5 to 3116.0 ADU, including black.
The global K is the mean of the G1 and G2 phase coefficients. The published standard error is the mean of their fit standard errors; it is not a complete instrumental uncertainty budget. Unrounded R² is 0.99999848.
5. Read noise
Differences between pairs of short dark frames estimate read noise. Assuming independent, equal-variance fluctuations and negligible dark signal at this exposure:
Twenty-five pairs per gain provide the read-noise estimator; conversion uses K at the same gain. At gain 1, the global result is 1.511603 ADU, or 3.517646 e⁻ (3.52 e⁻ rounded). A correlation between frames or another temporal contribution would limit interpretation as read noise alone.
6. Effective capacity and dynamic range
The digital saturation is observed: the maximum global fraction of clipped pixels is 0.27032, above the 0.000100 threshold. This global fraction does not separately describe clipping in each CFA phase.
The report defines capacity from the observed ceiling Wobs and reference black level Bref on the RAW scale:
At gain 1, Wobs = 3827.1167 ADU, Bref = 256 ADU and K = 2.327096 e⁻/ADU give Qeff = 8310.33 e⁻. This ceiling is neither the nominal white code 4095 nor the last retained PTC point. It is an effective instrumental capacity, not a universal physical photosite capacity.
The dynamic range reaches 11.206 stops, or 11.21 rounded, equivalent to 67.47 dB. The ratio is dimensionless; one stop represents a factor of 2. These derived quantities retain the limitations of K and the saturation convention; a total uncertainty budget has not been established.
7. Behaviour across gains
| Effective gain | K (e⁻/ADU) | Noise (e⁻) | Qeff (e⁻) | DR (stops) |
|---|---|---|---|---|
| 1.000 | 2.3271 | 3.518 | 8 310 | 11.206 |
| 1.556 | 1.5080 | 2.928 | 4 449 | 10.569 |
| 2.427 | 0.9720 | 2.492 | 3 639 | 10.512 |
| 3.779 | 0.6276 | 2.212 | 2 123 | 9.907 |
| 5.885 | 0.4048 | 1.962 | 1 545 | 9.621 |
| 9.143 | 0.2614 | 1.841 | 961 | 9.028 |
| 14.222 | 0.1692 | 1.753 | 546 | 8.284 |
| 22.261 | 0.1088 | 1.669 | 413 | 7.951 |
The gains above are measured effective gains, not simply setpoints. The eight PTCs contain 960 pairs, with none rejected for non-comparability; this does not mean every level is retained in each fit. The number of retained levels varies from six to nine with gain.
K and electron-referred read noise decrease with gain; effective capacity and dynamic range also fall. The selected behaviour is continuous, with no statistically established break in this range.
The continuous model fits log K with a polynomial in log gain; degree 3 is preferred among the candidates and remains monotonic. The Bayesian information criterion (BIC) is 9.436 for this model versus 17.488 for the model with a break. Under the convention ΔBIC = BICcontinuous − BICbreak, ΔBIC = −8.052 therefore favours the continuous model.
The resampling with 2000 repetitions gives p = 0.51524. The decision rule requires ΔBIC ≥ 6, p ≤ 0.01 and independent confirmation to establish a break. Those criteria are not met. A transition outside the range or below the protocol's sensitivity is not excluded; thermal confounding flagged at gain 1 remains a model limitation.
8. Long exposures and dark current
Different estimators
The dark current physically generates charge even without light. Mean level, temporal variance, the common mode and fixed structure nevertheless measure different things.
In the final campaign, the ten images at each level are averaged at each of the 16,060 positions. A regression over the eight durations then describes this level:
yi is the mean level in ADU, t is duration in seconds, ai is the intercept and mi an apparent slope in ADU/pixel/s. It can mix dark charge and background shifts; it is not automatically a physical current.
Complementary checks also examined variance at the same pixel across frames. Under an ideal model of independent Poisson dark charge, constant read noise and no other temporal contribution:
Idark is in e⁻/pixel/s. This equation is a model to test, not evidence that every variance slope comes from typical dark current. Common variation between images or readout effects can add a contribution.
What the checks establish and their limits
A targeted series compares 198.590, 216.242, 225.068, 242.721 and 300 s around the line-length change. The variance decrease is already visible before the transition near 225 s, without a clear break at that transition. Reconstructed duration error at 300 s is below 0.001%: a simple exposure-time or line-length error cannot explain the observed effect.
An eleven-level series between 30 and 300 s, with five RAW frames per level in non-monotonic order, followed by the six-level, twenty-RAW control described in section 3, expanded temporal coverage and sample sizes. Model-selection criteria do not give a consistent signature across all four CFA phases and common-level corrections. The corrected median, trimmed mean at 5% and pair differences therefore do not support demonstrated intrinsic sublinearity of dark current.
In the twenty-image control, effective exposure errors remain below 0.003%. Common-mode corrections change some slope ratios by more than 3 in absolute value, without a comparable break in the mean pedestal around 120–150 s. This concerns the whole chain; attribution to photosites alone is not established.
Final result and decision criterion
The global baseline slope is −0.001092 ± 0.000922 ADU/pixel/s with R² = 0.189. The criterion specifically seeks a positive slope exceeding 1.96 times its standard error:
σm is the global slope's standard error. This is not a two-sided test for the absence of all drift. A negative slope does not meet the search for a positive slope; it does not represent a negative physical current.
9. Hot pixels and distributions
The distribution of individual slopes has a median of −0.00544 ADU/pixel/s, a p90 of 0.00903 and a p99 of 0.04031 ADU/pixel/s. These quantiles describe the population and its positive tail; they do not provide a physical measurement for a typical pixel.
Temporal outlier positions are selected when their slope exceeds the adaptive threshold T:
m̃ is the median slope; the MAD is the median absolute deviation from that median. The resulting threshold is 0.05443 ADU/pixel/s. It flags 75 hot pixels out of 16,060 positions, or 0.47%. The result depends on tracked positions and threshold; it is not a full-sensor inventory.
The hot-pixel population and background shift can affect a mean differently from a median. They must be separated before a descriptive slope is converted to electrons.
10. Spatial background structures
Final master and derived maps
The final product combines ten 300 s RAW frames using a temporal median into a full-sensor master at 4056 × 3040, gain 1, BGGR CFA. Spatial statistics average the four positions of each 2 × 2 Bayer cell, then estimate local levels using medians of 32 × 32-cell blocks, equivalent to 64 × 64 photosites. Values beyond p99.9 and saturated values are masked.



For this final ten-image product, native profiles follow Bayer averaging, local-block subtraction and a median along each axis, then centring on their mean. Population RMS values are 0.244533 ADU for rows and 0.031310 ADU for columns. Curves in the PDF's reduced display must not be treated as these native profiles.
Complementary twenty-image study: gradient and anisotropy
The following figures and metrics come from the historical dataset with twenty RAW frames per level, not the final ten-image product. The p99.9 mask and 64 × 64-photosite grid isolate aggregated structure. At 300 s, the median master gives 255.25 ADU at the centre, 255.75 at the edges and 256.00 in the corners, or +0.50 and +0.75 ADU relative to the centre. All four sides have the same median: the geometry is mainly radial.
After local-background removal, the row profile reaches 0.251227 ADU RMS and 1.25 ADU peak-to-peak, compared with 0.033076 ADU RMS for columns. The candidate dominant period is 19.87 rows according to Fourier analysis; autocorrelation gives 24 rows. This suggests modulation on roughly 20 to 24 rows without establishing a unique periodic mechanism.
| Quantity | Median master | Mean master |
|---|---|---|
| Row RMS (ADU) | 0.251227 | 0.246258 |
| Row peak-to-peak (ADU) | 1.250000 | 1.168750 |
| Edges − centre (ADU) | 0.500000 | 0.487488 |
Modulation is quantifiable mainly in G1 and R; B and G2 remain below the row-median quantisation in this dataset. How the wave amplitude changes with duration remains inconclusive: the quantised median modestly favours a non-linear model, while the unrounded mean evolves almost linearly. Individual RAW values remain quantised to 1 ADU; fractions of an ADU come from aggregation. Averaging twenty images retains a temporal step of 0.05 ADU.
Repeatability and testing in another room
At 300 s, mean correlation between a frame's profile and the historical master's profile reaches 0.821867 (minimum 0.808510), versus 0.216330 at 60 s. Between the 240 and 300 s profiles, r = 0.913480; between 60 and 300 s, r = 0.336182. Phase becomes repeatable at long exposures, but its stability across the whole exposure range remains inconclusive.
A single 300 s cross-check capture after moving to another room gives r = 0.877660 for the low-frequency structure and r = 0.864081 for the horizontal profile after masking extremes. The low-amplitude vertical profile gives r = 0.314272. No new gradient associated with the room's lighting appears.
The structure is compatible with a fixed signature of the sensor/readout chain. Background shading and a horizontal component are observed; electronic or thermal glow remains a hypothesis, not a demonstrated cause.
Fixed structure and temporal variance
At a position i, subtracting the same fixed map ci from every frame does not change temporal variance. Structures do affect spatial statistics and estimators that mix positions. Their presence alone cannot explain a temporal slope, and their relationship to common mode remains unestablished.
11. Limitations and hypotheses
- Results concern one module and one chain. Fit standard errors do not cover every experimental bias.
- The gain-1 PTC is highly linear but retains a qualified status, particularly because of temperature; capacity and dynamic range depend on it.
- Temperatures are quantised to whole degrees and some are missing; stable telemetry does not establish perfect electronic stability.
- Masks and thresholds are adaptive; their selected populations must accompany comparisons.
- Aggregation and quantisation limit sub-ADU amplitudes and interpretation of exposure-time dependence.
- Spatial correlation establishes similarity, not thermal causality or glow as the origin.
For deep-sky imaging, preserving RAW12 data, monitoring temperature and using comparable calibration frames helps address repeatable patterns. Dithering between exposures can help reject defects after alignment. This study yields no universally optimal exposure duration.
12. Conclusion
| Quantity | Value / result | Status | Main limitation |
|---|---|---|---|
| Conversion gain at gain 1 | 2.3271 ± 0.0011 e⁻/ADU | Fitted | Fit standard error; qualified PTC status. |
| Read noise at gain 1 | 1.512 ADU; 3.518 e⁻ | Measured | Pair differences and K at the same gain. |
| Effective capacity at gain 1 | 8 310.33 e⁻ | Derived | Instrumental convention, not universal physical capacity. |
| Dynamic range at gain 1 | 11.21 stops; 67.47 dB | Derived | Derived from Qeff and noise; inherits K's limitations. |
| Breakpoint across gains | No statistically established break | Not detected | Protocol range and sensitivity. |
| Typical dark current | No reliable physical value | Unresolved | Insufficient separation of temporal contributions. |
| Temporal hot-pixel positions | 75 / 16 060; 0.47% | Measured | Sample and adaptive threshold. |
| Low-frequency structure | Edges +0.50; corners +0.75 ADU at 300 s (complementary 20-image study) | Observed | Aggregated structure; cause not established. |
| Horizontal modulation | RMS 0.251227 ADU (complementary 20-image study) | Observed | Final 10-image RMS: 0.244533 ADU; distinct datasets. |
| Physical cause of the patterns | Signature compatible with the sensor/readout chain | Origin not established | External leak highly unlikely, not proven impossible. |
Characterisation establishes useful values for this chain and repeatable structures. It does not provide a reliable physical value for typical dark current.
The next study compares fan cooling alone with Peltier cooling: the same questions in a different thermal regime, without assuming that a comparison alone establishes causality.
Continue reading
Other version
Discovery version · Revisit the concepts through images and intuition.