forked from johannesgerer/jburkardt-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
table_io.html
249 lines (224 loc) · 7.28 KB
/
table_io.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
<html>
<head>
<title>
TABLE_IO - Read or Write a TABLE File
</title>
</head>
<body bgcolor="#EEEEEE" link="#CC0000" alink="#FF3300" vlink="#000055">
<h1 align = "center">
TABLE_IO <br> Read or Write a TABLE File
</h1>
<hr>
<p>
<b>TABLE_IO</b>
is a Python library which
can read or write a TABLE file.
</p>
<p>
A TABLE file is a simple format for storing a double-indexed
array of data. We regard this is a situation involving N
points in M dimensions, with M relatively small
(often just 2 or 3, but possibly 10 or 20) while N can
be "enormous" (10, 100, 1,000 or 10,000).
</p>
<p>
To keep things simple, then, the data is written to an ASCII
file, with optional comment lines (which must start with the
'#' character) and blank lines (which are ignored). The point
data is stored by writing the coordinates of each point on
a separate line. No information about M or N is
explicitly included in the file.
It is up to the I/O program to determine this.
</p>
<p>
TABLE_IO supplies routines by which a TABLE file can
easily be written or read. A typical write operation simply
calls routine R8MAT_WRITE. A typical read operation
will probably first want to call R8MAT_HEADER_READ
to determine the values of M and N, and then
allocate space for the table, and then call r8mat_data_read()
to read the data.
</p>
<h3 align = "center">
Licensing:
</h3>
<p>
The computer code and data files described and made available on this web page
are distributed under
<a href = "../../txt/gnu_lgpl.txt">the GNU LGPL license.</a>
</p>
<h3 align = "center">
Languages:
</h3>
<p>
<b>TABLE_IO</b> is available in
<a href = "../../c_src/table_io/table_io.html">a C version</a> and
<a href = "../../cpp_src/table_io/table_io.html">a C++ version</a> and
<a href = "../../f77_src/table_io/table_io.html">a FORTRAN77 version</a> and
<a href = "../../f_src/table_io/table_io.html">a FORTRAN90 version</a> and
<a href = "../../m_src/table_io/table_io.html">a MATLAB version</a> and
<a href = "../../py_src/table_io/table_io.html">a PYTHON version</a>.
</p>
<h3 align = "center">
Related Data and Programs:
</h3>
<p>
<a href = "../../data/table/table.html">
TABLE</a>,
a format which
is used for the files input or output by the TABLE_IO library.
</p>
<h3 align = "center">
Source Code:
</h3>
<p>
<ul>
<li>
<a href = "file_column_count.py">file_column_count.py</a>,
returns the number of columns (words) in typical line of a file.
</li>
<li>
<a href = "file_row_count.py">file_row_count.py</a>,
returns the number of rows (lines) in a file.
</li>
<li>
<a href = "i4_log_10.py">i4_log_10.py</a>,
returns the integer part of the logarithm, base 10, of an I4.
</li>
<li>
<a href = "i4mat_data_read.py">i4mat_data_read.py</a>,
reads the data (values) of an I4MAT file.
</li>
<li>
<a href = "i4mat_header_read.py">i4mat_header_read.py</a>,
reads the header (sizes) of an I4MAT file.
</li>
<li>
<a href = "i4mat_indicator.py">i4mat_indicator.py</a>,
returns an indicator I4MAT.
</li>
<li>
<a href = "i4mat_print.py">i4mat_print.py</a>,
prints an I4MAT.
</li>
<li>
<a href = "i4mat_print_some.py">i4mat_print_some.py</a>,
prints some of an I4MAT.
</li>
<li>
<a href = "i4mat_write.py">i4mat_write.py</a>,
writes an I4MAT to a file.
</li>
<li>
<a href = "i4vec_data_read.py">i4vec_data_read.py</a>,
reads the data (values) of an I4VEC file.
</li>
<li>
<a href = "i4vec_header_read.py">i4vec_header_read.py</a>,
reads the header (sizes) of an I4VEC file.
</li>
<li>
<a href = "i4vec_print.py">i4vec_print.py</a>,
prints an I4VEC.
</li>
<li>
<a href = "i4vec_write.py">i4vec_write.py</a>,
writes an I4VEC to a file.
</li>
<li>
<a href = "r8mat_data_read.py">r8mat_data_read.py</a>,
reads the data (values) of an R8MAT file.
</li>
<li>
<a href = "r8mat_header_read.py">r8mat_header_read.py</a>,
reads the header (sizes) of an R8MAT file.
</li>
<li>
<a href = "r8mat_indicator.py">r8mat_indicator.py</a>,
returns an indicator R8MAT.
</li>
<li>
<a href = "r8mat_print.py">r8mat_print.py</a>,
prints an R8MAT.
</li>
<li>
<a href = "r8mat_print_some.py">r8mat_print_some.py</a>,
prints some of an R8MAT.
</li>
<li>
<a href = "r8mat_transpose_write.py">r8mat_transpose_write.py</a>,
writes the transpose of an R8MAT to a file.
</li>
<li>
<a href = "r8mat_write.py">r8mat_write.py</a>,
writes an R8MAT to a file.
</li>
<li>
<a href = "r8vec_data_read.py">r8vec_data_read.py</a>,
reads the data (values) of an R8VEC file.
</li>
<li>
<a href = "r8vec_header_read.py">r8vec_header_read.py</a>,
reads the header (sizes) of an R8VEC file.
</li>
<li>
<a href = "r8vec_print.py">r8vec_print.py</a>,
prints an R8VEC.
</li>
<li>
<a href = "r8vec_write.py">r8vec_write.py</a>,
writes an R8VEC to a file.
</li>
<li>
<a href = "timestamp.py">timestamp.py</a>,
prints the current YMDHMS date as a timestamp.
</li>
</ul>
</p>
<h3 align = "center">
Examples and Tests:
</h3>
<p>
<ul>
<li>
<a href = "table_io_test.py">table_io_test.py</a>,
calls all the tests.
</li>
<li>
<a href = "table_io_test.sh">table_io_test.sh</a>,
runs all the tests.
</li>
<li>
<a href = "table_io_test_output.txt">table_io_test_output.txt</a>,
the output file.
</li>
<li>
<a href = "i4mat_write_test.txt">i4mat_write_test.txt</a>,
a file created by the test for I4MAT_WRITE.
</li>
<li>
<a href = "i4vec_write_test.txt">i4vec_write_test.txt</a>,
a file created by the test for I4VEC_WRITE.
</li>
<li>
<a href = "r8mat_write_test.txt">r8mat_write_test.txt</a>,
a file created by the test for R8MAT_WRITE.
</li>
<li>
<a href = "r8vec_write_test.txt">r8vec_write_test.txt</a>,
a file created by the test for R8VEC_WRITE.
</li>
</ul>
</p>
<p>
You can go up one level to <a href = "../py_src.html">
the Python source codes</a>.
</p>
<hr>
<i>
Last revised on 08 April 2015.
</i>
<!-- John Burkardt -->
</body>
<!-- Initial HTML skeleton created by HTMLINDEX. -->
</html>