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

Home » Public Forums » archive » Re: Arrays with NaN values
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: Arrays with NaN values [message #41266 is a reply to message #41258] Mon, 04 October 2004 10:08 Go to previous messageGo to previous message
julio is currently offline  julio
Messages: 31
Registered: December 2003
Member
Man, your code worked fine!
Very simple, very efficient...

Thanks
Julio

David Fanning <david@dfanning.com> wrote in message news:<MPG.1bca8c1aa16488e5989691@news.frii.com>...
> Julio writes:
>
>> Ok, David, but I'm using this code to put zeros in the place of Nan
>>
>> Image=(0*(where(float(finite Image[*,*],/Nan)))) + $
>> Image*(where(NOT float(finite *Image[*,*],/Nan))))
>>
>> I guess I'm not using "where" function correctly, once it doesn't
>> work.
>
> Humm. Well that code looks a little strange. :-)
>
> I think I would try something like this:
>
> index = Where(Finite(image) EQ 0, count)
> IF count NE 0 THEN image[index] = 0
>
> Cheers,
>
> David
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Map_grid options
Next Topic: General 3D graphics advise required

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

Current Time: Mon Dec 01 10:45:29 PST 2025

Total time taken to generate the page: 0.02116 seconds