[SciPy-user] read ascii data

Christoph Scheit cscheit@lstm.uni-erlangen...
Wed Dec 12 04:57:14 CST 2007


Hi All,

I have a file containing ascii data related to a block-structured grid.
I could use readtxt, but I would like to have the possibility to read only
a certain range of rows out of the file. Lets say I have ten blocks in my grid
and each block 10 rows of data.
So in one read I would like to read for instance line 30 to line 39
I can use skip rows, but how can I limit the loadtxt to the upper limit?
Is there something already available or do I have to do it on my own?

Thanks in advance,

Christoph


More information about the SciPy-user mailing list