[Paraview] VTK Image Data Reader

Dominik Szczerba domi at vision.ee.ethz.ch
Mon May 15 06:37:07 EDT 2006


Here is an example header that works fine with raw binary. Compare for
differences, e.g. do you have "_" at the beggining of the data?

<?xml version="1.0"?>
<VTKFile type="StructuredGrid" version="0.1" byte_order="LittleEndian">
<StructuredGrid WholeExtent="0 40 0 20 0 20" Mapping="0 0 0 1 0.5 0.5">
<Piece Extent="0 40 0 20 0 20" Mapping="0 0 0 1 0.5 0.5">
<PointData>
</PointData>
<CellData Scalars="ps" Vectors="v">
<DataArray type="Float64" Name="ps" format="appended" offset="0"/>
<DataArray type="Float64" Name="mdiv" format="appended" offset="128004"/>
<DataArray type="Float64" NumberOfComponents="3" Name="v"
format="appended" offset="256008"/>
</CellData>
<Points>
<DataArray type="Float64" NumberOfComponents="3" format="appended"
offset="640012"/>
</Points>
</Piece>
</StructuredGrid>
<AppendedData encoding="raw">
_^@ô^A^@^@^@^@^@^@^

David Ingram wrote:
> After using Paraview for some time I have been trying to move away  from
> using the Legacy VTK file formats for the results from my F95  CFD code
> and have now tried to use both the Ensight Gold format and  the XML VTK
> file formats.  Unfortunately the Ensight Gold "Fortran  Binary" format
> doesn't seem to work and having written a F95 Base64  encoder to extend
> the, excellent, wxml library I am having problems  with the VTK format. 
> The following Image Data file fails to be read  by the VTK reader,
> returning the error message "  vtkXMLImageDataReader (0x861b050):
> ImageData element has no  WholeExtent.".  Any help would be appreciated.
> 
> <VTKFile type="ImageData" version="0.1" byte_order="BigEndian">
> <ImageData
>   WholeExtent="0.0000E+00  0.1000E+01  0.0000E+00  0.1000E+01  
> 0.0000E+00  0.1000E+01"
>   Origin="0.0000E+00  0.0000E+00  0.0000E+00"
>   Spacing="0.2000E+00  0.2000E+00  0.1000E+01">
>   <Piece
>    Extent="0.0000E+00  0.1000E+01  0.0000E+00  0.1000E+01  0.0000E +00 
> 0.1000E+01">
>    <CellData Scalars="Pressure">
>     <DataArray Name="Isolid" Type="Int32" Format="Binary">
> /7v//7v//7v//7v//7v//7v//7v//7v/AAAAAAAAAAAAAAAA/7v//7v//7//
> AAAAAAAAAAAAAAw/
> /7v//7v/////AAAAAAAAAAAAA8v//7v//7v//7v//7v//7v//7v//7v///==
> 
>     </DataArray>
>    </CellData>
>   </Piece>
> </ImageData>
> </VTKFile>
> 
> For the record I am currently using the Mac OSX version of Paraview  2.4.3
> 
> Dr David M Ingram
> Reader
> Institute of Energy Systems
> School of Engineering and Electronics
> The University of Edinburgh
> Kings Buildings
> Mayfield Road
> Edinburgh
> 
> David.Ingram at ed.ac.uk
> 
> 
> 
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview

-- 
Dominik Szczerba, Dr.
ETZ C110 CO-ME/BIWI CH-8092 Zurich
http://www.vision.ee.ethz.ch/~domi


More information about the ParaView mailing list