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 #78540 is a reply to message #78539] Tue, 29 November 2011 09:44 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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.")
[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: Fri Oct 10 17:22:15 PDT 2025

Total time taken to generate the page: 1.38023 seconds