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

Home » Public Forums » archive » dfourt
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
dfourt [message #90829] Tue, 21 April 2015 16:35 Go to next message
beppe89 is currently offline  beppe89
Messages: 1
Registered: April 2015
Junior Member
Hi everyone,

I am a beginner in the use of IDL and and I need some help. I need to write a program that calculates the inverse of the discrete fourier transform calculated by the dfourt.pro.
I know that dft.pro calculates the inverse, but I really need the one from dfourt.pro.

Thanks,
--
beppe89
http://compgroups.net/comp.lang.idl-pvwave/
Re: dfourt [message #90833 is a reply to message #90829] Fri, 24 April 2015 11:44 Go to previous message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
Looking at the code
http://www.arm.ac.uk/~csj/idl/CLEAN/dfourt.pro

It seems pretty easy to do. They appear to be building the Fourier transform as described in any undergraduate mathematical methods text (e.g. Boas). Essentially, the inverse transform would be

ifft = complex(0, 0)
for i = 0, npts - 1
ifft = ifft + complex( A[i] * cos(f[i]*t), B[i] * sin(f[i]*t)
endfor

Where A and B are the real and complex fourier coefficients, t is time, and f is frequency.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Releasing temporary variables created with IDL_MakeTempArray()
Next Topic: how did I get here?

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

Current Time: Wed Oct 08 15:34:28 PDT 2025

Total time taken to generate the page: 0.00592 seconds