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

Home » Public Forums » archive » Re: Filtering out NaNs
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: Filtering out NaNs [message #8526 is a reply to message #8521] Wed, 19 March 1997 00:00 Go to previous message
Tim Patterson is currently offline  Tim Patterson
Messages: 65
Registered: October 1995
Member
Stein Vidar Hagfors Haugan wrote:
>
> In article <Iarla-1903971745010001@eorcu4.ch.cam.ac.uk>, Iarla@atm.ch.cam.ac.uk (Iarla Kilbane-Dawe) writes:
> |> Hello,
> |>
> |> There are some NaNs in my data which keep making my code fall over. I'd
> |> like to either filter them out or avoid them in the calculation, but doing
> |> something like
> |>
> |> a(where(a eq !values.f_nan) = missing_flag
> |>
> |> doesn't work. Does anyone have any suggestions?
> |>
>
> NaNs are characterized by the fact that they are *not* equal
> to any number (that's what it says, isn't it :-)
>
> In fact, it's not even equal to itself - and this is the distinguishing
> feature that must be used to pick them out. I.e.,
>
> a(where(a ne a)) = missing_flag
>
> Stein Vidar



A thing which is not even equal to itself !

I'm not sure if I'm reading the IDL newsgroup or the Zen mystics
newsgroup...

Tim
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Time Series Analysis
Next Topic: Re: Anything better than ANNOTATE?

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

Current Time: Sat Oct 11 05:02:20 PDT 2025

Total time taken to generate the page: 0.56096 seconds