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

Home » Public Forums » archive » Inverse 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: Inverse FFT [message #33284 is a reply to message #33221] Tue, 17 December 2002 03:06 Go to previous messageGo to previous message
aultc is currently offline  aultc
Messages: 4
Registered: December 2002
Junior Member
Hi,

Thanks for the comments and suggestions.

I am packing the negative frequencies correctly (I hope!) - just using
the same method in the online FFT example. I call this array k_points,
and this ranges thus 0, 0.01, 0.02.....,0.50, -0.49, ...., -0.02,
-0.01. This is for 100 points sampled at T=1.0 seconds.

I then compute the FFT via the normal method, FFT(function), and
obtain my expected spectral pattern. So far, so good!

I then use the following code to compute (manually) the inverse:

FOR j=0, n-1 DO BEGIN

spec_sig = FT*exp(2*pi*k_points * t[j]/n)

new_signal[j] = TOTAL(spec_sig)

ENDFOR

FT is an array holding the fourier transform of my function
n is the number of points (100)
k_points is the same as mentioned above
t is an array from 0,1,..100, i.e the times at which the function is
sampled.

I then just carry out the summation and put it in new_signal. This is
then plotted.

Unfortunately this still doesn't work! Any further suggestions would
be greatly welcomed.

Colin




then just carries out the summation



aultc@astro.warwick.ac.uk (Colin Ault) wrote in message news:<24be9e8e.0212160833.7d214a6a@posting.google.com>...
> Hi,
>
> I hope someone help me with a problem I am having with the FFT
> function.
>
> I have a signal f_t, which I then take the FFT of to produce its
> corresponding spectral components. I then want to manually compute its
> inverse FT, rather than using the IDL FFT( .../inverse) function.
>
> The reason for this is that I want each spectral component to
> propogate at different velocitys over a time period t. Hence, when the
> signal is recombined t seconds later, the signal *should* look
> different.
>
> I am not having much luck at the moment, so any suggestions on this
> problem will be gratefully received.
>
> Thanks,
> Colin
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: What I Want for Christmas.
Next Topic: Re: IDLDE refresh in Windows XP (IDL 5.2.1)

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

Current Time: Sat Oct 11 07:13:05 PDT 2025

Total time taken to generate the page: 1.99741 seconds