unwrap function

Unwrap radian phases