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

Home » Public Forums » archive » Re: How do I prevent underflow errors?
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: How do I prevent underflow errors? [message #14337] Fri, 19 February 1999 00:00 Go to previous message
Ethan Alpert is currently offline  Ethan Alpert
Messages: 2
Registered: February 1999
Junior Member
Phillip & Suzanne David wrote:

> Unfortunately, our data is NOT all positive, so this doesn't work. However,
> it appears that the really large numbers are due to someone putting a "huge"
> value in where there were holes in the data. We're trying to get them to put
> a smaller "huge" number (1e10?) in instead!

Use the idl operator '<' which can be usIDL> var = [1,2,1e38,1,1e12]ed to convert
every number over
a certain threshold.

i.e:
IDL> var = [1,2,1e38,1,1e12]
IDL> print,var
1.00000 2.00000 1.00000e+38 1.00000 1.00000e+12
IDL> print,var<1e10
1.00000 2.00000 1.00000e+10 1.00000 1.00000e+10
IDL>


1e10 is inserted where ever the value of var is greater than 1e10.

-ethan


--
------------------------------------------------------------ -------------------
Ethan Alpert ethan@ncar.ucar.edu
------------------------------------------------------------ -------------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Byte to Real conversion
Next Topic: IDL and Image Segmentation

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

Current Time: Wed Oct 08 19:11:45 PDT 2025

Total time taken to generate the page: 0.01987 seconds