Table of Contents

Module: writedat writedat.py

A simple ascii data writer

Imported modules   
import Numeric
Functions   
writedat
  writedat 
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"
Exceptions   
WrongWriteDimensions(len( theshape ) )

Table of Contents

This document was automatically generated on Mon Dec 9 15:58:37 2002 by HappyDoc version 2.1