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

Home » Public Forums » archive » Setting values to NaN
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Setting values to NaN [message #39936] Fri, 25 June 2004 03:28 Go to next message
matt_westmore is currently offline  matt_westmore
Messages: 4
Registered: June 2004
Junior Member
Hi,
I'd realy appreciate someone pointing out why I'm an idiot.

I'm trying to set some values of an image to NaN so that they are not
included in further calculations but I can't seem to do it!!!

eg:
a = indgen(10)
lt5 = where(a LT 5)
a(lt5) = !VALUES.F_NAN
%Program caused arithmetic error: Floating illegal operand
print, a
0 0 0 0 0 5 6 7 8 9

Cheers
Matt
Re: Setting values to NaN [message #39958 is a reply to message #39936] Wed, 30 June 2004 07:39 Go to previous message
K. Bowman is currently offline  K. Bowman
Messages: 330
Registered: May 2000
Senior Member
In article <c66373b9.0406300337.77bc0430@posting.google.com>,
matt_westmore@yahoo.co.uk (Matt) wrote:

> Thanks guys for all the advice; except of course for the re-direction
> to the fetish site!

You don't need to go there. We can provide all the abuse you need right
here. ;-)

Ken Bowman
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Local solar time
Next Topic: 3D overplotting??

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

Current Time: Wed Oct 08 18:07:32 PDT 2025

Total time taken to generate the page: 0.00524 seconds