It seems you want to unwrap the phase (plus pi) along your path: https://gist.github.com/ssfrr/7995008
But as you data are quite discrete, I'm not sure it will work. Maybe if you interpolate.
It seems you want to unwrap the phase (plus pi) along your path: https://gist.github.com/ssfrr/7995008
But as you data are quite discrete, I'm not sure it will work. Maybe if you interpolate.