A method of determining aberration of an optical imaging system comprises measuring
at least one parameter, such as position of best-focus and/or lateral position,
of an image formed by the imaging system. This is repeated for a plurality of different
illumination settings of the imaging system, and from these measurements at least
one coefficient, representative of aberration of said imaging system, is calculated.