<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hello,
<br>
 <br>
I'm currently running into issues trying to analyze very large .vti data files (~110 GB and up) generated with VTK 5.8. Each file contains several arrays within the point data that describes properties of simulated particles (e.g., tuples of the particles'
 x, y, and z coordinates). <br>
<br>
We generate one .vti file per simulation and then use VTK to combine these files into a single large .vti file.  We then use Python with VTK to generate e.g. histograms of particle position from the .vti files.
<br>
<br>
Here is some test code that produces the error I am seeing: <br>
<br>
 <br>
#!/usr/bin/env python <br>
  <br>
import vtk <br>
from sys import argv <br>
 <br>
reader = vtk.vtkXMLImageDataReader() <br>
reader.SetFileName(argv[1]) <br>
reader.Update() <br>
 <br>
data = reader.GetOutput() <br>
ptdata = data.GetPointData() <br>
array = ptdata.GetArray(0) <br>
npts = array.GetNumberOfTuples() <br>
 <br>
for ii in range(npts): <br>
  print array.GetTuple3(ii) <br>
 <br>
 <br>
The error: <br>
 <br>
 <br>
ERROR: In /build/buildd/vtk-5.8.0/IO/vtkXMLStructuredDataReader.cxx, line 325 <br>
vtkXMLImageDataReader (0x1caa160): Error reading extent 0 195310399 0 0 0 0 from piece 0
<br>
 <br>
ERROR: In /build/buildd/vtk-5.8.0/IO/vtkXMLDataReader.cxx, line 510 <br>
vtkXMLImageDataReader (0x1caa160): Cannot read point data array "DistalAperturePlus0cm\PhasePosition" from PointData in piece 0.  The data array in the element may be too short.
<br>
 <br>
Traceback (most recent call last): <br>
  File "test.py", line 13, in <module> <br>
    npts = array.GetNumberOfTuples() <br>
AttributeError: 'NoneType' object has no attribute 'GetNumberOfTuples' <br>
 <br>
 <br>
For testing purposes, I have generated files slightly smaller in size (~82 GB) that do work correctly, and the only difference is the number of particles generated. Is there a known issue or workaround for dealing with such large files, or am I possibly looking
 in the wrong place as to the cause of this error? <br>
 <br>
Thank you.<br>
</div>
</body>
</html>