Computing the Electronic Gain for Detectors Read Out Up-The-Ramp
Timothy D. Brandt
TL;DR
This work presents a likelihood-based framework to estimate detector electronic gain from up-the-ramp, nondestructive reads, addressing limitations of the traditional photon transfer curve by exploiting the full ramp covariance and marginalizing over the per-ramp count rate. The method remains accurate under photon-noise and Gaussian read-noise assumptions and accommodates mild nonlinearity via a second-order correction. Validation with synthetic data shows Gaussianity of the gain posterior and unbiasedness with sufficient ramps, and application to Roman Space Telescope WFI data yields per-pixel gain maps with ~3.5% precision, revealing that gain variations account for much of the flatfield structure. The approach provides a practical, scalable path to pixelwise gain calibration across large detector arrays, with public code for implementation and replication of results.
Abstract
The electronic gain -- the conversion between photoelectrons on a pixel and the digital number recorded to disk -- gives physical units to an astronomical image and sets the relation between pixel value and photon noise. This paper presents a new, likelihood-based approach to derive the gain from images taken up-the-ramp, where the detector is read out nondestructively many times before being reset. Our method makes full use of the individual reads assuming an ideal detector subject to photon noise and Gaussian read noise. We extend the method to account for slight nonlinearities in the relation between photoelectrons and measured counts. We demonstrate that our likelihood-based approach provides a consistent (i.e. asymptotically correct) and nearly unbiased estimator of the gain both with and without fitting for nonlinearity. Finally, we apply this approach to a single detector from the Wide-Field Instrument on the Roman Space Telescope, and show how pixel-to-pixel gain variations describe much of the variations in pixel response seen in flatfield images. Code to compute gain and regenerate figures in this paper is available at https://github.com/RomanSpaceTelescope/SOCReferenceFileCode.
