<div dir="ltr"><div><div>Hi all,<br><br></div>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?<br>
<br> csv_source = vtkDelimitedTextReader()<br> csv_source.SetFieldDelimiterCharacters(" ")<br> csv_source.SetHaveHeaders(True)<br> csv_source.SetDetectNumericColumns(True)<br> csv_source.SetFileName("benzene_0.gsc")<br>
csv_source.Update()<br> csv_source.GetOutput().Dump(6)<br><br> T = csv_source.GetOutput()<br><br></div><div>An example dataset is<br><br><pre>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</pre><br></div><div><br></div>Thanks!</div>