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

Home » Public Forums » archive » Re: FFT wierdness in WAVE
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: FFT wierdness in WAVE [message #6080] Thu, 28 March 1996 00:00 Go to previous message
Jackel is currently offline  Jackel
Messages: 30
Registered: April 1993
Member
In article <4jbl6k$2dp@news.tamu.edu> howie@skeefum.tamu.edu (Matt Howard) writes:
> Subject: FFT wierdness in WAVE

> Can anyone here enlighten me on why the plots produced with the
> following commands are so different?
[Text deleted]
>> plot,abs(fft(findgen(8395),-1)) - works!
>> plot,abs(fft(findgen(8396),-1)) - fails! Peaks where none should be.

A couple of versions ago, the IDL bug-fix notes mentioned a problem with
FFT's when the length was not factorable into small primes. For example,
of the two numbers in your example, the "fails" case does not factor well:

IDL> print,prime_factors(8396)
2 2 2099

but the "works" case does (relatively speaking).

IDL> print,prime_factors(8395)
5 23 73

(Note that this is also the reason why the first case takes much longer to
compute.)

Since PV-Wave got their source from IDL quite a while ago, it seems
likely that you're seeing the same problems. You can either hope that it gets
fixed in the next version, or switch to IDL :)

Brian Jackel
University of Western Ontario
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Bug in rebin function
Next Topic: Re: Installation of idl under Win3.11

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

Current Time: Fri Oct 10 09:01:26 PDT 2025

Total time taken to generate the page: 0.00169 seconds