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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Radar dB values [message #29327] Thu, 14 February 2002 08:40 Go to next 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.
Re: Radar dB values [message #29334 is a reply to message #29327] Thu, 14 February 2002 00:58 Go to previous messageGo to next message
Vincent Schut is currently offline  Vincent Schut
Messages: 8
Registered: February 2002
Junior Member
Ronald Greeley wrote:
> I have been trying to synthesize AIRSAR images in the form where I can
> get the dB value for individual pixels off of the image.
>
>
> When I generate a dB image, it gives me values between 0 and 1.
>
> Can anyone provide advice on how to generate an AIRSAR image off of
> which I can get the dB values ??
>
> Thanks!
>
> Kevin Williams
> kkw@asu.edu
>

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.
Re: Radar dB values [message #29391 is a reply to message #29327] Mon, 18 February 2002 00:25 Go to previous message
Vincent Schut is currently offline  Vincent Schut
Messages: 8
Registered: February 2002
Junior Member
Right :-)

So the problem should be that somewhere in the beginning of the
calculations, one of the var's or expressions might be integer, which
maybe does not prevent the result from being float, but does result in
a, in the end, rounded result: float(0) or float(1). Or, indeed,
somewhere in a expression all the elements are int.
OK, it's a bit hard to explain on a new monday morning just after 9 o
clock. But just 0's and 1's however rang the integer bell somewhere in
my head, kind of reflex maybe...

Thanks for the correction. Only just started with IDL programming :)
Cheers,
Vincent.

Pavel A. Romashkin wrote:
> 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.
>>
  Switch to threaded view of this topic Create a new topic Submit Reply
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 04:34:27 PDT 2025

Total time taken to generate the page: 1.35999 seconds