Hi
I'm using FortranFile on 32 bit XP.
The first record in the file has both 32 bit integer values and double
precision float values.
I've used readInts('i') to read the data into what I presume is a 32-bit
integer numpy array.
Items 0 and 1 of the array are the first double precision value.
What's the best way to convert/cast these to get the double precision
float value?
I assume I need to do some sort of dpval=ival.astype('float64')
so far....
f= FortranFile(fname,endian='<')
ihdr=f.readInts('i')
Brennan
_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion