writedat (
fname,
matrix,
header="",
formatstring="%g",
)
Dumps a one- or two-dimensional NumPy array into a file
One-dimensional arrays are dumped as a column
Arguments:
-
fname
- Output file name
-
matrix
- NumPy array to dump (one- or two-dimensional)
Optional arguments:
-
header
- Header lines for the file. Remember to provide
the appropiate first character on each line
if you want them to be considered as comment.
-
formatstring
- A python format string to specify the format
in which the array will be written. A single
blank space will be added between each record.
Defaults to "%g"
|