[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unwrap modulo 2pi
Thank you! This is very close to what I want. Would you mind
posting the function 'nint' as well?
In article <3A826338.email@example.com>,
"Wim G. Bouwman" <firstname.lastname@example.org> wrote:
> In the following bit of code the measured phase P is unwrapped onto
> This is done by doing a 2nd order extrapolation of the three previous
> points. It works when the jumps are not too extreme.
> ;Correct Phi and PhiOne for 2Pi jumps. The calculated Phi is compared
> ;the experimentally obtained Phi. Extrapolation with least squares
> FOR i=3,(NPhi-1) DO BEGIN
> Njumps=NINT((CALCphi(i)-P(i))/(2*!DPi), /Long)
Sent via Deja.com