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

Home » Public Forums » archive » NaN values
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
NaN values [message #23875] Tue, 27 February 2001 03:37
Antonio Caetano Vaz C is currently offline  Antonio Caetano Vaz C
Messages: 1
Registered: February 2001
Junior Member
Hi all

I need your expertise.

I have two vectors (vec1 and vec2). Some of the values of vec1 are set
as NaN. I want to sum each point of vec1 with its correspondent point in
vec2, ignoring NaN.

If I just use:

new_vec=vec1+vec2, I have NaN's in the new_vec correspondent point to
vec1.

If I use "total" (new_vec=total(vec1,vec2,/nan) IDL tells me that
should be a scalar in the context.

Is there any other way to ignore the NaN's?

Thanks a lot.

Antonio

--
--------------------------------------------
Antonio Caetano Vaz Caltabiano
Southampton Oceanography Centre
School of Ocean and Earth Science
European Way
Southampton - UK
SO14 3ZH
Phone: +44-(0)23-80596488
Fax: +44-(0)23-80593059
--------------------------------------------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: string manipulation
Next Topic: survey: accelerated 3D volumetric rendering

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

Current Time: Thu Oct 09 10:21:09 PDT 2025

Total time taken to generate the page: 0.24137 seconds