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

Home » Public Forums » archive » Re: Divide By Zero error
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: Divide By Zero error [message #27884 is a reply to message #27878] Fri, 09 November 2001 14:59 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
"Logan Lindquist" <llindqusit@mrdoc.cc> writes:

> This is a multi-part message in MIME format.
>
> ------=_NextPart_000_0009_01C16841.6350B0C0
> Content-Type: text/plain;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> Does anyone know what the minum window size is for the fft function? =
> Does it have to be divisble by a certain number? I am getting 0's with a =
> 8x8 array. The array is pretty flat and dark [all around pixel value of =
> 50] but I wouldn't think that I should get zero's returned as a =
> frequency component.=20
>
> The solution that I see is to check to see if there are zero's in the =
> array and then either change them to 0.1 or skip that array when trying =
> to display it. [with a note to the user letting them know that no =
> frequency component can be found.]
>
> Hopefully someone will read this! I am going to try calling RSI to see =
> if they have an answer.=20

Logan, the usual way fourier power is defined, is the *squared
magnitude* of the fourier coefficients.

If you define

power = -alog10( abs(f)^2 )

then I think your problems will be alleviated.

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: dumb question--floating
Next Topic: Re: dumb question--floating

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

Current Time: Fri Oct 10 15:02:46 PDT 2025

Total time taken to generate the page: 0.96053 seconds