using numpy to save arrays in a loop

Hi guys, I have a time loop and at each time step I get a 1-d array and want to save it in the data file 'data.dat '(or whatever suffix), so finally i got . I made this by using the python 'write' function, but I' thinking about if there is any numpy function that can realize this? Thanks. Zhaoru

There are various numpy and scipy input/output functions described here: http://www.scipy.org/Cookbook/InputOutput http://docs.scipy.org/doc/scipy/reference/io.html On Mon, Apr 25, 2011 at 10:32 AM, Zhaoru Zhang <zhaoruzhang@gmail.com>wrote:
Hi guys,
I have a time loop and at each time step I get a 1-d array and want to save it in the data file 'data.dat '(or whatever suffix), so finally i got . I made this by using the python 'write' function, but I' thinking about if there is any numpy function that can realize this? Thanks.
Zhaoru
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
participants (2)
-
Isaiah Norton
-
Zhaoru Zhang