Arrays with NaN values [message #41287] |
Sat, 02 October 2004 21:49  |
julio
Messages: 31 Registered: December 2003
|
Member |
|
|
Hi!
I need to manipulate arrays with some NaN values inside. How can I put
zero values in the place of the NaN values??
Cheers,
Julio
|
|
|
Re: Arrays with NaN values [message #41343 is a reply to message #41287] |
Tue, 05 October 2004 18:21  |
Mark Hadfield
Messages: 783 Registered: May 1995
|
Senior Member |
|
|
Paul Van Delst wrote:
> Mark Hadfield wrote:
>>
>> In IDL 6.0 the logical not operator, "~" operator was introduced to
>> avoid this problem,
>
>
> Man, the C-loving types really did a number on IDL. RSI musta hired a
> boatload of CS grads from the same school or something to implement the
> OO stuff. :o) [and, just in case anyone is irony impaired, yes, I am
> kidding]
>
> I realise "~" is a complement operator but when I look at the code
> above, I think "where the elements of IMAGE are *approximately* finite"
> ..... huh?
>
> Gosh, I have that old'n'crusty feeling coming on again. Back to DF's
> blog for some restorative therapy......
You && me both.
--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
|
|
|