pydiodon.load_ascii

pydiodon.load_ascii(filename, delimiter, colnames, rownames, dtype)[source]

Loads an ascii file as a numpy array

Parameters
filenamestring

the name of the file to load

delimitercharacter

delimiters between values in a row

colnamesboolean

True if there are column names in the first row of the file False otherwise

rownamesboolean

True if there are rownames in the first column of the file False otherwise

dtypestring

as dtype in numpy.loadtxt (type of values in the numpy array)

Returns
Aa 2D numpy array

the values in the file

rnlist of strings

row names (if rownames==True)

cnlist of strings

column names (if colnames==True)