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

Home » Public Forums » archive » NaN problem in integer arrays
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: NaN problem in integer arrays [message #86207 is a reply to message #86206] Thu, 17 October 2013 08:50 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Galaxytraveler writes:

> I use NaN's a lot in my arrays in place of missing or bad data points,
> but I have problems with it everytime my arrays are integer.

Yes, there are only two types of NaNs in IDL. !Values.F_NaN
is the floating point NaN (that is what the F means) and !Values.D_NaN
is a double precision floating point NaN (that is what the D means).
There is no integer or long or byte value that can be used as a NaN.

Bottom line, if you are going to use NaNs, you will need to use them in
floating point or double precision arrays. No way around it. :-)

> I can see that other people have had troubles with this and explained
it as a windows compiler errors, but I have a mac computer.
> http://www.idlcoyote.com/math_tips/nans.html

That's funny! :-)

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Interactively crop an image with NG
Next Topic: Test if a linux command is available with Spawn

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

Current Time: Sat Oct 11 10:13:26 PDT 2025

Total time taken to generate the page: 1.36092 seconds