From detected electrons to slope
The wavefront is measured in waves. Normalized pupil coordinates are the transverse distance divided by the pupil radius. Pixels are two micrometres wide and the lenslet focal length is two millimetres. Each spot is modelled as a Gaussian, integrated over pixels, with optional Poisson counts. The centroid bias from the finite window stays in the result.