NAN Problem [message #69403] |
Wed, 13 January 2010 12:23 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Folks,
Consider this sequence of commands on my IDL 7.0.1
LINUX version.
IDL> a = Findgen(11)
IDL> a[0] = !Values.F_NAN
IDL> Print, Min(a), Max(a)
NaN NaN
IDL> b = Findgen(11)
IDL> b[1] = !Values.F_NAN
IDL> Print, Min(b), Max(b)
0.00000 10.00000
What do you make of that? This is giving me a great
deal of touble today while trying to elminate bad
values from an image. :-(
I have the same results with my Windows IDL 7.1.2
version, except I do get a warning about a floating
illegal operand with variable b, which I don't get
on LINUX.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
|
|
|