<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi all,
<div><br>
</div>
<div>I'm trying to use Python to read an unstructured grid file (vtk format) that I wrote for output from a research code. The vtk file loads fine in Paraview, so it should be in order.</div>
<div><br>
</div>
<div>The vtk file has 7 scalar arrays of point data and one vector array of point data. However, when I print the point data, only 2 arrays are found -- the first scalar array (elementID) and the last (only) vector array (permeability). </div>
<div><br>
</div>
<div>Here is the essential part of my python script:</div>
<div>
<div>from vtk import *</div>
<div><br>
</div>
<div>filename = 'VTKoutput/FEHM_mesh4_2.vtk'</div>
<div><br>
</div>
<div>vtkgrid = vtkUnstructuredGridReader()</div>
<div>name = vtkgrid.SetFileName(filename)</div>
<div>vtkgrid.Update()</div>
<div><br>
</div>
<div>print vtkgrid.GetOutput().GetPointData()</div>
</div>
<div><br>
</div>
<div>I'm happy to pass along the small test vtk file too if it'd be helpful. Also, I'm running vtk-5.10 on Mac OSX 10.7.5.</div>
<div><br>
</div>
<div>Thanks in advance,</div>
<div><br>
</div>
<div>Justin</div>
</div>
</body>
</html>