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

Home » Public Forums » archive » Re: transforming an array where some values can't
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: transforming an array where some values can't [message #10897 is a reply to message #10896] Sun, 08 February 1998 00:00 Go to previous messageGo to previous message
alpha is currently offline  alpha
Messages: 49
Registered: September 1996
Member
offenbrg@fondue.gsfc.nasa.gov (Joel D. Offenberg) writes:
> bowler@eisner.decus.org writes:

>> What I have is

>> function xform, input
>> temp = alog(input) ; I realize I could combine these 2 statements
>> return, temp ; but it makes debugging easier
>> end

>> Unfortunately, I can't guarentee that there won't be some elements that are
>> zero and thus invalid arguments to alog. what's the "most efficient" way to
>> take the alog of any element that's greater than 0 and set the value of ony
>> that are less than or equal to 0 to some small value (1e-7 for example)?

> I think what you want is this:

> function xform, input
> temp = alog(input > 1e-7)
> return, temp
> end

> The ">" operator in this case sets a floor on the values of "input"...any
> value less than 1e-7 is replaced with 1e-7.


RSI told us, that the alo10 error was corrected in release 5.1!

so wait

Panther


--
Panther in the Jungle __..--''``\--....___ _..,_
-BELIEVE AND DECEIVE- _.-' .-/"; ` ``<._ ``-+'~=.
http://www.ang-physik _.-' _..--.'_ \ `(^) )
.uni-kiel.de/~hendrik ((..-' (< _ ;_..__ ; `'
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Summary: failed call_external under Windows NT
Next Topic: Re: Surface normals with shade_volume

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

Current Time: Sun Oct 12 00:02:17 PDT 2025

Total time taken to generate the page: 0.01068 seconds