<br><br><div class="gmail_quote">On Sat, Mar 8, 2008 at 9:36 PM, Server Levent Yilmaz &lt;<a href="mailto:leventyilmaz@gmail.com">leventyilmaz@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi, <br><br>I&#39;d like to output some simulation data in a vti file without using any VTKwriter sinks (I won&#39;t be linking to VTK libraries). <br><br>Reading VTK file formats chapter in the user&#39;s guide, it *seems* that is it possible to have raw (not encoded) and uncompressed appended data in VTK file (I understand that it might violate XML specs but, I hope VTK readers would be able to handle that anyway). But it is not specified what attributes should be used for &lt;VTKFile&gt; and &lt;AppendedData&gt;. VTK examples are of no help since they all contain compressed, base64 encoded data. <br>

<br>What are the correct attributes for having raw, uncompressed binary data in a VTI file? </blockquote><div><br>Excuse my double post but, FWIW, I&#39;d like to add an example file which gives errors in Paraview. <br><br>
The image file is: <br><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&lt;VTKFile type=&quot;ImageData&quot; byte_order=&quot;LittleEndian&quot;&gt;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp; &lt;ImageData WholeExtent=&quot;0 3 0 2 0 2&quot; Origin=&quot;0 0 0&quot; Spacing=&quot;1 1 1&quot;&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Piece Extent=&quot;0 3 0 2 0 2&quot;&gt;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;PointData Scalars=&quot;foo&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-family: courier new,monospace;">&lt;DataArray type=&quot;Float32&quot; Name=&quot;foo&quot; NumberOfComponents=&quot;1&quot; format=&quot;appended&quot; offset=&quot;0&quot;/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/PointData&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Piece&gt;<br>&nbsp;&nbsp; &lt;/ImageData&gt;<br>&nbsp;&nbsp; &lt;AppendedData encoding=&quot;raw&quot;&gt; _[exactly 144(=</span><span style="font-family: courier new,monospace;">4*3*3*4)</span><span style="font-family: courier new,monospace;"> bytes of float data]<br>
&nbsp;&nbsp; &lt;/AppendedData&gt;<br>&lt;VTKFile&gt;</span><br><br>When this is read in Paraview&nbsp; the following error is generated:<br><br><span style="color: rgb(128, 0, 0);">ERROR: In C:\berk\ReleaseBuilds\ParaView3\VTK\IO\vtkXMLStructuredDataReader.cxx, line 314</span>
<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">vtkXMLImageDataReader (05F32678): Error reading extent 0 3 0 2 0 2 from piece 0</p>


<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">ERROR: In C:\berk\ReleaseBuilds\ParaView3\VTK\IO\vtkXMLDataReader.cxx, line 497</p>
<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">vtkXMLImageDataReader (05F32678): Cannot read point data array &quot;Zik&quot; from PointData in piece 0.  The data array in the element may be too short.</p>



<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">ERROR: In C:\berk\ReleaseBuilds\ParaView3\VTK\IO\vtkXMLStructuredDataReader.cxx, line 314</p>
<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">vtkXMLImageDataReader (05F32678): Error reading extent 0 3 0 2 0 2 from piece 0</p>


<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">ERROR: In C:\berk\ReleaseBuilds\ParaView3\VTK\IO\vtkXMLDataReader.cxx, line 497</p>
<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">vtkXMLImageDataReader (05F32678): Cannot read point data array &quot;Zik&quot; from PointData in piece 0.  The data array in the element may be too short.</p>



<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">ERROR: In C:\berk\ReleaseBuilds\ParaView3\VTK\IO\vtkXMLStructuredDataReader.cxx, line 314</p>
<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">vtkXMLImageDataReader (05F32678): Error reading extent 0 3 0 2 0 2 from piece 0</p>


<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">ERROR: In C:\berk\ReleaseBuilds\ParaView3\VTK\IO\vtkXMLDataReader.cxx, line 497</p>
<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">vtkXMLImageDataReader (05F32678): Cannot read point data array &quot;Zik&quot; from PointData in piece 0.  The data array in the element may be too short.</p>



<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">ERROR: In C:\berk\ReleaseBuilds\ParaView3\VTK\IO\vtkXMLStructuredDataReader.cxx, line 314</p>
<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">vtkXMLImageDataReader (05F32678): Error reading extent 0 3 0 2 0 2 from piece 0</p>


<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">ERROR: In C:\berk\ReleaseBuilds\ParaView3\VTK\IO\vtkXMLDataReader.cxx, line 497</p>
<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">vtkXMLImageDataReader (05F32678): Cannot read point data array &quot;Zik&quot; from PointData in piece 0.  The data array in the element may be too short.</p>



<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">ERROR: In C:\berk\ReleaseBuilds\ParaView3\VTK\IO\vtkXMLStructuredDataReader.cxx, line 314</p>
<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">vtkXMLImageDataReader (05F32678): Error reading extent 0 3 0 2 0 2 from piece 0</p>


<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">ERROR: In C:\berk\ReleaseBuilds\ParaView3\VTK\IO\vtkXMLDataReader.cxx, line 497</p>
<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">vtkXMLImageDataReader (05F32678): Cannot read point data array &quot;Zik&quot; from PointData in piece 0.  The data array in the element may be too short.</p>



<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">ERROR: In C:\berk\ReleaseBuilds\ParaView3\VTK\IO\vtkXMLStructuredDataReader.cxx, line 314</p>
<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">vtkXMLImageDataReader (05F32678): Error reading extent 0 3 0 2 0 2 from piece 0</p>


