operation with array of NaNs [message #52438] |
Wed, 31 January 2007 15:01 |
inardello
Messages: 2 Registered: February 2007
|
Junior Member |
|
|
Hello there,
I am quite new to IDL and found an interesting problem.
I have an array of elements (5x5).
All the elements in the array are NaN(s).
When I ask what is the number of locations (n_elements) where the
elements of this array are e.g.: "finite", the answer is "1".
If the array contains 1 finite elements (and the rest is Nan(s)), the
answer to the same question is still "1".
If the array contains 2 finite elements, the answer to the same
question is (finally..) "2".
> From there we progress normally.
So why can't I have an answer "0" when the array is only filled with
NaNs?
The same problem appears with other forms of analysis of the same
array. For example, "what is the number of elements greater than 10?"
The answer is still "1"
Thank you for your comments.
I->
|
|
|