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

Home » Public Forums » archive » Re: Radar dB values
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: Radar dB values [message #29327] Thu, 14 February 2002 08:40 Go to previous message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
Pretty close, but for the result to be integer, all components of an
expression need to be integer. If any one is "higher", the entire result
is promoted.
So that

help, 10*alog10(45)
<Expression> Float = 16.5321

because ALOG returns floating point value no matter what you pass in.
Cheers,
Pavel

Vincent Schut wrote:
>
> Usually when you get an output of only 0's and 1's, there is a integer
> somewhere in your calculation where it should have been floating point.
> Check your formulas and variables; if any of them in your calculation is
> integer, the result will be integer too...
> I assume you use something like db=10*alog10(rawvalue)? Try putting a
> point zero behind the '10', which makes it a floating point constant
> instead of a integer: db=10.0 * alog10(rawvalue)
>
> Cheers,
> Vincent.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Masking multiple ROI's
Next Topic: positioning cursor in object graphics

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

Current Time: Thu Oct 09 09:20:09 PDT 2025

Total time taken to generate the page: 0.42558 seconds