[SciPy-user] scipy.io.read_array: NaN in data file
Erik Granstedt
egranstedt at gmail.com
Tue Mar 10 11:57:06 EDT 2009
Hello,
I am using scipy.io.read_array to read in values from data files to
arrays. The data files occasionally contain "NaN"s, and I would like
the returned array to also contain "NaN"s. I've tried calling
read_array with:
scipy.io.read_array(file('read_array_test.dat','r'),missing=float('NaN'))
but this still seems to convert the "NaN"s to 0.0
Is there a way to get it to return "NaN"s in the array instead of
converting them to 0.0 ?
Thanks,
-Erik
More information about the SciPy-User
mailing list