[Paraview] XML-Data

Thorsten Hater th at tp1.rub.de
Thu Sep 20 13:15:15 EDT 2007


Thanks, reading single files does work now.
The next step would be reading distributed data. Which looks simple
using the .pvti format.
My XML file now looks like this:

<?xml version="1.0"?>
<VTKFile type="PImageData" version="0.1" byte_order="LittleEndian">
	<PImageData WholeExtent="0 257 0 255 0 255"  Origin="0 0 0"  
Spacing="1 1 1">
		<Piece Extent="0 257 0 255 0 63" Source="process0/out.vti"/>
		<Piece Extent="0 257 0 255 64 127" Source="process1/out.vti"/>
		<Piece Extent="0 257 0 255 128 191" Source="process2/out.vti"/>
		<Piece Extent="0 257 0 255 192 255" Source="process3/out.vti"/>
	</PImageData>
</VTKFile>

But on reading this Paraview complains about missing data between the  
blocks
(namely 63-64, 127-128 and 191-192).
How can I solve this?

     Thorsten

Am 19.09.2007 um 21:45 schrieb Kent Eschenberg:

> Please keep correspondance on the list so that 1) others can  
> benefit from our brilliant insights :) and 2) others can correct  
> our stupid mistakes.
>
> You almost have it right - the VTK XML file documentation is  
> missing two important details. First, change your line to
>
>    <AppendedData encoding="raw">
>
> Section, start each section of raw data with a 4-byte integer  
> giving the number of bytes in that section. In your case there is  
> just one such section.
>
> By the way your grid is not "rectilinear".
>
> Almost there!
> Kent
> Pittsburgh Supercomputing Center
>
>
> Thorsten Hater wrote:
>> At the moment my XML file (one block only) looks like this:
>>     <?xml version="1.0"?>
>>     <VTKFile type="ImageData" version="0.1"  
>> byte_order="LittleEndian">
>>       <ImageData WholeExtent="0 65 0 63 0 63" Origin="0 0 0"  
>> Spacing="1 1 1">
>>         <Piece Extent="0 65 0 63 0 63">
>>           <PointData Scalars="passiveScalar">
>>             <DataArray type="Float32" Name="passiveScalar"  
>> format="appended" offset="0"                   />
>>           </PointData>
>>           <CellData>
>>           </CellData>
>>         </Piece>
>>       </ImageData>
>>           <AppendedData>
>>             _#data#
>>         </AppendedData>
>>     </VTKFile>
>> Where #data# is the binary block.
>> Is this the correct XML document, provided I want to use uniform  
>> rectilinear grids?



More information about the ParaView mailing list