1. A method for quantifying a shape of a surface comprising: measuring an elevation (z) of the surface at a plurality of locations in an x-y plane of the surface comprising measurement data; performing a fit of the measurement data to a series expansion in terms of one or more base functions comprising a series expansion fit; calculating a vector of shape coefficients from the series expansion fit; and outputting the vector of shape coefficients.