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

Home » Public Forums » archive » Re: FFT-bug???? (PV-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-bug???? (PV-Wave) [message #10344] Wed, 19 November 1997 00:00
steinhh is currently offline  steinhh
Messages: 260
Registered: June 1994
Senior Member
In article <879843126.431506@curry.top.tld>
Franz.Dollinger@mchp.siemens.de (Franz Dollinger) writes:

> The absolute value is identical for Fortran and PV-Wave, but the
> phase of the PV-Wave output is wrong.

This may simply be a different convention as to what is regarded
as the "central pixel" in the (periodic!) pattern that you are
FFT'ing.

E.g., given an array a = fltarr(128), IDL will consider the a(0)
as the "central" pixel (the pixel at the "origin") - thus a
discrete "delta function" would be represented by

a = fltarr(128)
a(0) = 1.0

Analogously, the zero frequency component of an FFT (in IDL) is
stored in a(0).

I suspect that some libraries implementing FFT has diverging
definitions - e.g., regarding a(63) as the central element (but
still storing the zero *frequency* component in a(0) - ??)

Depending on the exact definition, such a difference may cause
only the phase of a transform to be wrong (since the original
data seems to have been shifted).

Regards,

Stein Vidar
[Message index]
 
Read Message
Previous Topic: Re: expand_path
Next Topic: Different Platforms

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

Current Time: Wed Oct 08 19:29:07 PDT 2025

Total time taken to generate the page: 0.00382 seconds