{'fraction_non_alphanumeric': 0.026845637583892617, 'fraction_numerical': 0.0019175455417066154, 'mean_word_length': 4.767955801104972, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Measuring the centroid gain of a Shack-Hartmann quad-cell wavefront sensor by using slope discrepancy.

Shack-Hartmann wavefront sensors (SH WFS) are used by many adaptive optics (AO) systems to measure the wavefront. In this WFS, the centroid of the spots is proportional to the wavefront slope. If the detectors consist of 2 x 2 quad cells, as is the case in most astronomical AO systems, then the centroid measurement is proportional to the centroid gain. This quantity varies with the strength of the atmospheric turbulence and the angular extent of the beacon. The benefits of knowing the centroid gain and current techniques to measure it are discussed. A new method is presented, which takes advantage of the fact that, in a SH-WFS-based AO system, there are usually more measurements than actuators. Centroids in the null space of the wavefront reconstructor, called slope discrepancy measurements, contain information about the centroid gain. Tests using the W. M. Keck Observatory AO system demonstrate the accuracy of the algorithm.