<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-text-html" lang="x-unicode"> Hej,<br>
<br>
I have tried to look through the archives of the mailing-list but
couldn't find an answer to my problem.<br>
<br>
A colleague of mine gave me a bunch of binary Legacy vtk files.
They are structured points with 4 scalars. Here is how I try to
read them in python<br>
<br>
<blockquote>import numpy as np<br>
import vtk<br>
<br>
reader = vtk.vtkStructuredPointReader()<br>
reader.SetFileName(filename)<br>
reader.ReadAllScalarsOn()<br>
reader.Update()<br>
reader.GetNumberOfScalarsInFile()<br>
</blockquote>
<br>
When I execute the last command, it returns that there is only one
single scalar in my file though I actually have four of them.
Would anyone have an idea of what is going on and how I could fix
this?<br>
<br>
Regards,<br>
JC<br>
</div>
</body>
</html>