READ-ROW* choked on blank lines. Now it skips them as if they were commented.
[ascii-data.git] / README
blob9c8bc46bd46bc7ecf5099d6e34040c2a35a8231e
1 This package provides functions for reading numerical data from ASCII
2 text files into arrays, and writing numerical data from arrays (up to
3 rank 2) into ASCII text files.
5 If you compare this to numpy's loadtxt, keep in mind that loadtxt will
6 return data consisting of a single row or single column as an array of
7 rank 1, while it will return multi-row, multi-column data as an array
8 of rank 2. Read-ascii-array will will always return an array of rank
9 2. This seems to make most sense to me from a programming and ASCII
10 layout point of view.
12 For behaviour similar to numpy's loadtxt, use
13 read-ascii-vector-or-array, which will reduce the rank for you when
14 possible.
16 Note that the functions with a * appended (which work on streams) can
17 be used in your own specialized reading functions, such as files that
18 contain text headers, or more complex things including gray streams
19 (such as chipz' decompressing-streams).
21 Note that this package relies on parse-float, which you can find on
22 github:
23 git clone git://github.com/soemraws/parse-float.git