[vtkusers] SetHaveHeaders for more than one header line - example
M.
infinity.probability at gmail.com
Thu Jul 18 10:25:15 EDT 2013
Hi all,
I'm trying to read a Tecplot file and the file has more than one header
line. Is there a way to jump more than one line using SetHaveHeaders for
vtkDelimitedTextReader?
csv_source = vtkDelimitedTextReader()
csv_source.SetFieldDelimiterCharacters(" ")
csv_source.SetHaveHeaders(True)
csv_source.SetDetectNumericColumns(True)
csv_source.SetFileName("benzene_0.gsc")
csv_source.Update()
csv_source.GetOutput().Dump(6)
T = csv_source.GetOutput()
An example dataset is
TITLE = "Example: Simple XY Plot"
VARIABLES = "Distance", "Temperature"
ZONE T="Only Zone", I=20, F=POINT
0.0 850.9
0.022 790.1
0.051 554.0
0.069 540.0
0.075 545.5
0.083 549.4
0.106 590.2
0.1234 535.1
0.15 601.0
0.201 664.5
0.25 635.9
0.35 599.9
0.4454 600.0
0.49 513.0
0.5656 442.0
0.6423 333.5
0.6604 300.4
0.7 245.7
0.89 221.4
1.3 200.0
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130718/71850bbe/attachment.htm>
More information about the vtkusers
mailing list