On Mon, Sep 8, 2008 at 18:46, jinbo wang <[EMAIL PROTECTED]> wrote:
> Hi guys,
>  I am new to python, and still wondering around to solve a simple problem.
>  I have an array A, and want to save it to a binary data file with
> 'float64' and 'big-endian' specified. I searched online, but still don't
> know how to do it. I appreciate your help!

x.astype('>float64').tofile('foo.dat')

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
 -- Umberto Eco
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to