Earth's positive radiative forcing is significantly accelerated by massive anthropogenic emissions of greenhouse gases, like carbon dioxide and methane . Since 2014 the concentration of CO2 exceeds 400 parts per million (ppm), and the concentration of CH4 climbs up to 1900 parts per billion (ppb)  with a constant annual increase.
Near-Infrared wave front sensing allows to enhance sky coverage with adaptive optics. The recently developed
HgCdTe avalanche photodiode arrays are promising, but still present an unperfect cosmetic. After the fine
characterization of such a HgCdTe array, we propose a statistical model of the pixel response. Assuming the
cosmetic is partially corrected, we simulate the impact of the residual error on a Shack-Hartmann wavefront
sensor measurement. The study shows the operability of such a real time correction, and of the HgCdTe APD
array characterized in this framework: the RAPID camera.