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 
Return to the default flat view Create a new topic Submit Reply
Setting values to NaN [message #39936] Fri, 25 June 2004 03:28 Go to previous 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
[Message index]
 
Read Message
Read Message
Previous Topic: Local solar time
Next Topic: 3D overplotting??

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

Current Time: Sat Oct 11 00:27:24 PDT 2025

Total time taken to generate the page: 0.64223 seconds