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

Home » Public Forums » archive » n_elements and 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
Re: n_elements and NaN [message #74648 is a reply to message #74563] Wed, 26 January 2011 00:15 Go to previous messageGo to previous message
lecacheux.alain is currently offline  lecacheux.alain
Messages: 325
Registered: January 2008
Senior Member
On 25 jan, 21:26, Reimar Bauer <R.Ba...@fz-juelich.de> wrote:
> Just recognized some fun with NaN or more arguments against NaN.
>
> n_elements haven't a NaN keyword
>
> Reimar

Why should it do ?
"N_elements(x)" is the old way for "(Size(x))[-1]" or "Size(x,/
N_ELEMENTS)".
What you want is "where(finite(x), COUNT=number_of_finite_elements,
NCOMP=number_of_nan)".
The two statements adress two different things: the x size and x
content.
alx.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL books for beginners
Next Topic: Speed Improvement

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

Current Time: Sat Oct 11 09:02:29 PDT 2025

Total time taken to generate the page: 0.79746 seconds