vx.vrfile, (vx.vwfile)
vx.vrfile(vx-file, [cmd=True],)vx.vwfile(vx-file, head, body )
vrfile will read any visionx v4 file and return the data as a list of tuples,
each tuple contains a tag "key" and a "value" vector corresponding to the tagged file
structure of visionx v4 files. Similarly, vwfile will create a visionx v4 file
from a list of tuples specification.
Each v4 file is represetned in pyton as teo data items: a text header that
contains file meta data and a list of data vector tuples.
Parameters
vx-file |
This is the file name for the visonx v4 file.
|
---|---|
head
|
Head is the header meta information for the v4 file that is specified by text.
Traditionally, for v4, this header contains a text description of the history
of the data contained in the file..
However, the user may specify any desired information in this text variable.
|
body
|
The body contains a list of tuples that specify the data in a visionx V4 tagged data file.
The first element of each tuple is the v4 tag specification and the second element of
tuple contains the corresponding data vector.
|
Returns
(head, body) | vrfile return head and body, as specified in the parameters section, to represent the contents of the specified visionx v4 file. |
---|
Examples
