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

Home » Public Forums » archive » how to prevent 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
how to prevent NaNs [message #91776] Tue, 25 August 2015 07:03 Go to previous message
g.nacarts is currently offline  g.nacarts
Messages: 148
Registered: November 2013
Senior Member
Hi

I had two FLOAT arrays that contains zeroes. Because I divide those two arrays I ended up with NaNs.

Array = REFORM(A[1,*,*]/A[2,*,*])

Does anyone knows how to prevents Nans and simply replace by zero? Where the A[1,*,*]/A[2,*,*] = 0./0. = 0 instead of NaN.
[Message index]
 
Read Message
Read Message
Previous Topic: Mean = NaN if NaN present
Next Topic: Gradient idl

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

Current Time: Wed Oct 08 09:19:54 PDT 2025

Total time taken to generate the page: 0.00333 seconds