Glenn Jones
January 19th, 2009, 04:10 PM
Hi guys,
Sorry if this is a quation which is asked all the time but here goes.
I have recently moved from matlab to use scientific python, specifically numpy, scipy and pylab. I am however having difficulties in trying to save some data in ascii format. The data looks like:
# header1
# header2
# header 3
# header 4
x(1) y(1) z(1)
x(2) y(2) z(3)
. . .
. . .
. . .
x(N) y(N) z(N)
The headers are all strings whilst x,y,z are a numpy array N,3 in size called XYZ.
I have tried the write command and the prickle to no avail. If anyone could help me out that would be much appreciated.
Cheers
Sorry if this is a quation which is asked all the time but here goes.
I have recently moved from matlab to use scientific python, specifically numpy, scipy and pylab. I am however having difficulties in trying to save some data in ascii format. The data looks like:
# header1
# header2
# header 3
# header 4
x(1) y(1) z(1)
x(2) y(2) z(3)
. . .
. . .
. . .
x(N) y(N) z(N)
The headers are all strings whilst x,y,z are a numpy array N,3 in size called XYZ.
I have tried the write command and the prickle to no avail. If anyone could help me out that would be much appreciated.
Cheers