Creates shifted shape and calculates errors

test_get_average_shape conditions data to ensure interp1 works. It searches for places of negative or zero gradient and changes the values to be monotonically increasing, room for improvement here potentiall using interpolation to calculate more realistic values.

Still need to work out a better way of choosing the reference pixels and how to handle saturation.