[Paraview] writeing vts files

don fisher dfisher at as.arizona.edu
Wed Feb 23 16:18:49 EST 2005


Hello,

I would like to plea for assistance in understanding what is wrong 
with the .vts format of the file I am trying to load into paraview. 
The file is included below  with truncated data. The entire file is 
attached.

I have examined the length of the appended data record and it is 
34136, the correct length to encode one floating scalar and a three 
component float vector (dimensions 40X20X2). The output I receive from 
Paraview consists of 3 occurrences of:
---------------------------------------------------------------------
ErrorMessage
# Error or warning: There was a VTK Error in file: 
/usr3/swl/packages/ParaView/VTK/IO/vtkXMLStructuredDataReader.cxx (281)
  Error reading extent 0 39 0 19 0 1 from piece 0
ErrorMessage end
---------------------------------------------------------------------
I have looked at the code, but it is not easy to read. The parse 
routines are order 4500 lines long, with mangled names and large 
#defines rather that inline functions. I does confuse my debugger. Any 
help would be appreciated.

The only example on the CD and distribution includes zlib compression. 
Is that required, or is there another string required to say "no 
compression". I cannot find any details in the books or enclosed CD. 
The terms "binary" and "base64" seem to be overlapped.

My goal is to achieve native binary encoding, with 2D rather than 3D 
inputs.

Thanks in advance for any assistance.
don

<?xml version="1.0"?>
<VTKFile type="StructuredGrid" version="0.1" byte_order="LittleEndian">
<StructuredGrid WholeExtent="0 39 0 19 0 1">
<Piece Extent="0 39 0 19 0 1">
<PointData> "Scalars=entropy">
<DataArray type="Float32" Name="entropy" NumberOfComponents="1" 
format="appended" offset="0"/>
</PointData>
<CellData>
</CellData>
<Points>
<DataArray type="Float32" Name="geometry" NumberOfComponents="3" 
format="appended" offset="8536"/>
</Points>
</Piece>
</StructuredGrid>
<AppendedData encoding="base64">
_kZ0qP4iwJz+keB8/gVAAP776tz5nvZE+8CCSPj2Wkj4VHJM++CaUPjjY1j5eijk/KYl1QP8F10CFQpxAA1KMPhAnRj
</AppendedData>
</VTKFile>
-- 
-------------------------------------------------------------------
|    Don Fisher				  dfisher at as.arizona.edu  |
|    Steward Observatory		  			  |
|    933 N. Cherry Ave.    		  VOICE: (520)888-7613	  |
|    University of Arizona		                          |
|    Tucson, AZ  85721                				  |
-------------------------------------------------------------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: junk000.vts
Type: text/xml
Size: 34675 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/paraview/attachments/20050223/4865f1db/junk000-0001.bin


More information about the ParaView mailing list