[Paraview] Xdmf Polyvertex, Only First Half Visible

David Zemon david.zemon at mst.edu
Tue Aug 21 16:59:52 EDT 2012


*Summary*
I'm creating a translator from CSV to Xdmf. My Xdmf file points to 
binary files with the heavy data. When I open the file in ParaView, only 
the first half of my data is visible.

*Question*
Why am I only seeing half of the data?

*Details
*/Dataset
/The first 3 lines of my dataset look like this. Columns 1-3 are XYZ, 
column 4 is an attribute. I have two files with the same format, the 
first 3 columns of both files hold identical values, the 4th column 
different. This gives me 5 columns: 3 for XYZ, and 1 for each of 2 
attributes. Each file is 125,000 rows (making a cube that is 50x50x50).
**

               0.80000000          0.80000000 3.14154793     -34815.54578017
               0.80000000          0.80000000          2.89352122
    -34815.61573156
               0.80000000          0.80000000          2.78985515
    -34815.59134643

/Translator/
Python is my language of choice and the Xdmf file is written by hand, 
not the Xdmf python library. I read a single line from both files, split 
those lines into lists, assign each field to a dictionary {"X": 
[0.8000000], "Y": ...., "Energy1": [-34815.54578017], "Energy2": 
[-34962.99394561]}. I then loop through the dictionary and write the 
fields to their appropriate files, erasing the dictionary as I go, and 
increment a row counter. When both files are done, I create the topology 
file based on the row counter. When all binary files are written, I 
write the Xdmf file.

/Debugging Efforts/
In the "Information" tab of ParaView, under "Statistics", "Data Arrays", 
and "Bounds" I see all of the correct information. It shows the expected 
number of cells and the correct ranges for all 5 columns. If I turn on 
"Show cube axes" in "Display", the axes extend to the full range of the 
data, not just the half that is shown.
In a small, 15 row sample, I tried printing to the screen every piece of 
information before writing to the files. The screen shows every valid 
field of all 15 rows in both files.

*Attachment*
I've attached the output files from a small sample set (15 rows in each 
file) - one Xdmf and 4 binary files (geometry, topology, attribute 1 and 
2), and 2 CSV files (two 15 row datasets).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20120821/09ada5bd/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: src.zip
Type: application/zip
Size: 2593 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20120821/09ada5bd/attachment.zip>


More information about the ParaView mailing list