comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Using 1D FFT to decompose the provided hurricane data in terms of wavenumbers.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Using 1D FFT to decompose the provided hurricane data in terms of wavenumbers. [message #90495 is a reply to message #90494] Thu, 05 March 2015 07:41 Go to previous message
Burch is currently offline  Burch
Messages: 28
Registered: December 2013
Junior Member
> Theta = atan(y, x)
>
> This will give you results ranging from -pi to pi. To change to 0 to 2 pi do
>
> Theta = (theta + 2.0*!pi) mod (2.0*!pi)

Or, obviously, just combine the two lines

theta = (atan(y,x) + 2.0*!pi) mod (2.0*!pi)
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: FG Bug -- Legend/Cleanup
Next Topic: FG Save method -- Gifs

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:55:49 PDT 2025

Total time taken to generate the page: 0.00418 seconds