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

Home » Public Forums » archive » Re: dcomplexarr and phase
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: dcomplexarr and phase [message #79534] Tue, 06 March 2012 10:41
zolile mtumela is currently offline  zolile mtumela
Messages: 50
Registered: September 2011
Member
On Mar 6, 12:41 pm, zolile mtumela <zolilemtum...@gmail.com> wrote:
> Hi all
> I got a program that is running here,  In this program I want to use
> dcomplexarr function on filterdata:
> my data:
> Ny=360
> T=20
> naqy_array = naqy_array =(naqy_array)*(hanning(360))
>
> timefilter = Digital_Filter(f_low*2*T,f_high*2*T,50,floor((Ny)/2))
> ;freqfilter=fft(timefilter)
>
> nfreq=ntime/2
> freq=findgen(nfreq)/(ntime*T)
> freqfilter=fft(timefilter,/double)*ntime
> filterdata=fft(naqy_array,/double)*freqfilter
>
> inv_spec =fft(spec,/double,/inverse)
>
> plot,abs(inv_spec)
> phi = atan(inv_spec)
> plot,phi
>
> I need some help on the ff difficulties
> I want to use dcomplexarr on filterdata so that it returns as
> complex ,  But I dnt how?
> calculate the phase angle, I dnt know if im done correctly and I would
> like to calculate the amplitude
> sqrt(float(inv_spec)^2 + imaginary(inv_spec)^2)
>
> Its allowed to use inverse.
>
> thank you in advance for ur time
> Zolile

Thank you, I have found the way to correct it!!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: oppsite of abs
Next Topic: Coyote Graphics in Back Background Windows

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

Current Time: Fri Oct 10 14:13:36 PDT 2025

Total time taken to generate the page: 0.32026 seconds