unwrap package:dsp

This is the simple phase unwrapping algorithm from Oppenheim and Schafer.
Simple phase unwrapping algorithm