[Numpy-discussion] where function

Tommy Grav tgrav at mac.com
Tue May 2 09:34:03 EDT 2006


Hi,

    I have a fits file that I read in with pyfits (which use numpy).
Some of the elements in the data has a 'nan' value. How can
I most easily find these elements and replace them with 0.?

Cheers
Tommy


tgrav at mac.com
http://homepage.mac.com/tgrav/

"Any intelligent fool can make things bigger,
more complex, and more violent. It takes a
touch of genius -- and a lot of courage --
to move in the opposite direction"
                          -- Albert Einstein


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20060502/0f1aa634/attachment.html>


More information about the NumPy-Discussion mailing list