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 #41277 is a reply to message #41272] Sun, 03 October 2004 13:36 Go to previous messageGo to previous message
julio is currently offline  julio
Messages: 31
Registered: December 2003
Member
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.
What could be the problem? I must retain the array size, I just need
to change Nan for zeros or other value.

Regards,
Julio


David Fanning <david@dfanning.com> wrote in message news:<MPG.1bc94a59bb2414b998968f@news.frii.com>...
> Julio writes:
>
>> I need to manipulate arrays with some NaN values inside. How can I put
>> zero values in the place of the NaN values??
>
> Here is an article that describes how to find them, so
> you can change them:
>
> http://www.dfanning.com/tips/check_nan.html
>
> 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: Sun Oct 12 00:49:52 PDT 2025

Total time taken to generate the page: 1.36020 seconds