calculate_aberr function

Aberration calculation functions