<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<b>Summary</b><br>
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.<br>
<br>
<b>Question</b><br>
Why am I only seeing half of the data?<br>
<br>
<b>Details<br>
</b><i>Dataset<br>
</i>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).<br>
<b></b>
<blockquote> 0.80000000 0.80000000
3.14154793 -34815.54578017<br>
0.80000000 0.80000000 2.89352122
-34815.61573156<br>
0.80000000 0.80000000 2.78985515
-34815.59134643<br>
</blockquote>
<i>Translator</i><br>
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.<br>
<br>
<i>Debugging Efforts</i><br>
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.<br>
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.<br>
<br>
<b>Attachment</b><br>
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).<br>
</body>
</html>