maik.troemel at maitro.net
Mon Jun 12 11:19:29 CDT 2006
i've got a question concerning datatypes.
I'm importing a file filled with Data with the lenght of 2 bytes via
arrh = numpy.fromstring(radFile, dtype = 'S2', count = 900*900)
Now I want to convert the data via
value = ord(arr[n][m]) * 256 + ord(arr[n][m])
But if the value in the array is NULL i get an Error:
IndexError: string index out of range
So I think I have to choose another dtype. But I don't have any idea
Probably someone has an idea.
Thanks for support.
More information about the SciPy-user