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

Home » Public Forums » archive » Re: IDL QUESTIONS(time convection)
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: IDL QUESTIONS(time convection) [message #78539] Tue, 29 November 2011 09:49 Go to previous message
zolile mtumela is currently offline  zolile mtumela
Messages: 50
Registered: September 2011
Member
On Nov 29, 7:44 pm, David Fanning <n...@dfanning.com> wrote:
> zolile mtumela writes:
>> The aims of these plots are find the spetral peaks. Now I can't read
>> the spectrum. It is important for me do sampling rate of 120 seconds.
>> Lack of understanding is killing me.
>> I need help and suggestions about solving this problem.
>
> Well, I don't know. This code seems to do what you want
> to do, with the data you provided this morning.
>
> !p.multi=[0,1,2]
> Result = interpol(vel,time,U)
> cgplot, (time-time[0])/3600., vel, $
>     linestyle = 2, xtitle='Hours'
> cgplot, (u-u[0])/3600., result, /overplot, $
>      psym=2, color='red'
> N = n_elements(result)
> print, N
> T = 120
> Spec = fft(result)
> freq_axis =findgen(N)/(N*T)
> cgplot, freq_axis[0:N/2],abs(spec[0:N/2]), $
>    xrange =[0.001,0.005], xstyle=1
> !p.multi=0
> end
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.idlcoyote.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Thank you so David
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL Workbench Crashing on Macs
Next Topic: IDLDoc Error

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

Current Time: Wed Oct 08 17:03:07 PDT 2025

Total time taken to generate the page: 0.00385 seconds