<br><br><div class="gmail_quote">On Sat, Mar 8, 2008 at 9:36 PM, Server Levent Yilmaz <<a href="mailto:leventyilmaz@gmail.com">leventyilmaz@gmail.com</a>> 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'd like to output some simulation data in a vti file without using any VTKwriter sinks (I won't be linking to VTK libraries). <br><br>Reading VTK file formats chapter in the user'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 <VTKFile> and <AppendedData>. 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'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;"><VTKFile type="ImageData" byte_order="LittleEndian"></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <ImageData WholeExtent="0 3 0 2 0 2" Origin="0 0 0" Spacing="1 1 1"></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <Piece Extent="0 3 0 2 0 2"></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <PointData Scalars="foo"><br> </span><span style="font-family: courier new,monospace;"><DataArray type="Float32" Name="foo" NumberOfComponents="1" format="appended" offset="0"/><br>
</PointData><br> </Piece><br> </ImageData><br> <AppendedData encoding="raw"> _[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>
</AppendedData><br><VTKFile></span><br><br>When this is read in Paraview 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 "Zik" 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 "Zik" 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 "Zik" 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 "Zik" 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 "Zik" 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 "Zik" 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 "Zik" 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 "foo" 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 "foo" 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 "foo" 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 "foo" 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 "foo" 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 "foo" 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 "foo" 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>