[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
unwrap modulo 2pi
- Subject: unwrap modulo 2pi
- From: graham_wilson(at)my-deja.com
- Date: Tue, 06 Feb 2001 23:57:28 GMT
- Newsgroups: comp.lang.idl-pvwave
- Organization: Deja.com
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:23406
Hello all,
Does anyone have a quick function for unwrapping/undoing a modulo 2pi
operation... Omatrix has such a function but I after an hour of
fiddling I cannot seem to do it in IDL.
NB: I moved from omatrix -> IDL about a month ago.
omatrix would be something like:
x = 2*seq(5)
y = 2*Pi
x=mod(x,y)
x=colunmod(x,y)
print x
omatrix> x = {2,4,6,8,20}
Thanks for the help!
Sent via Deja.com
http://www.deja.com/