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

Home » Public Forums » archive » Re: MISSING_VALUE
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: MISSING_VALUE [message #43261 is a reply to message #43260] Tue, 29 March 2005 07:05 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Matthias Demuzere writes:

> I'm reading an ascii file with the following command:
> res = read_ascii(input+fnam+'.txt', delimiter=' ', MISSING_VALUE=99999)
>
> When I print "res", he's also printing 99999, but I want that value to be
> reproduced as NaN.
> Can anyone help me with this little problem?

How about:

res = read_ascii(input+fnam+'.txt', delimiter=' ', $
MISSING_VALUE=!VALUES.F_NAN)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: C Alignment/IDL structures
Next Topic: IDLWAVE EMACS QUESTION

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

Current Time: Sat Oct 11 19:05:34 PDT 2025

Total time taken to generate the page: 1.85801 seconds