|
From: Jon G. <jo...@th...> - 2014-01-30 19:17:46
|
> Yes. > The actual smoothing code will probably only require a few lines of C. I've attached two patches, one that merges cleanly against cvs, and one that works with 4.6 (minor change, but might come in useful). I have also attached a sample data file with real phase measurements, and a plot file that plots this data with and without unwrapping. > The trickier part may be deciding whether or not it needs to be > reexecuted on replot/refresh/zoom/unzoom. The patch only implements unwrapping for datasets, and not for continuous functions (I'm not entirely sure why it has no effect for functions; it is not an intentional limitation from my side). It seems to work well with zoom/unzoom/pan/replot as far as I can see. I'd appreciate it if someone else could try this with their datasets too and see that it's not doing anything too silly. I could also implement a weighted unwrapper if anyone feels there's a need for it, but I think basic unwrap will get us quite far. Cheers, Jon |