A quick method to analyze the Hartmann-Shack pattern was developed. This method allows us to study the limitations of the system and to determine how to improve its capacity to measure a large range of aberration. It can treat situations presenting difficulty when analyzing a detected pattern. An application to eyes with large amounts of aberration due to corneal surgery is considered.