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

Home » Public Forums » archive » Re: time vs longitude FFT
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: time vs longitude FFT [message #56547 is a reply to message #56542] Mon, 29 October 2007 14:52 Go to previous messageGo to previous message
R.G.Stockwell is currently offline  R.G.Stockwell
Messages: 163
Registered: October 2004
Senior Member
<knielsen73@gmail.com> wrote in message
news:1193692469.369318.51960@50g2000hsm.googlegroups.com...
>> kxvalues = findgen(nx)/nx - 1./2
>> kyvalues = findgen(ny)/ny - 1./2

Note, in the above, it shows that the sampling interval is 1.
You should divide by your sampling interval there if it is not 1.




> amp = 10.
> wave_number = 2
> wavelength = float(jmax)/wave_number
> period = 6.8333333
>
> for j=0,jmax-1 do begin
> for n=0,nmax-1 do begin
> data_in[j,n] = amp*sin(2.*!pi*j/wavelength - 2.*!pi*n/period) +$
> amp*.5*cos(2.*!pi*j/wavelength - 2.*!pi*n/period)

for one thing, you are adding 2 out of phase waves here. Remove the
first term (and just use the cos).

Also, do just 1D to ensure that you are calculating the correct
period and freq.

f = 12/len
data = amp*cos(2 !pi f t)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL + Leopard
Next Topic: more IDL/Leopard issues

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

Current Time: Fri Oct 10 01:29:12 PDT 2025

Total time taken to generate the page: 0.79800 seconds