L04 (2007/07/16)
index
L04.py

Functions to access RuG/L04 data files
 
RuG/L04: http://www.let.rug.nl/~kleiweg/L04/

 
Modules
       
re

 
Functions
       
cooread(filename)
Reads a coordinate file
Returns: coordinates
- filename: string
- coordinates: dict
               key: string
               value: [x, y, dx, dy]
coowrite(filename, coordinates, labels=None)
Writes coordinate file
Returns nothing
- filename: string
- coordinates: dict
               key: string
               value: [x, y, dx, dy]
- labels: if not None, a list of strings of which items to write
difread(filename)
Reads a difference file, such as created by 'leven' program and others.
Returns: tablesize, labels, table
- filename: string
- tablesize: integer
- labels: list of strings
- table: list of lists of floats (symmetric difference table)
difwrite(filename, n, lbls, dif)
Writes a difference file, such as created by 'leven' program and others.
Returns nothing
- filename: string
- n: integer (size of table)
- lbls: list of strings
- dif: list of lists of floats (symmetric difference table)
lblread(filename)
Reads a label file
Returns: labels
- filename: string
- labels: list of strings
lblwrite(filename, labels)
Writes a label file
Returns nothing
- filename: string
- labels: list of strings
vecread(filename)
Reads a vector file
Returns: vectors
- filename: string
- vectors: dict
           key: string
           value: list of floats
vecwrite(filename, vectors, labels=None)
Writes a vector file
Returns nothing
- filename: string
- vectors: dict
           key: string
           value: list of floats
- labels: if not None, a list of strings of which items to write

 
Data
        __author__ = 'Peter Kleiweg'
__date__ = '2007/07/16'

 
Author
        Peter Kleiweg