<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">ERROR: In C:\berk\ReleaseBuilds\ParaView3\VTK\IO\vtkXMLDataReader.cxx, line 497</p>
<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">vtkXMLImageDataReader (05F32678): Cannot read point data array &quot;Zik&quot; from PointData in piece 0.  The data array in the element may be too short.</p>



<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">ERROR: In C:\berk\ReleaseBuilds\ParaView3\VTK\IO\vtkXMLStructuredDataReader.cxx, line 314</p>
<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">vtkXMLImageDataReader (05F32678): Error reading extent 0 3 0 2 0 2 from piece 0</p>


<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">ERROR: In C:\berk\ReleaseBuilds\ParaView3\VTK\IO\vtkXMLDataReader.cxx, line 497</p>
<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">vtkXMLImageDataReader (05F32678): Cannot read point data array &quot;Zik&quot; from PointData in piece 0.  The data array in the element may be too short.</p>



<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">ERROR: In C:\berk\ReleaseBuilds\ParaView3\VTK\IO\vtkXMLStructuredDataReader.cxx, line 314</p>
<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">vtkXMLImageDataReader (05F32678): Error reading extent 0 3 0 2 0 2 from piece 0</p>


<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">ERROR: In C:\berk\ReleaseBuilds\ParaView3\VTK\IO\vtkXMLDataReader.cxx, line 497</p>
<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">vtkXMLImageDataReader (05F32678): Cannot read point data array &quot;foo&quot; from PointData in piece 0.  The data array in the element may be too short.</p>



<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">ERROR: In C:\berk\ReleaseBuilds\ParaView3\VTK\IO\vtkXMLStructuredDataReader.cxx, line 314</p>
<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">vtkXMLImageDataReader (05F32678): Error reading extent 0 3 0 2 0 2 from piece 0</p>


<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">ERROR: In C:\berk\ReleaseBuilds\ParaView3\VTK\IO\vtkXMLDataReader.cxx, line 497</p>
<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">vtkXMLImageDataReader (05F32678): Cannot read point data array &quot;foo&quot; from PointData in piece 0.  The data array in the element may be too short.</p>



<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">ERROR: In C:\berk\ReleaseBuilds\ParaView3\VTK\IO\vtkXMLStructuredDataReader.cxx, line 314</p>
<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">vtkXMLImageDataReader (05F32678): Error reading extent 0 3 0 2 0 2 from piece 0</p>


<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">ERROR: In C:\berk\ReleaseBuilds\ParaView3\VTK\IO\vtkXMLDataReader.cxx, line 497</p>
<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">vtkXMLImageDataReader (05F32678): Cannot read point data array &quot;foo&quot; from PointData in piece 0.  The data array in the element may be too short.</p>



<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">ERROR: In C:\berk\ReleaseBuilds\ParaView3\VTK\IO\vtkXMLStructuredDataReader.cxx, line 314</p>
<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">vtkXMLImageDataReader (05F32678): Error reading extent 0 3 0 2 0 2 from piece 0</p>


<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">ERROR: In C:\berk\ReleaseBuilds\ParaView3\VTK\IO\vtkXMLDataReader.cxx, line 497</p>
<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">vtkXMLImageDataReader (05F32678): Cannot read point data array &quot;foo&quot; from PointData in piece 0.  The data array in the element may be too short.</p>



<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">ERROR: In C:\berk\ReleaseBuilds\ParaView3\VTK\IO\vtkXMLStructuredDataReader.cxx, line 314</p>
<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">vtkXMLImageDataReader (05F32678): Error reading extent 0 3 0 2 0 2 from piece 0</p>


<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">ERROR: In C:\berk\ReleaseBuilds\ParaView3\VTK\IO\vtkXMLDataReader.cxx, line 497</p>
<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">vtkXMLImageDataReader (05F32678): Cannot read point data array &quot;foo&quot; from PointData in piece 0.  The data array in the element may be too short.</p>



<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">ERROR: In C:\berk\ReleaseBuilds\ParaView3\VTK\IO\vtkXMLStructuredDataReader.cxx, line 314</p>
<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">vtkXMLImageDataReader (05F32678): Error reading extent 0 3 0 2 0 2 from piece 0</p>


<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">ERROR: In C:\berk\ReleaseBuilds\ParaView3\VTK\IO\vtkXMLDataReader.cxx, line 497</p>
<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">vtkXMLImageDataReader (05F32678): Cannot read point data array &quot;foo&quot; from PointData in piece 0.  The data array in the element may be too short.</p>



<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">ERROR: In C:\berk\ReleaseBuilds\ParaView3\VTK\IO\vtkXMLStructuredDataReader.cxx, line 314</p>
<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">vtkXMLImageDataReader (05F32678): Error reading extent 0 3 0 2 0 2 from piece 0</p>


<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">ERROR: In C:\berk\ReleaseBuilds\ParaView3\VTK\IO\vtkXMLDataReader.cxx, line 497</p>
<p style="margin: 0px; text-indent: 0px; color: rgb(128, 0, 0);">vtkXMLImageDataReader (05F32678): Cannot read point data array &quot;foo&quot; from PointData in piece 0.  The data array in the element may be too short.</p>
<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br>thanks, <br>Levent <br><font color="#888888"><br>-- <br>Server Levent Yilmaz<br>
Mechanical Engineering<br>University of Pittsburgh
</font></blockquote></div><br><br>